Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 56 additions & 18 deletions demos/npm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demos/npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "Optable Technologies Inc.",
"license": "Apache-2.0",
"dependencies": {
"@optable/web-sdk": "^0.10.0",
"@optable/web-sdk": "^0.37.1",
"html-webpack-plugin": "^5.3.2",
"webpack": "^5.94.0",
"webpack-cli": "^4.10.0"
Expand Down
8 changes: 6 additions & 2 deletions demos/npm/src/identifyAndTargeting.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import OptableSDK from "@optable/web-sdk";

const sdk = new OptableSDK({
// host of the DCN (not of the website that will serve this JS).
host: "sandbox.optable.co",
// host of the MCI Edge service.
host: "ca.edge.optable.co",
// node ID of the DCN.
node: "optable",
// legacy host cache of the DCN (for backwards compatibility).
legacyHostCache: "sandbox.optable.co",
// slug of the site created in the DCN. Make sure the site source you created allows traffic from the
// domain you are going to serve this JS (tip: for test purposes ONLY, use `.*` as the regular expression
// for the allowed HTTP origins).
Expand Down