Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sitecore-cloudsdk/events

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sitecore-cloudsdk/events - npm Package Compare versions

Comparing version 0.1.0-rc.3 to 0.1.0-rc.4

browser.cjs

22

dist/cjs/package.json
{
"name": "@sitecore-cloudsdk/events",
"version": "0.1.0-rc.3",
"version": "0.1.0-rc.4",
"license": "Apache-2.0",
"exports": {
"./server": {
"import": "./dist/esm/src/server.js",
"require": "./dist/cjs/src/server.js",
"types": "./dist/esm/src/server.d.ts"
"import": "./server.js",
"require": "./server.cjs",
"types": "./server.d.ts"
},
"./browser": {
"import": "./dist/esm/src/browser.js",
"require": "./dist/cjs/src/browser.js",
"types": "./dist/esm/src/browser.d.ts"
"import": "./browser.js",
"require": "./browser.cjs",
"types": "./browser.d.ts"
}

@@ -28,4 +28,10 @@ },

"dist",
"README.md"
"README.md",
"browser.js",
"browser.cjs",
"browser.d.ts",
"server.cjs",
"server.js",
"server.d.ts"
]
}

@@ -14,4 +14,4 @@ "use strict";

const { id, settings } = (0, initializer_1.getDependencies)();
return (0, core_1.getGuestId)(id, settings.sitecoreEdgeContextId);
return (0, core_1.getGuestId)(id, settings.sitecoreEdgeContextId, settings.sitecoreEdgeUrl);
}
exports.getGuestId = getGuestId;

@@ -24,3 +24,3 @@ "use strict";

if (!dependencies) {
throw Error(`[IE-0006] You must first initialize the "events" module. Run the "init" function.`);
throw Error(`[IE-0006] You must first initialize the "events" package. Run the "init" function.`);
}

@@ -44,3 +44,3 @@ return dependencies;

const id = (0, core_1.getBrowserId)();
const eventApiClient = new EventApiClient_1.EventApiClient(core_1.TARGET_URL, settingsInput.sitecoreEdgeContextId, settingsInput.siteName);
const eventApiClient = new EventApiClient_1.EventApiClient(settings.sitecoreEdgeUrl, settingsInput.sitecoreEdgeContextId, settingsInput.siteName);
const eventQueue = new eventStorage_1.EventQueue(sessionStorage, eventApiClient);

@@ -47,0 +47,0 @@ setDependencies({

@@ -22,3 +22,3 @@ "use strict";

if (!serverDependencies) {
throw Error(`[IE-0007] You must first initialize the "events" module. Run the "init" function.`);
throw Error(`[IE-0007] You must first initialize the "events" package. Run the "init" function.`);
}

@@ -36,3 +36,3 @@ return serverDependencies;

const settings = (0, core_1.getSettingsServer)();
const eventApiClient = new EventApiClient_1.EventApiClient(core_1.TARGET_URL, settingsInput.sitecoreEdgeContextId, settingsInput.siteName);
const eventApiClient = new EventApiClient_1.EventApiClient(core_1.SITECORE_EDGE_URL, settingsInput.sitecoreEdgeContextId, settingsInput.siteName);
setServerDependencies({

@@ -39,0 +39,0 @@ eventApiClient,

{
"name": "@sitecore-cloudsdk/events",
"version": "0.1.0-rc.3",
"version": "0.1.0-rc.4",
"license": "Apache-2.0",
"exports": {
"./server": {
"import": "./dist/esm/src/server.js",
"require": "./dist/cjs/src/server.js",
"types": "./dist/esm/src/server.d.ts"
"import": "./server.js",
"require": "./server.cjs",
"types": "./server.d.ts"
},
"./browser": {
"import": "./dist/esm/src/browser.js",
"require": "./dist/cjs/src/browser.js",
"types": "./dist/esm/src/browser.d.ts"
"import": "./browser.js",
"require": "./browser.cjs",
"types": "./browser.d.ts"
}

@@ -28,4 +28,10 @@ },

"dist",
"README.md"
"README.md",
"browser.js",
"browser.cjs",
"browser.d.ts",
"server.cjs",
"server.js",
"server.d.ts"
]
}

@@ -11,3 +11,3 @@ // © Sitecore Corporation A/S. All rights reserved. Sitecore® is a registered trademark of Sitecore Corporation A/S.

const { id, settings } = getDependencies();
return getGuestIdFromCore(id, settings.sitecoreEdgeContextId);
return getGuestIdFromCore(id, settings.sitecoreEdgeContextId, settings.sitecoreEdgeUrl);
}
// © Sitecore Corporation A/S. All rights reserved. Sitecore® is a registered trademark of Sitecore Corporation A/S.
import { EventApiClient } from '../../cdp/EventApiClient';
import { TARGET_URL, getBrowserId, getSettings, initCore, } from '@sitecore-cloudsdk/core';
import { getBrowserId, getSettings, initCore } from '@sitecore-cloudsdk/core';
import { LIBRARY_VERSION } from '../../consts';

@@ -20,3 +20,3 @@ import { EventQueue } from '../../eventStorage/eventStorage';

if (!dependencies) {
throw Error(`[IE-0006] You must first initialize the "events" module. Run the "init" function.`);
throw Error(`[IE-0006] You must first initialize the "events" package. Run the "init" function.`);
}

@@ -39,3 +39,3 @@ return dependencies;

const id = getBrowserId();
const eventApiClient = new EventApiClient(TARGET_URL, settingsInput.sitecoreEdgeContextId, settingsInput.siteName);
const eventApiClient = new EventApiClient(settings.sitecoreEdgeUrl, settingsInput.sitecoreEdgeContextId, settingsInput.siteName);
const eventQueue = new EventQueue(sessionStorage, eventApiClient);

@@ -42,0 +42,0 @@ setDependencies({

// © Sitecore Corporation A/S. All rights reserved. Sitecore® is a registered trademark of Sitecore Corporation A/S.
import { getSettingsServer, initCoreServer, TARGET_URL, } from '@sitecore-cloudsdk/core';
import { getSettingsServer, initCoreServer, SITECORE_EDGE_URL, } from '@sitecore-cloudsdk/core';
import { EventApiClient } from '../../cdp/EventApiClient';

@@ -18,3 +18,3 @@ let serverDependencies = null;

if (!serverDependencies) {
throw Error(`[IE-0007] You must first initialize the "events" module. Run the "init" function.`);
throw Error(`[IE-0007] You must first initialize the "events" package. Run the "init" function.`);
}

@@ -31,3 +31,3 @@ return serverDependencies;

const settings = getSettingsServer();
const eventApiClient = new EventApiClient(TARGET_URL, settingsInput.sitecoreEdgeContextId, settingsInput.siteName);
const eventApiClient = new EventApiClient(SITECORE_EDGE_URL, settingsInput.sitecoreEdgeContextId, settingsInput.siteName);
setServerDependencies({

@@ -34,0 +34,0 @@ eventApiClient,

{
"name": "@sitecore-cloudsdk/events",
"version": "0.1.0-rc.3",
"version": "0.1.0-rc.4",
"license": "Apache-2.0",
"exports": {
"./server": {
"import": "./dist/esm/src/server.js",
"require": "./dist/cjs/src/server.js",
"types": "./dist/esm/src/server.d.ts"
"import": "./server.js",
"require": "./server.cjs",
"types": "./server.d.ts"
},
"./browser": {
"import": "./dist/esm/src/browser.js",
"require": "./dist/cjs/src/browser.js",
"types": "./dist/esm/src/browser.d.ts"
"import": "./browser.js",
"require": "./browser.cjs",
"types": "./browser.d.ts"
}

@@ -28,4 +28,10 @@ },

"dist",
"README.md"
"README.md",
"browser.js",
"browser.cjs",
"browser.d.ts",
"server.cjs",
"server.js",
"server.d.ts"
]
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc