@blux.ai/web-sdk 0.0.5 → 0.0.6-tommy0
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/README.md +4 -4
- package/demo/craco.config.js +2 -0
- package/demo/package.json +4 -2
- package/demo/public/index.html +1 -1
- package/demo/tailwind.config.js +2 -0
- package/dist/BluxClient.d.ts +14 -13
- package/dist/BluxClient.js +180 -324
- package/dist/BluxClient.js.map +1 -1
- package/dist/apis/createEvent.d.ts +4 -0
- package/dist/apis/createEvent.js +7 -0
- package/dist/apis/createEvent.js.map +1 -0
- package/dist/apis/getItemRecommendation.d.ts +4 -0
- package/dist/apis/getItemRecommendation.js +7 -0
- package/dist/apis/getItemRecommendation.js.map +1 -0
- package/dist/apis/initialize.d.ts +4 -0
- package/dist/apis/initialize.js +7 -0
- package/dist/apis/initialize.js.map +1 -0
- package/dist/apis/signIn.d.ts +4 -0
- package/dist/apis/signIn.js +7 -0
- package/dist/apis/signIn.js.map +1 -0
- package/dist/apis/signOut.d.ts +4 -0
- package/dist/apis/signOut.js +7 -0
- package/dist/apis/signOut.js.map +1 -0
- package/dist/apis/updateCustomUserProperties.d.ts +4 -0
- package/dist/apis/updateCustomUserProperties.js +7 -0
- package/dist/apis/updateCustomUserProperties.js.map +1 -0
- package/dist/apis/updateUserProperties.d.ts +4 -0
- package/dist/apis/updateUserProperties.js +7 -0
- package/dist/apis/updateUserProperties.js.map +1 -0
- package/dist/constants/URLS.d.ts +1 -7
- package/dist/constants/URLS.js +3 -15
- package/dist/constants/URLS.js.map +1 -1
- package/dist/events/AddCartaddEvent.d.ts +2 -2
- package/dist/events/AddCartaddEvent.js +9 -40
- package/dist/events/AddCartaddEvent.js.map +1 -1
- package/dist/events/AddCustomEvent.d.ts +2 -2
- package/dist/events/AddCustomEvent.js +11 -42
- package/dist/events/AddCustomEvent.js.map +1 -1
- package/dist/events/AddLikeEvent.d.ts +2 -2
- package/dist/events/AddLikeEvent.js +9 -40
- package/dist/events/AddLikeEvent.js.map +1 -1
- package/dist/events/AddPageViewEvent.d.ts +2 -2
- package/dist/events/AddPageViewEvent.js +9 -38
- package/dist/events/AddPageViewEvent.js.map +1 -1
- package/dist/events/AddProductDetailViewEvent.d.ts +2 -2
- package/dist/events/AddProductDetailViewEvent.js +11 -41
- package/dist/events/AddProductDetailViewEvent.js.map +1 -1
- package/dist/events/AddPurchaseEvent.d.ts +2 -2
- package/dist/events/AddPurchaseEvent.js +11 -39
- package/dist/events/AddPurchaseEvent.js.map +1 -1
- package/dist/events/AddRateEvent.d.ts +2 -2
- package/dist/events/AddRateEvent.js +9 -40
- package/dist/events/AddRateEvent.js.map +1 -1
- package/dist/events/AddRecommendationViewEvent.d.ts +2 -2
- package/dist/events/AddRecommendationViewEvent.js +8 -39
- package/dist/events/AddRecommendationViewEvent.js.map +1 -1
- package/dist/events/Event.d.ts +2 -2
- package/dist/events/Event.js +11 -25
- package/dist/events/Event.js.map +1 -1
- package/dist/events/VisitEvent.d.ts +5 -0
- package/dist/events/VisitEvent.js +11 -0
- package/dist/events/VisitEvent.js.map +1 -0
- package/dist/events/index.js +9 -28
- package/dist/events/index.js.map +1 -1
- package/dist/events/types.d.ts +6 -10
- package/dist/events/types.js +2 -6
- package/dist/events/types.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6 -23
- package/dist/index.js.map +1 -1
- package/dist/recommendations/ItemRecommendation.d.ts +5 -0
- package/dist/recommendations/ItemRecommendation.js +12 -0
- package/dist/recommendations/ItemRecommendation.js.map +1 -0
- package/dist/recommendations/Recommendation.d.ts +5 -0
- package/dist/recommendations/Recommendation.js +9 -0
- package/dist/recommendations/Recommendation.js.map +1 -0
- package/dist/recommendations/index.d.ts +1 -0
- package/dist/recommendations/index.js +2 -0
- package/dist/recommendations/index.js.map +1 -0
- package/dist/recommendations/types.d.ts +11 -0
- package/dist/recommendations/types.js +2 -0
- package/dist/recommendations/types.js.map +1 -0
- package/dist/utils/LocalStorage.js +14 -0
- package/dist/utils/LocalStorage.js.map +1 -0
- package/dist/{core → utils}/Logger.d.ts +1 -1
- package/dist/utils/Logger.js +49 -0
- package/dist/utils/Logger.js.map +1 -0
- package/dist/utils/getPath.d.ts +1 -0
- package/dist/utils/getPath.js +4 -0
- package/dist/utils/getPath.js.map +1 -0
- package/dist/utils/helper.js +2 -9
- package/dist/utils/helper.js.map +1 -1
- package/dist/utils/operators.d.ts +1 -1
- package/dist/utils/operators.js +5 -11
- package/dist/utils/operators.js.map +1 -1
- package/package.json +7 -6
- package/.prettierrc +0 -4
- package/.sentryclirc +0 -3
- package/demo/README.md +0 -46
- package/demo/src/App.test.tsx +0 -9
- package/demo/src/App.tsx +0 -158
- package/demo/src/index.css +0 -16
- package/demo/src/index.tsx +0 -19
- package/demo/src/react-app-env.d.ts +0 -1
- package/demo/src/reportWebVitals.ts +0 -15
- package/demo/src/setupTests.ts +0 -5
- package/demo/yarn.lock +0 -10120
- package/dist/core/LocalStorage.js +0 -21
- package/dist/core/LocalStorage.js.map +0 -1
- package/dist/core/Logger.js +0 -88
- package/dist/core/Logger.js.map +0 -1
- package/dist/utils/sentry.d.ts +0 -2
- package/dist/utils/sentry.js +0 -50
- package/dist/utils/sentry.js.map +0 -1
- /package/dist/{core → utils}/LocalStorage.d.ts +0 -0
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="984c1bce-2a88-501a-9964-b1e8f8423f11")}catch(e){}}();
|
|
3
|
-
|
|
4
|
-
exports.__esModule = true;
|
|
5
|
-
exports.LocalStorage = void 0;
|
|
6
|
-
var BLUX_DEVICE_ID = "blux_deviceId";
|
|
7
|
-
var LocalStorage = /** @class */ (function () {
|
|
8
|
-
function LocalStorage() {
|
|
9
|
-
}
|
|
10
|
-
LocalStorage.getDeviceId = function () {
|
|
11
|
-
var deviceId = localStorage.getItem(BLUX_DEVICE_ID);
|
|
12
|
-
return deviceId === "undefined" || (deviceId === null || deviceId === void 0 ? void 0 : deviceId.trim()) == "" ? null : deviceId;
|
|
13
|
-
};
|
|
14
|
-
LocalStorage.setDeviceId = function (deviceId) {
|
|
15
|
-
localStorage.setItem(BLUX_DEVICE_ID, deviceId);
|
|
16
|
-
};
|
|
17
|
-
return LocalStorage;
|
|
18
|
-
}());
|
|
19
|
-
exports.LocalStorage = LocalStorage;
|
|
20
|
-
//# sourceMappingURL=LocalStorage.js.map
|
|
21
|
-
//# debugId=984c1bce-2a88-501a-9964-b1e8f8423f11
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LocalStorage.js","sources":["core/LocalStorage.ts"],"sourceRoot":"/","sourcesContent":["const BLUX_DEVICE_ID = \"blux_deviceId\";\n\nexport class LocalStorage {\n static getDeviceId(): string | null {\n const deviceId = localStorage.getItem(BLUX_DEVICE_ID);\n return deviceId === \"undefined\" || deviceId?.trim() == \"\" ? null : deviceId;\n }\n\n static setDeviceId(deviceId: string) {\n localStorage.setItem(BLUX_DEVICE_ID, deviceId);\n }\n}\n"],"names":[],"mappings":";;;;;AAAA,IAAM,cAAc,GAAG,eAAe,CAAC;AAEvC;IAAA;IASA,CAAC;IARQ,wBAAW,GAAlB;QACE,IAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QACtD,OAAO,QAAQ,KAAK,WAAW,IAAI,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,EAAE,KAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC;IAC9E,CAAC;IAEM,wBAAW,GAAlB,UAAmB,QAAgB;QACjC,YAAY,CAAC,OAAO,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;IACjD,CAAC;IACH,mBAAC;AAAD,CAAC,AATD,IASC;AATY,oCAAY","debug_id":"984c1bce-2a88-501a-9964-b1e8f8423f11"}
|
package/dist/core/Logger.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="178a06b4-8144-5f55-ab8c-a59444df9ad8")}catch(e){}}();
|
|
3
|
-
|
|
4
|
-
var __assign = (this && this.__assign) || function () {
|
|
5
|
-
__assign = Object.assign || function(t) {
|
|
6
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7
|
-
s = arguments[i];
|
|
8
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
9
|
-
t[p] = s[p];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
return __assign.apply(this, arguments);
|
|
14
|
-
};
|
|
15
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
16
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
17
|
-
if (ar || !(i in from)) {
|
|
18
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
19
|
-
ar[i] = from[i];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
23
|
-
};
|
|
24
|
-
exports.__esModule = true;
|
|
25
|
-
exports.Logger = void 0;
|
|
26
|
-
var sentry_1 = require("../utils/sentry");
|
|
27
|
-
var consoleMethodByLevel = {
|
|
28
|
-
debug: console.debug.bind(console),
|
|
29
|
-
log: console.log.bind(console),
|
|
30
|
-
warning: console.warn.bind(console),
|
|
31
|
-
error: console.error.bind(console),
|
|
32
|
-
fatal: console.error.bind(console)
|
|
33
|
-
};
|
|
34
|
-
var LOG_LEVEL_ORDERS = {
|
|
35
|
-
debug: 0,
|
|
36
|
-
log: 1,
|
|
37
|
-
warning: 2,
|
|
38
|
-
error: 3,
|
|
39
|
-
fatal: 4
|
|
40
|
-
};
|
|
41
|
-
var Logger = /** @class */ (function () {
|
|
42
|
-
function Logger() {
|
|
43
|
-
}
|
|
44
|
-
Logger.base = function (message, level, context) {
|
|
45
|
-
var _a;
|
|
46
|
-
if (level !== "debug") {
|
|
47
|
-
if (typeof message === "string") {
|
|
48
|
-
sentry_1.Sentry.captureMessage(message, __assign(__assign({}, context), { level: level }));
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
sentry_1.Sentry.captureException(message, __assign(__assign({}, context), { level: level }));
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
if (LOG_LEVEL_ORDERS[level] >= LOG_LEVEL_ORDERS[this.logLevel]) {
|
|
55
|
-
var logForConsole = ["[BluxClient]", message];
|
|
56
|
-
if (context === null || context === void 0 ? void 0 : context.extra) {
|
|
57
|
-
logForConsole.push(context.extra);
|
|
58
|
-
}
|
|
59
|
-
if (context === null || context === void 0 ? void 0 : context.tags) {
|
|
60
|
-
logForConsole.push(context.tags);
|
|
61
|
-
}
|
|
62
|
-
(_a = consoleMethodByLevel[level]) === null || _a === void 0 ? void 0 : _a.call.apply(_a, __spreadArray([consoleMethodByLevel], logForConsole, false));
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
Logger.debug = function (message, context) {
|
|
66
|
-
this.base(message, "debug", context);
|
|
67
|
-
};
|
|
68
|
-
Logger.log = function (message, context) {
|
|
69
|
-
this.base(message, "log", context);
|
|
70
|
-
};
|
|
71
|
-
Logger.warning = function (message, context) {
|
|
72
|
-
this.base(message, "warning", context);
|
|
73
|
-
};
|
|
74
|
-
Logger.error = function (message, context) {
|
|
75
|
-
this.base(message, "error", context);
|
|
76
|
-
};
|
|
77
|
-
Logger.fatal = function (message, context) {
|
|
78
|
-
this.base(message, "fatal", context);
|
|
79
|
-
};
|
|
80
|
-
Logger.setLevel = function (level) {
|
|
81
|
-
this.logLevel = level;
|
|
82
|
-
};
|
|
83
|
-
Logger.logLevel = "error";
|
|
84
|
-
return Logger;
|
|
85
|
-
}());
|
|
86
|
-
exports.Logger = Logger;
|
|
87
|
-
//# sourceMappingURL=Logger.js.map
|
|
88
|
-
//# debugId=178a06b4-8144-5f55-ab8c-a59444df9ad8
|
package/dist/core/Logger.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Logger.js","sources":["core/Logger.ts"],"sourceRoot":"/","sourcesContent":["import { ScopeContext } from \"@sentry/types\";\nimport { Sentry } from \"../utils/sentry\";\n\nconst consoleMethodByLevel = {\n debug: console.debug.bind(console),\n log: console.log.bind(console),\n warning: console.warn.bind(console),\n error: console.error.bind(console),\n fatal: console.error.bind(console),\n} as const;\n\nexport type LogLevel = \"debug\" | \"log\" | \"warning\" | \"error\" | \"fatal\";\n\nconst LOG_LEVEL_ORDERS = {\n debug: 0,\n log: 1,\n warning: 2,\n error: 3,\n fatal: 4,\n};\n\nexport type Context = Partial<Pick<ScopeContext, \"tags\" | \"extra\">>;\n\nexport class Logger {\n public static logLevel: LogLevel = \"error\";\n\n private static base(\n message: string | Error,\n level: LogLevel,\n context?: Context\n ) {\n if (level !== \"debug\") {\n if (typeof message === \"string\") {\n Sentry.captureMessage(message, { ...context, level });\n } else {\n Sentry.captureException(message, { ...context, level });\n }\n }\n\n if (LOG_LEVEL_ORDERS[level] >= LOG_LEVEL_ORDERS[this.logLevel]) {\n const logForConsole: unknown[] = [\"[BluxClient]\", message];\n\n if (context?.extra) {\n logForConsole.push(context.extra);\n }\n if (context?.tags) {\n logForConsole.push(context.tags);\n }\n\n consoleMethodByLevel[level]?.(...logForConsole);\n }\n }\n public static debug(message: string | Error, context?: Context) {\n this.base(message, \"debug\", context);\n }\n public static log(message: string | Error, context?: Context) {\n this.base(message, \"log\", context);\n }\n public static warning(message: string | Error, context?: Context) {\n this.base(message, \"warning\", context);\n }\n public static error(message: string | Error, context?: Context) {\n this.base(message, \"error\", context);\n }\n public static fatal(message: string | Error, context?: Context) {\n this.base(message, \"fatal\", context);\n }\n\n public static setLevel(level: LogLevel) {\n this.logLevel = level;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,0CAAyC;AAEzC,IAAM,oBAAoB,GAAG;IAC3B,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC;IAClC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;IACnC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC;IAClC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC;CAC1B,CAAC;AAIX,IAAM,gBAAgB,GAAG;IACvB,KAAK,EAAE,CAAC;IACR,GAAG,EAAE,CAAC;IACN,OAAO,EAAE,CAAC;IACV,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAC;CACT,CAAC;AAIF;IAAA;IAgDA,CAAC;IA7CgB,WAAI,GAAnB,UACE,OAAuB,EACvB,KAAe,EACf,OAAiB;;QAEjB,IAAI,KAAK,KAAK,OAAO,EAAE;YACrB,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;gBAC/B,eAAM,CAAC,cAAc,CAAC,OAAO,wBAAO,OAAO,KAAE,KAAK,OAAA,IAAG,CAAC;aACvD;iBAAM;gBACL,eAAM,CAAC,gBAAgB,CAAC,OAAO,wBAAO,OAAO,KAAE,KAAK,OAAA,IAAG,CAAC;aACzD;SACF;QAED,IAAI,gBAAgB,CAAC,KAAK,CAAC,IAAI,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;YAC9D,IAAM,aAAa,GAAc,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;YAE3D,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,EAAE;gBAClB,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;aACnC;YACD,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,EAAE;gBACjB,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;aAClC;YAED,MAAA,oBAAoB,CAAC,KAAK,CAAC,+FAAM,aAAa,SAAC,CAAC;SACjD;IACH,CAAC;IACa,YAAK,GAAnB,UAAoB,OAAuB,EAAE,OAAiB;QAC5D,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;IACa,UAAG,GAAjB,UAAkB,OAAuB,EAAE,OAAiB;QAC1D,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACrC,CAAC;IACa,cAAO,GAArB,UAAsB,OAAuB,EAAE,OAAiB;QAC9D,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACzC,CAAC;IACa,YAAK,GAAnB,UAAoB,OAAuB,EAAE,OAAiB;QAC5D,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;IACa,YAAK,GAAnB,UAAoB,OAAuB,EAAE,OAAiB;QAC5D,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;IAEa,eAAQ,GAAtB,UAAuB,KAAe;QACpC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;IA9Ca,eAAQ,GAAa,OAAO,CAAC;IA+C7C,aAAC;CAAA,AAhDD,IAgDC;AAhDY,wBAAM","debug_id":"178a06b4-8144-5f55-ab8c-a59444df9ad8"}
|
package/dist/utils/sentry.d.ts
DELETED
package/dist/utils/sentry.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="799f2a8f-465a-58f3-b22a-c0013c4972e0")}catch(e){}}();
|
|
3
|
-
|
|
4
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
-
if (k2 === undefined) k2 = k;
|
|
6
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
-
}
|
|
10
|
-
Object.defineProperty(o, k2, desc);
|
|
11
|
-
}) : (function(o, m, k, k2) {
|
|
12
|
-
if (k2 === undefined) k2 = k;
|
|
13
|
-
o[k2] = m[k];
|
|
14
|
-
}));
|
|
15
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
-
}) : function(o, v) {
|
|
18
|
-
o["default"] = v;
|
|
19
|
-
});
|
|
20
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
-
if (mod && mod.__esModule) return mod;
|
|
22
|
-
var result = {};
|
|
23
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
-
__setModuleDefault(result, mod);
|
|
25
|
-
return result;
|
|
26
|
-
};
|
|
27
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
28
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
29
|
-
if (ar || !(i in from)) {
|
|
30
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
31
|
-
ar[i] = from[i];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
35
|
-
};
|
|
36
|
-
exports.__esModule = true;
|
|
37
|
-
exports.Sentry = void 0;
|
|
38
|
-
var Sentry = __importStar(require("@sentry/browser"));
|
|
39
|
-
exports.Sentry = Sentry;
|
|
40
|
-
var URLS_1 = require("../constants/URLS");
|
|
41
|
-
Sentry.init({
|
|
42
|
-
dsn: "https://0dc14410c660573f842686340cd7d712@o4506467425648640.ingest.us.sentry.io/4507571328253952",
|
|
43
|
-
// Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
|
|
44
|
-
tracePropagationTargets: __spreadArray(__spreadArray([
|
|
45
|
-
"localhost"
|
|
46
|
-
], Object.values(URLS_1.IDENTIFIER_API_URL_BY_STAGE), true), Object.values(URLS_1.COLLECTOR_API_URL_BY_STAGE), true),
|
|
47
|
-
autoSessionTracking: false
|
|
48
|
-
});
|
|
49
|
-
//# sourceMappingURL=sentry.js.map
|
|
50
|
-
//# debugId=799f2a8f-465a-58f3-b22a-c0013c4972e0
|
package/dist/utils/sentry.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sentry.js","sources":["utils/sentry.ts"],"sourceRoot":"/","sourcesContent":["import * as Sentry from \"@sentry/browser\";\nimport {\n COLLECTOR_API_URL_BY_STAGE,\n IDENTIFIER_API_URL_BY_STAGE,\n} from \"../constants/URLS\";\n\nSentry.init({\n dsn: \"https://0dc14410c660573f842686340cd7d712@o4506467425648640.ingest.us.sentry.io/4507571328253952\",\n // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled\n tracePropagationTargets: [\n \"localhost\",\n ...Object.values(IDENTIFIER_API_URL_BY_STAGE),\n ...Object.values(COLLECTOR_API_URL_BY_STAGE),\n ],\n autoSessionTracking: false,\n // Session Replay\n});\n\nexport { Sentry };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAA0C;AAkBjC,wBAAM;AAjBf,0CAG2B;AAE3B,MAAM,CAAC,IAAI,CAAC;IACV,GAAG,EAAE,iGAAiG;IACtG,gGAAgG;IAChG,uBAAuB;QACrB,WAAW;OACR,MAAM,CAAC,MAAM,CAAC,kCAA2B,CAAC,SAC1C,MAAM,CAAC,MAAM,CAAC,iCAA0B,CAAC,OAC7C;IACD,mBAAmB,EAAE,KAAK;CAE3B,CAAC,CAAC","debug_id":"799f2a8f-465a-58f3-b22a-c0013c4972e0"}
|
|
File without changes
|