Skip to content

Commit

Permalink
fix: update browser name to cloudevents. (#292)
Browse files Browse the repository at this point in the history
* This updates the broswer based version to cloudevents instead of cloudevents-sdk.

Fixes: #286

Signed-off-by: Lucas Holmquist <lholmqui@redhat.com>
  • Loading branch information
lholmquist authored Jul 30, 2020
1 parent 763838c commit 48d182b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/websocket/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 48d182b

Please sign in to comment.