@screeb/sdk-browser 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +4 -1
- package/dist/cjs/types.d.ts +2 -0
- package/dist/es/index.mjs +4 -1
- package/dist/es/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -37,6 +37,9 @@ var load = function (options) {
|
|
|
37
37
|
scriptElement.src = (_b = options.screebEndpoint) !== null && _b !== void 0 ? _b : SCREEB_TAG_ENDPOINT;
|
|
38
38
|
scriptElement.addEventListener("load", function () { return resolve(undefined); });
|
|
39
39
|
scriptElement.addEventListener("error", reject);
|
|
40
|
+
if (options.platform) {
|
|
41
|
+
_window["ScreebConfig"] = { platform: options.platform };
|
|
42
|
+
}
|
|
40
43
|
_window.$screeb =
|
|
41
44
|
(_c = _window.$screeb) !== null && _c !== void 0 ? _c : function () {
|
|
42
45
|
var args = [];
|
|
@@ -444,4 +447,4 @@ exports.surveyClose = surveyClose;
|
|
|
444
447
|
exports.surveyStart = surveyStart;
|
|
445
448
|
exports.targetingCheck = targetingCheck;
|
|
446
449
|
exports.targetingDebug = targetingDebug;
|
|
447
|
-
CONSTANTS.version = '0.1.
|
|
450
|
+
CONSTANTS.version = '0.1.16'
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export type ScreebOptions = {
|
|
|
15
15
|
sdkVersion?: string;
|
|
16
16
|
/** Please don't do this. */
|
|
17
17
|
screebEndpoint?: string;
|
|
18
|
+
/** @hidden Use a specific platform */
|
|
19
|
+
platform?: string;
|
|
18
20
|
};
|
|
19
21
|
export type ScreebFunction = (..._: unknown[]) => void | Promise<unknown>;
|
|
20
22
|
/** This is the Screeb object publicly exposed in browser `window`. */
|
package/dist/es/index.mjs
CHANGED
|
@@ -35,6 +35,9 @@ var load = function (options) {
|
|
|
35
35
|
scriptElement.src = (_b = options.screebEndpoint) !== null && _b !== void 0 ? _b : SCREEB_TAG_ENDPOINT;
|
|
36
36
|
scriptElement.addEventListener("load", function () { return resolve(undefined); });
|
|
37
37
|
scriptElement.addEventListener("error", reject);
|
|
38
|
+
if (options.platform) {
|
|
39
|
+
_window["ScreebConfig"] = { platform: options.platform };
|
|
40
|
+
}
|
|
38
41
|
_window.$screeb =
|
|
39
42
|
(_c = _window.$screeb) !== null && _c !== void 0 ? _c : function () {
|
|
40
43
|
var args = [];
|
|
@@ -427,4 +430,4 @@ var targetingCheck = function () { return callScreebCommand("targeting.check");
|
|
|
427
430
|
var targetingDebug = function () { return callScreebCommand("targeting.debug"); };
|
|
428
431
|
|
|
429
432
|
export { close, debug, eventTrack, identity, identityGet, identityGroupAssign, identityGroupUnassign, identityProperties, identityReset, init, isLoaded, load, surveyClose, surveyStart, targetingCheck, targetingDebug };
|
|
430
|
-
CONSTANTS.version = '0.1.
|
|
433
|
+
CONSTANTS.version = '0.1.16'
|
package/dist/es/types.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export type ScreebOptions = {
|
|
|
15
15
|
sdkVersion?: string;
|
|
16
16
|
/** Please don't do this. */
|
|
17
17
|
screebEndpoint?: string;
|
|
18
|
+
/** @hidden Use a specific platform */
|
|
19
|
+
platform?: string;
|
|
18
20
|
};
|
|
19
21
|
export type ScreebFunction = (..._: unknown[]) => void | Promise<unknown>;
|
|
20
22
|
/** This is the Screeb object publicly exposed in browser `window`. */
|