@arcxmoney/analytics
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -21,1 +21,2 @@ import { Attributes, SdkConfig } from './types'; | ||
} | ||
//# sourceMappingURL=ArcxAnalyticsSdk.d.ts.map |
@@ -40,3 +40,3 @@ "use strict"; | ||
const sdkConfig = Object.assign(Object.assign({}, constants_1.DEFAULT_SDK_CONFIG), config); | ||
const identityId = ((sdkConfig === null || sdkConfig === void 0 ? void 0 : sdkConfig.cacheIdentity) && localStorage.getItem(constants_1.IDENTITY_KEY)) || (yield this.postAnalytics(arcxUrl, apiKey, '/init')); | ||
const identityId = ((sdkConfig === null || sdkConfig === void 0 ? void 0 : sdkConfig.cacheIdentity) && localStorage.getItem(constants_1.IDENTITY_KEY)) || (yield this.postAnalytics(arcxUrl, apiKey, '/identify')); | ||
(sdkConfig === null || sdkConfig === void 0 ? void 0 : sdkConfig.cacheIdentity) && localStorage.setItem(constants_1.IDENTITY_KEY, identityId); | ||
@@ -83,1 +83,2 @@ return new ArcxAnalyticsSdk(apiKey, identityId, arcxUrl, sdkConfig); | ||
exports.ArcxAnalyticsSdk = ArcxAnalyticsSdk; | ||
//# sourceMappingURL=ArcxAnalyticsSdk.js.map |
import { SdkConfig } from '../types'; | ||
export declare const DEFAULT_SDK_CONFIG: SdkConfig; | ||
export declare const IDENTITY_KEY = "identity"; | ||
//# sourceMappingURL=config.d.ts.map |
@@ -9,1 +9,2 @@ "use strict"; | ||
exports.IDENTITY_KEY = 'identity'; | ||
//# sourceMappingURL=config.js.map |
export declare const PAGE_EVENT = "PAGE"; | ||
export declare const CONNECT_EVENT = "CONNECT"; | ||
export declare const TRANSACTION_EVENT = "TRANSACTION_SUBMITTED"; | ||
//# sourceMappingURL=events.d.ts.map |
@@ -7,1 +7,2 @@ "use strict"; | ||
exports.TRANSACTION_EVENT = 'TRANSACTION_SUBMITTED'; | ||
//# sourceMappingURL=events.js.map |
export * from './config'; | ||
export * from './events'; | ||
export * from './urls'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -20,1 +20,2 @@ "use strict"; | ||
__exportStar(require("./urls"), exports); | ||
//# sourceMappingURL=index.js.map |
export declare const PROD_URL_BACKEND = "https://api.arcx.money/v1"; | ||
//# sourceMappingURL=urls.d.ts.map |
@@ -5,1 +5,2 @@ "use strict"; | ||
exports.PROD_URL_BACKEND = 'https://api.arcx.money/v1'; | ||
//# sourceMappingURL=urls.js.map |
export * from './ArcxAnalyticsSdk'; | ||
export * from './types'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -19,1 +19,2 @@ "use strict"; | ||
__exportStar(require("./types"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -6,1 +6,2 @@ export declare type Attributes = Record<string, string | number | Record<string, string | number>>; | ||
}; | ||
//# sourceMappingURL=types.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=types.js.map |
export {}; | ||
//# sourceMappingURL=ArcxAnalyticsSdk.test.d.ts.map |
@@ -98,1 +98,2 @@ "use strict"; | ||
} | ||
//# sourceMappingURL=ArcxAnalyticsSdk.test.js.map |
{ | ||
"name": "@arcxmoney/analytics", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -33,3 +33,3 @@ import { cast, asString } from '@restless/sanitizers' | ||
const identityId = (sdkConfig?.cacheIdentity && localStorage.getItem(IDENTITY_KEY)) || await this.postAnalytics(arcxUrl, apiKey, '/init') | ||
const identityId = (sdkConfig?.cacheIdentity && localStorage.getItem(IDENTITY_KEY)) || await this.postAnalytics(arcxUrl, apiKey, '/identify') | ||
@@ -36,0 +36,0 @@ sdkConfig?.cacheIdentity && localStorage.setItem(IDENTITY_KEY, identityId) |
@@ -16,4 +16,6 @@ { | ||
"noUnusedParameters": true, | ||
"declarationMap": true, | ||
"composite": true, | ||
"incremental": true, | ||
"sourceMap": true, | ||
"outDir": "dist", | ||
@@ -20,0 +22,0 @@ "isolatedModules": true, |
Sorry, the diff of this file is not supported yet
67687
1173