@segment/analytics-browser-actions-ms-bing-capi 1.0.1-staging-fb8bbedd8.0 → 1.0.1-staging-5ce218cce.0

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.
Files changed (40) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/index.d.ts +1 -1
  3. package/dist/cjs/index.js +12 -4
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/{msclickId → msclkidPlugin}/generated-types.d.ts +0 -1
  6. package/dist/cjs/msclkidPlugin/generated-types.js.map +1 -0
  7. package/dist/{esm/msclickId → cjs/msclkidPlugin}/index.d.ts +1 -1
  8. package/dist/cjs/msclkidPlugin/index.js +26 -0
  9. package/dist/cjs/msclkidPlugin/index.js.map +1 -0
  10. package/dist/cjs/utils.d.ts +8 -0
  11. package/dist/cjs/utils.js +28 -0
  12. package/dist/cjs/utils.js.map +1 -0
  13. package/dist/esm/index.d.ts +1 -1
  14. package/dist/esm/index.js +12 -4
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/{msclickId → msclkidPlugin}/generated-types.d.ts +0 -1
  17. package/dist/esm/msclkidPlugin/generated-types.js.map +1 -0
  18. package/dist/{cjs/msclickId → esm/msclkidPlugin}/index.d.ts +1 -1
  19. package/dist/esm/msclkidPlugin/index.js +24 -0
  20. package/dist/esm/msclkidPlugin/index.js.map +1 -0
  21. package/dist/esm/utils.d.ts +8 -0
  22. package/dist/esm/utils.js +24 -0
  23. package/dist/esm/utils.js.map +1 -0
  24. package/dist/tsconfig.tsbuildinfo +1 -1
  25. package/package.json +2 -2
  26. package/src/__tests__/index.test.ts +61 -0
  27. package/src/index.ts +16 -8
  28. package/src/msclkidPlugin/generated-types.ts +3 -0
  29. package/src/msclkidPlugin/index.ts +29 -0
  30. package/src/utils.ts +32 -0
  31. package/dist/cjs/msclickId/generated-types.js.map +0 -1
  32. package/dist/cjs/msclickId/index.js +0 -69
  33. package/dist/cjs/msclickId/index.js.map +0 -1
  34. package/dist/esm/msclickId/generated-types.js.map +0 -1
  35. package/dist/esm/msclickId/index.js +0 -67
  36. package/dist/esm/msclickId/index.js.map +0 -1
  37. package/src/msclickId/generated-types.ts +0 -8
  38. package/src/msclickId/index.ts +0 -88
  39. /package/dist/cjs/{msclickId → msclkidPlugin}/generated-types.js +0 -0
  40. /package/dist/esm/{msclickId → msclkidPlugin}/generated-types.js +0 -0
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # @segment/analytics-browser-actions-ms-bing-capi
1
+ # @segment/analytics-browser-actions-ms-bing-capi-plugins
2
2
 
3
- The Ms Bing Capi Plugin browser action destination for use with @segment/analytics-next.
3
+ The Microsoft Bing CAPI Browser Plugins browser action destination for use with @segment/analytics-next.
4
4
 
5
5
  ## License
6
6
 
@@ -1,5 +1,5 @@
1
1
  import type { Settings } from './generated-types';
2
2
  import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types';
3
- export declare const destination: BrowserDestinationDefinition<Settings, unknown>;
3
+ export declare const destination: BrowserDestinationDefinition<Settings, {}>;
4
4
  declare const _default: import("@segment/browser-destination-runtime/types").PluginFactory;
5
5
  export default _default;
package/dist/cjs/index.js CHANGED
@@ -3,15 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.destination = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const shim_1 = require("@segment/browser-destination-runtime/shim");
6
- const msclickId_1 = tslib_1.__importDefault(require("./msclickId"));
6
+ const utils_1 = require("./utils");
7
+ const msclkidPlugin_1 = tslib_1.__importDefault(require("./msclkidPlugin"));
7
8
  exports.destination = {
8
- name: 'Ms Bing Capi Plugin',
9
+ name: 'Microsoft Bing CAPI Browser Plugins',
9
10
  mode: 'device',
10
- initialize: async () => {
11
+ initialize: async ({ analytics }) => {
12
+ const storage = analytics.storage ?? utils_1.storageFallback;
13
+ const urlParams = new URLSearchParams(window.location.search);
14
+ const msclkid = urlParams.get(utils_1.clickIdQuerystringName) || null;
15
+ if (msclkid) {
16
+ storage.set(utils_1.storageClickIdKey, msclkid);
17
+ }
11
18
  return {};
12
19
  },
20
+ settings: {},
13
21
  actions: {
14
- msclickId: msclickId_1.default
22
+ msclkidPlugin: msclkidPlugin_1.default
15
23
  }
16
24
  };
17
25
  exports.default = (0, shim_1.browserDestination)(exports.destination);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAEA,oEAA8E;AAE9E,oEAAmC;AAGtB,QAAA,WAAW,GAAoD;IAC1E,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,KAAK,IAAI,EAAE;QAErB,OAAO,EAAE,CAAA;IACX,CAAC;IAED,OAAO,EAAE;QACP,SAAS,EAAT,mBAAS;KACV;CACF,CAAA;AAED,kBAAe,IAAA,yBAAkB,EAAC,mBAAW,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAEA,oEAA8E;AAC9E,mCAAoF;AAEpF,4EAA2C;AAG9B,QAAA,WAAW,GAA+C;IACrE,IAAI,EAAE,qCAAqC;IAC3C,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAClC,MAAM,OAAO,GAAI,SAAS,CAAC,OAAoD,IAAI,uBAAe,CAAA;QAClG,MAAM,SAAS,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;QAC7D,MAAM,OAAO,GAAkB,SAAS,CAAC,GAAG,CAAC,8BAAsB,CAAC,IAAI,IAAI,CAAA;QAE5E,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,GAAG,CAAC,yBAAiB,EAAE,OAAO,CAAC,CAAA;QACzC,CAAC;QAED,OAAO,EAAE,CAAA;IACX,CAAC;IACD,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE;QACP,aAAa,EAAb,uBAAa;KACd;CACF,CAAA;AAED,kBAAe,IAAA,yBAAkB,EAAC,mBAAW,CAAC,CAAA"}
@@ -1,3 +1,2 @@
1
1
  export interface Payload {
2
- sessionLength?: number;
3
2
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/msclkidPlugin/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types';
2
2
  import type { Settings } from '../generated-types';
3
3
  import type { Payload } from './generated-types';
4
- declare const action: BrowserActionDefinition<Settings, unknown, Payload>;
4
+ declare const action: BrowserActionDefinition<Settings, {}, Payload>;
5
5
  export default action;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utils_1 = require("../utils");
4
+ const action = {
5
+ title: 'Microsoft Bing msclkid Browser Plugin',
6
+ description: 'Enriches all Segment payloads with the Microsoft Bing msclkid Querystring value',
7
+ platform: 'web',
8
+ hidden: false,
9
+ defaultSubscription: 'type = "track" or type = "identify" or type = "page" or type = "group" or type = "alias"',
10
+ fields: {},
11
+ lifecycleHook: 'enrichment',
12
+ perform: (_, { context, analytics }) => {
13
+ const storage = analytics.storage ?? utils_1.storageFallback;
14
+ const msclkid = storage.get(utils_1.storageClickIdKey);
15
+ const integrationsData = {};
16
+ if (msclkid) {
17
+ integrationsData[utils_1.clickIdIntegrationFieldName] = msclkid;
18
+ if (context.event.integrations?.All !== false || context.event.integrations['Snap Conversions Api']) {
19
+ context.updateEvent(`integrations.Microsoft Bing CAPI`, integrationsData);
20
+ }
21
+ }
22
+ return;
23
+ }
24
+ };
25
+ exports.default = action;
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/msclkidPlugin/index.ts"],"names":[],"mappings":";;AAGA,oCAA0F;AAG1F,MAAM,MAAM,GAAmD;IAC7D,KAAK,EAAE,uCAAuC;IAC9C,WAAW,EAAE,iFAAiF;IAC9F,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,KAAK;IACb,mBAAmB,EAAE,0FAA0F;IAC/G,MAAM,EAAE,EAAE;IACV,aAAa,EAAE,YAAY;IAC3B,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE;QACrC,MAAM,OAAO,GAAI,SAAS,CAAC,OAAoD,IAAI,uBAAe,CAAA;QAClG,MAAM,OAAO,GAAkB,OAAO,CAAC,GAAG,CAAC,yBAAiB,CAAC,CAAA;QAC7D,MAAM,gBAAgB,GAA2B,EAAE,CAAA;QACnD,IAAI,OAAO,EAAE,CAAC;YACZ,gBAAgB,CAAC,mCAA2B,CAAC,GAAG,OAAO,CAAA;YACvD,IAAI,OAAO,CAAC,KAAK,CAAC,YAAY,EAAE,GAAG,KAAK,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,sBAAsB,CAAC,EAAE,CAAC;gBACpG,OAAO,CAAC,WAAW,CAAC,kCAAkC,EAAE,gBAAgB,CAAC,CAAA;YAC3E,CAAC;QACH,CAAC;QACD,OAAM;IACR,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,8 @@
1
+ export declare const storageClickIdKey = "analytics_ms_capi_click_id";
2
+ export declare const clickIdQuerystringName = "msclkid";
3
+ export declare const clickIdIntegrationFieldName = "msclkid";
4
+ export declare const getCookieValue: (cookieName: string) => string | null;
5
+ export declare const storageFallback: {
6
+ get: (key: string) => string | null;
7
+ set: (key: string, value: string) => void;
8
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.storageFallback = exports.getCookieValue = exports.clickIdIntegrationFieldName = exports.clickIdQuerystringName = exports.storageClickIdKey = void 0;
4
+ exports.storageClickIdKey = 'analytics_ms_capi_click_id';
5
+ exports.clickIdQuerystringName = 'msclkid';
6
+ exports.clickIdIntegrationFieldName = 'msclkid';
7
+ const getCookieValue = (cookieName) => {
8
+ const name = cookieName + '=';
9
+ const decodedCookie = decodeURIComponent(document.cookie);
10
+ const cookieArray = decodedCookie.split('; ');
11
+ for (const cookie of cookieArray) {
12
+ if (cookie.startsWith(name)) {
13
+ return cookie.substring(name.length);
14
+ }
15
+ }
16
+ return null;
17
+ };
18
+ exports.getCookieValue = getCookieValue;
19
+ exports.storageFallback = {
20
+ get: (key) => {
21
+ const data = window.localStorage.getItem(key);
22
+ return data;
23
+ },
24
+ set: (key, value) => {
25
+ return window.localStorage.setItem(key, value);
26
+ }
27
+ };
28
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;AACa,QAAA,iBAAiB,GAAG,4BAA4B,CAAA;AAGhD,QAAA,sBAAsB,GAAG,SAAS,CAAA;AAGlC,QAAA,2BAA2B,GAAG,SAAS,CAAA;AAE7C,MAAM,cAAc,GAAG,CAAC,UAAkB,EAAiB,EAAE;IAClE,MAAM,IAAI,GAAG,UAAU,GAAG,GAAG,CAAA;IAC7B,MAAM,aAAa,GAAG,kBAAkB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;IACzD,MAAM,WAAW,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAE7C,KAAK,MAAM,MAAM,IAAI,WAAW,EAAE,CAAC;QACjC,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5B,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACtC,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAZY,QAAA,cAAc,kBAY1B;AAEY,QAAA,eAAe,GAAG;IAC7B,GAAG,EAAE,CAAC,GAAW,EAAE,EAAE;QACnB,MAAM,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;QAC7C,OAAO,IAAI,CAAA;IACb,CAAC;IACD,GAAG,EAAE,CAAC,GAAW,EAAE,KAAa,EAAE,EAAE;QAClC,OAAO,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IAChD,CAAC;CACF,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import type { Settings } from './generated-types';
2
2
  import type { BrowserDestinationDefinition } from '@segment/browser-destination-runtime/types';
3
- export declare const destination: BrowserDestinationDefinition<Settings, unknown>;
3
+ export declare const destination: BrowserDestinationDefinition<Settings, {}>;
4
4
  declare const _default: import("@segment/browser-destination-runtime/types").PluginFactory;
5
5
  export default _default;
package/dist/esm/index.js CHANGED
@@ -1,13 +1,21 @@
1
1
  import { browserDestination } from '@segment/browser-destination-runtime/shim';
2
- import msclickId from './msclickId';
2
+ import { storageClickIdKey, clickIdQuerystringName, storageFallback } from './utils';
3
+ import msclkidPlugin from './msclkidPlugin';
3
4
  export const destination = {
4
- name: 'Ms Bing Capi Plugin',
5
+ name: 'Microsoft Bing CAPI Browser Plugins',
5
6
  mode: 'device',
6
- initialize: async () => {
7
+ initialize: async ({ analytics }) => {
8
+ const storage = analytics.storage ?? storageFallback;
9
+ const urlParams = new URLSearchParams(window.location.search);
10
+ const msclkid = urlParams.get(clickIdQuerystringName) || null;
11
+ if (msclkid) {
12
+ storage.set(storageClickIdKey, msclkid);
13
+ }
7
14
  return {};
8
15
  },
16
+ settings: {},
9
17
  actions: {
10
- msclickId
18
+ msclkidPlugin
11
19
  }
12
20
  };
13
21
  export default browserDestination(destination);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAA;AAE9E,OAAO,SAAS,MAAM,aAAa,CAAA;AAGnC,MAAM,CAAC,MAAM,WAAW,GAAoD;IAC1E,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,KAAK,IAAI,EAAE;QAErB,OAAO,EAAE,CAAA;IACX,CAAC;IAED,OAAO,EAAE;QACP,SAAS;KACV;CACF,CAAA;AAED,eAAe,kBAAkB,CAAC,WAAW,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAA;AAC9E,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEpF,OAAO,aAAa,MAAM,iBAAiB,CAAA;AAG3C,MAAM,CAAC,MAAM,WAAW,GAA+C;IACrE,IAAI,EAAE,qCAAqC;IAC3C,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAClC,MAAM,OAAO,GAAI,SAAS,CAAC,OAAoD,IAAI,eAAe,CAAA;QAClG,MAAM,SAAS,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;QAC7D,MAAM,OAAO,GAAkB,SAAS,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,IAAI,CAAA;QAE5E,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAA;QACzC,CAAC;QAED,OAAO,EAAE,CAAA;IACX,CAAC;IACD,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE;QACP,aAAa;KACd;CACF,CAAA;AAED,eAAe,kBAAkB,CAAC,WAAW,CAAC,CAAA"}
@@ -1,3 +1,2 @@
1
1
  export interface Payload {
2
- sessionLength?: number;
3
2
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/msclkidPlugin/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import type { BrowserActionDefinition } from '@segment/browser-destination-runtime/types';
2
2
  import type { Settings } from '../generated-types';
3
3
  import type { Payload } from './generated-types';
4
- declare const action: BrowserActionDefinition<Settings, unknown, Payload>;
4
+ declare const action: BrowserActionDefinition<Settings, {}, Payload>;
5
5
  export default action;
@@ -0,0 +1,24 @@
1
+ import { storageClickIdKey, clickIdIntegrationFieldName, storageFallback } from '../utils';
2
+ const action = {
3
+ title: 'Microsoft Bing msclkid Browser Plugin',
4
+ description: 'Enriches all Segment payloads with the Microsoft Bing msclkid Querystring value',
5
+ platform: 'web',
6
+ hidden: false,
7
+ defaultSubscription: 'type = "track" or type = "identify" or type = "page" or type = "group" or type = "alias"',
8
+ fields: {},
9
+ lifecycleHook: 'enrichment',
10
+ perform: (_, { context, analytics }) => {
11
+ const storage = analytics.storage ?? storageFallback;
12
+ const msclkid = storage.get(storageClickIdKey);
13
+ const integrationsData = {};
14
+ if (msclkid) {
15
+ integrationsData[clickIdIntegrationFieldName] = msclkid;
16
+ if (context.event.integrations?.All !== false || context.event.integrations['Snap Conversions Api']) {
17
+ context.updateEvent(`integrations.Microsoft Bing CAPI`, integrationsData);
18
+ }
19
+ }
20
+ return;
21
+ }
22
+ };
23
+ export default action;
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/msclkidPlugin/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAG1F,MAAM,MAAM,GAAmD;IAC7D,KAAK,EAAE,uCAAuC;IAC9C,WAAW,EAAE,iFAAiF;IAC9F,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,KAAK;IACb,mBAAmB,EAAE,0FAA0F;IAC/G,MAAM,EAAE,EAAE;IACV,aAAa,EAAE,YAAY;IAC3B,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE;QACrC,MAAM,OAAO,GAAI,SAAS,CAAC,OAAoD,IAAI,eAAe,CAAA;QAClG,MAAM,OAAO,GAAkB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAA;QAC7D,MAAM,gBAAgB,GAA2B,EAAE,CAAA;QACnD,IAAI,OAAO,EAAE,CAAC;YACZ,gBAAgB,CAAC,2BAA2B,CAAC,GAAG,OAAO,CAAA;YACvD,IAAI,OAAO,CAAC,KAAK,CAAC,YAAY,EAAE,GAAG,KAAK,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,sBAAsB,CAAC,EAAE,CAAC;gBACpG,OAAO,CAAC,WAAW,CAAC,kCAAkC,EAAE,gBAAgB,CAAC,CAAA;YAC3E,CAAC;QACH,CAAC;QACD,OAAM;IACR,CAAC;CACF,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -0,0 +1,8 @@
1
+ export declare const storageClickIdKey = "analytics_ms_capi_click_id";
2
+ export declare const clickIdQuerystringName = "msclkid";
3
+ export declare const clickIdIntegrationFieldName = "msclkid";
4
+ export declare const getCookieValue: (cookieName: string) => string | null;
5
+ export declare const storageFallback: {
6
+ get: (key: string) => string | null;
7
+ set: (key: string, value: string) => void;
8
+ };
@@ -0,0 +1,24 @@
1
+ export const storageClickIdKey = 'analytics_ms_capi_click_id';
2
+ export const clickIdQuerystringName = 'msclkid';
3
+ export const clickIdIntegrationFieldName = 'msclkid';
4
+ export const getCookieValue = (cookieName) => {
5
+ const name = cookieName + '=';
6
+ const decodedCookie = decodeURIComponent(document.cookie);
7
+ const cookieArray = decodedCookie.split('; ');
8
+ for (const cookie of cookieArray) {
9
+ if (cookie.startsWith(name)) {
10
+ return cookie.substring(name.length);
11
+ }
12
+ }
13
+ return null;
14
+ };
15
+ export const storageFallback = {
16
+ get: (key) => {
17
+ const data = window.localStorage.getItem(key);
18
+ return data;
19
+ },
20
+ set: (key, value) => {
21
+ return window.localStorage.setItem(key, value);
22
+ }
23
+ };
24
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,iBAAiB,GAAG,4BAA4B,CAAA;AAG7D,MAAM,CAAC,MAAM,sBAAsB,GAAG,SAAS,CAAA;AAG/C,MAAM,CAAC,MAAM,2BAA2B,GAAG,SAAS,CAAA;AAEpD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,UAAkB,EAAiB,EAAE;IAClE,MAAM,IAAI,GAAG,UAAU,GAAG,GAAG,CAAA;IAC7B,MAAM,aAAa,GAAG,kBAAkB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;IACzD,MAAM,WAAW,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAE7C,KAAK,MAAM,MAAM,IAAI,WAAW,EAAE,CAAC;QACjC,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5B,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACtC,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,GAAG,EAAE,CAAC,GAAW,EAAE,EAAE;QACnB,MAAM,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;QAC7C,OAAO,IAAI,CAAA;IACb,CAAC;IACD,GAAG,EAAE,CAAC,GAAW,EAAE,KAAa,EAAE,EAAE;QAClC,OAAO,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IAChD,CAAC;CACF,CAAA"}