Skip to content

Commit 48d182b

Browse files
authored
fix: update browser name to cloudevents. (cloudevents#292)
* This updates the broswer based version to cloudevents instead of cloudevents-sdk. Fixes: cloudevents#286 Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
1 parent 763838c commit 48d182b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/websocket/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<html>
33
<head>
44
<title>CloudEvent Example</title>
5-
<script src="../../bundles/cloudevents-sdk.js"></script>
5+
<script src="../../bundles/cloudevents.js"></script>
66
<script>
7-
const CloudEvent = window['cloudevents-sdk'].CloudEvent;
8-
const Version = window['cloudevents-sdk'].Version;
7+
const CloudEvent = window.cloudevents.CloudEvent;
8+
const Version = window.cloudevents.Version;
99
const socket = new WebSocket("ws://localhost:8080");
1010

1111
function print(weather) {

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ const path = require("path");
22

33
module.exports = {
44
entry: {
5-
"cloudevents-sdk": "./browser/index.js"
5+
"cloudevents": "./browser/index.js"
66
},
77
output: {
88
path: path.resolve(__dirname, "bundles"),
99
filename: "[name].js",
1010
libraryTarget: "umd",
11-
library: "cloudevents-sdk",
11+
library: "cloudevents",
1212
umdNamedDefine: true
1313
},
1414
devtool: "source-map",

0 commit comments

Comments
 (0)