fix: update browser name to cloudevents. (#292)

* This updates the broswer based version to cloudevents instead of cloudevents-sdk.

Fixes: #286

Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
This commit is contained in:
Lucas Holmquist 2020-07-30 13:55:57 -04:00 committed by GitHub
parent 763838c89c
commit 48d182bc5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -2,10 +2,10 @@
<html>
<head>
<title>CloudEvent Example</title>
<script src="../../bundles/cloudevents-sdk.js"></script>
<script src="../../bundles/cloudevents.js"></script>
<script>
const CloudEvent = window['cloudevents-sdk'].CloudEvent;
const Version = window['cloudevents-sdk'].Version;
const CloudEvent = window.cloudevents.CloudEvent;
const Version = window.cloudevents.Version;
const socket = new WebSocket("ws://localhost:8080");
function print(weather) {

View File

@ -2,13 +2,13 @@ const path = require("path");
module.exports = {
entry: {
"cloudevents-sdk": "./browser/index.js"
"cloudevents": "./browser/index.js"
},
output: {
path: path.resolve(__dirname, "bundles"),
filename: "[name].js",
libraryTarget: "umd",
library: "cloudevents-sdk",
library: "cloudevents",
umdNamedDefine: true
},
devtool: "source-map",