@sitecore-cloudsdk/events
Advanced tools
Comparing version 0.4.0-rc.1 to 0.4.0
{ | ||
"name": "@sitecore-cloudsdk/events", | ||
"version": "0.4.0-rc.1", | ||
"version": "0.4.0", | ||
"license": "Apache-2.0", | ||
@@ -19,4 +19,4 @@ "homepage": "https://doc.sitecore.com/xmc/en/developers/sdk/latest/cloud-sdk/index.html", | ||
"dependencies": { | ||
"@sitecore-cloudsdk/core": "^0.4.0-rc.1", | ||
"@sitecore-cloudsdk/utils": "^0.4.0-rc.1" | ||
"@sitecore-cloudsdk/core": "^0.4.0", | ||
"@sitecore-cloudsdk/utils": "^0.4.0" | ||
}, | ||
@@ -23,0 +23,0 @@ "scripts": { |
@@ -14,1 +14,6 @@ import { CloudSDKBrowserInitializer } from '@sitecore-cloudsdk/core/browser'; | ||
} | ||
declare global { | ||
interface Events { | ||
version: string; | ||
} | ||
} |
@@ -7,12 +7,8 @@ "use strict"; | ||
const internal_1 = require("@sitecore-cloudsdk/core/internal"); | ||
const utils_1 = require("@sitecore-cloudsdk/utils"); | ||
const consts_1 = require("../../consts"); | ||
async function sideEffects() { | ||
window.Engage ?? (window.Engage = {}); | ||
window.Engage = { | ||
...window.Engage, | ||
getBrowserId: () => (0, utils_1.getCookieValueClientSide)((0, internal_1.getCloudSDKSettingsBrowser)().cookieSettings.name.browserId), | ||
versions: { | ||
...window.Engage.versions, | ||
events: consts_1.PACKAGE_VERSION | ||
window.scCloudSDK = { | ||
...window.scCloudSDK, | ||
events: { | ||
version: consts_1.PACKAGE_VERSION | ||
} | ||
@@ -19,0 +15,0 @@ }; |
{ | ||
"name": "@sitecore-cloudsdk/events", | ||
"version": "0.4.0-rc.1", | ||
"version": "0.4.0", | ||
"license": "Apache-2.0", | ||
@@ -19,4 +19,4 @@ "homepage": "https://doc.sitecore.com/xmc/en/developers/sdk/latest/cloud-sdk/index.html", | ||
"dependencies": { | ||
"@sitecore-cloudsdk/core": "^0.4.0-rc.1", | ||
"@sitecore-cloudsdk/utils": "^0.4.0-rc.1" | ||
"@sitecore-cloudsdk/core": "^0.4.0", | ||
"@sitecore-cloudsdk/utils": "^0.4.0" | ||
}, | ||
@@ -23,0 +23,0 @@ "scripts": { |
@@ -14,1 +14,6 @@ import { CloudSDKBrowserInitializer } from '@sitecore-cloudsdk/core/browser'; | ||
} | ||
declare global { | ||
interface Events { | ||
version: string; | ||
} | ||
} |
// © Sitecore Corporation A/S. All rights reserved. Sitecore® is a registered trademark of Sitecore Corporation A/S. | ||
import { CloudSDKBrowserInitializer } from '@sitecore-cloudsdk/core/browser'; | ||
import { debug, enabledPackagesBrowser as enabledPackages, getCloudSDKSettingsBrowser as getCloudSDKSettings, PackageInitializer } from '@sitecore-cloudsdk/core/internal'; | ||
import { getCookieValueClientSide } from '@sitecore-cloudsdk/utils'; | ||
import { debug, enabledPackagesBrowser as enabledPackages, PackageInitializer } from '@sitecore-cloudsdk/core/internal'; | ||
import { EVENTS_NAMESPACE, PACKAGE_NAME, PACKAGE_VERSION } from '../../consts'; | ||
export async function sideEffects() { | ||
window.Engage ?? (window.Engage = {}); | ||
window.Engage = { | ||
...window.Engage, | ||
getBrowserId: () => getCookieValueClientSide(getCloudSDKSettings().cookieSettings.name.browserId), | ||
versions: { | ||
...window.Engage.versions, | ||
events: PACKAGE_VERSION | ||
window.scCloudSDK = { | ||
...window.scCloudSDK, | ||
events: { | ||
version: PACKAGE_VERSION | ||
} | ||
@@ -15,0 +11,0 @@ }; |
{ | ||
"name": "@sitecore-cloudsdk/events", | ||
"version": "0.4.0-rc.1", | ||
"version": "0.4.0", | ||
"license": "Apache-2.0", | ||
@@ -19,4 +19,4 @@ "homepage": "https://doc.sitecore.com/xmc/en/developers/sdk/latest/cloud-sdk/index.html", | ||
"dependencies": { | ||
"@sitecore-cloudsdk/core": "^0.4.0-rc.1", | ||
"@sitecore-cloudsdk/utils": "^0.4.0-rc.1" | ||
"@sitecore-cloudsdk/core": "^0.4.0", | ||
"@sitecore-cloudsdk/utils": "^0.4.0" | ||
}, | ||
@@ -23,0 +23,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3082
216054