@croct/sdk 0.11.0-alpha → 0.11.0-alpha.1
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/.src/activeRecord.ts +150 -0
- package/.src/base64Url.ts +18 -0
- package/.src/cache/cache.ts +15 -0
- package/.src/cache/fallbackCache.ts +29 -0
- package/.src/cache/inMemoryCache.ts +21 -0
- package/.src/cache/index.ts +4 -0
- package/.src/cache/localStorageCache.ts +85 -0
- package/.src/channel/beaconSocketChannel.ts +153 -0
- package/.src/channel/channel.ts +20 -0
- package/.src/channel/encodedChannel.ts +21 -0
- package/.src/channel/guaranteedChannel.ts +131 -0
- package/.src/channel/index.ts +8 -0
- package/.src/channel/queuedChannel.ts +112 -0
- package/.src/channel/retryChannel.ts +90 -0
- package/.src/channel/sandboxChannel.ts +43 -0
- package/.src/channel/socketChannel.ts +217 -0
- package/.src/cid/assigner.ts +3 -0
- package/.src/cid/cachedAssigner.ts +35 -0
- package/.src/cid/fixedAssigner.ts +13 -0
- package/.src/cid/index.ts +4 -0
- package/.src/cid/remoteAssigner.ts +47 -0
- package/.src/constants.ts +6 -0
- package/.src/container.ts +388 -0
- package/.src/contentFetcher.ts +226 -0
- package/.src/context.ts +137 -0
- package/.src/error.ts +31 -0
- package/.src/evaluator.ts +251 -0
- package/.src/eventManager.ts +53 -0
- package/.src/facade/contentFetcherFacade.ts +69 -0
- package/.src/facade/evaluatorFacade.ts +152 -0
- package/.src/facade/index.ts +7 -0
- package/.src/facade/sdkFacade.ts +291 -0
- package/.src/facade/sessionFacade.ts +14 -0
- package/.src/facade/sessionPatch.ts +32 -0
- package/.src/facade/trackerFacade.ts +98 -0
- package/.src/facade/userFacade.ts +26 -0
- package/.src/facade/userPatch.ts +32 -0
- package/.src/index.ts +4 -0
- package/.src/logging/consoleLogger.ts +37 -0
- package/.src/logging/index.ts +4 -0
- package/.src/logging/logger.ts +13 -0
- package/.src/logging/namespacedLogger.ts +32 -0
- package/.src/logging/nullLogger.ts +19 -0
- package/.src/namespacedStorage.ts +69 -0
- package/.src/patch.ts +64 -0
- package/.src/queue/capacityRestrictedQueue.ts +44 -0
- package/.src/queue/inMemoryQueue.ts +43 -0
- package/.src/queue/index.ts +5 -0
- package/.src/queue/monitoredQueue.ts +168 -0
- package/.src/queue/persistentQueue.ts +84 -0
- package/.src/queue/queue.ts +15 -0
- package/.src/retry/arbitraryPolicy.ts +21 -0
- package/.src/retry/backoffPolicy.ts +84 -0
- package/.src/retry/index.ts +5 -0
- package/.src/retry/maxAttemptsPolicy.ts +28 -0
- package/.src/retry/neverPolicy.ts +11 -0
- package/.src/retry/policy.ts +5 -0
- package/.src/schema/attributeSchema.ts +6 -0
- package/.src/schema/contentFetcherSchemas.ts +23 -0
- package/.src/schema/contentSchemas.ts +44 -0
- package/.src/schema/contextSchemas.ts +5 -0
- package/.src/schema/ecommerceSchemas.ts +179 -0
- package/.src/schema/evaluatorSchemas.ts +11 -0
- package/.src/schema/eventSchemas.ts +150 -0
- package/.src/schema/index.ts +11 -0
- package/.src/schema/loggerSchema.ts +12 -0
- package/.src/schema/operationSchemas.ts +102 -0
- package/.src/schema/sdkFacadeSchemas.ts +44 -0
- package/.src/schema/sdkSchemas.ts +49 -0
- package/.src/schema/tokenSchema.ts +42 -0
- package/.src/schema/userSchema.ts +184 -0
- package/.src/sdk.ts +174 -0
- package/.src/sdkEvents.ts +15 -0
- package/.src/sourceLocation.ts +85 -0
- package/.src/tab.ts +148 -0
- package/.src/token/cachedTokenStore.ts +34 -0
- package/.src/token/inMemoryTokenStore.ts +13 -0
- package/.src/token/index.ts +4 -0
- package/.src/token/replicatedTokenStore.ts +21 -0
- package/.src/token/token.ts +164 -0
- package/.src/tracker.ts +460 -0
- package/.src/trackingEvents.ts +456 -0
- package/.src/transformer.ts +7 -0
- package/.src/utilityTypes.ts +3 -0
- package/.src/uuid.ts +43 -0
- package/.src/validation/arrayType.ts +71 -0
- package/.src/validation/booleanType.ts +22 -0
- package/.src/validation/functionType.ts +22 -0
- package/.src/validation/index.ts +12 -0
- package/.src/validation/jsonType.ts +157 -0
- package/.src/validation/mixedSchema.ts +7 -0
- package/.src/validation/nullType.ts +22 -0
- package/.src/validation/numberType.ts +59 -0
- package/.src/validation/objectType.ts +138 -0
- package/.src/validation/schema.ts +21 -0
- package/.src/validation/stringType.ts +118 -0
- package/.src/validation/unionType.ts +53 -0
- package/.src/validation/violation.ts +23 -0
- package/activeRecord.js +1 -0
- package/base64Url.js +1 -0
- package/cache/cache.js +1 -0
- package/cache/fallbackCache.js +1 -0
- package/cache/inMemoryCache.js +1 -0
- package/cache/index.js +1 -0
- package/cache/localStorageCache.js +1 -0
- package/channel/beaconSocketChannel.js +1 -0
- package/channel/channel.js +1 -0
- package/channel/encodedChannel.js +1 -0
- package/channel/guaranteedChannel.js +1 -0
- package/channel/index.js +1 -0
- package/channel/queuedChannel.js +1 -0
- package/channel/retryChannel.js +1 -0
- package/channel/sandboxChannel.js +1 -0
- package/channel/socketChannel.js +1 -0
- package/cid/assigner.js +1 -0
- package/cid/cachedAssigner.js +1 -0
- package/cid/fixedAssigner.js +1 -0
- package/cid/index.js +1 -0
- package/cid/remoteAssigner.js +1 -0
- package/constants.d.ts +5 -5
- package/constants.js +2 -1
- package/container.js +1 -0
- package/contentFetcher.js +1 -0
- package/context.js +1 -0
- package/error.js +1 -0
- package/evaluator.js +1 -0
- package/eventManager.js +1 -0
- package/facade/contentFetcherFacade.js +1 -0
- package/facade/evaluatorFacade.js +1 -0
- package/facade/index.js +1 -0
- package/facade/sdkFacade.js +1 -0
- package/facade/sessionFacade.js +1 -0
- package/facade/sessionPatch.js +1 -0
- package/facade/trackerFacade.js +1 -0
- package/facade/userFacade.js +1 -0
- package/facade/userPatch.js +1 -0
- package/index.js +1 -0
- package/logging/consoleLogger.js +1 -0
- package/logging/index.js +1 -0
- package/logging/logger.js +1 -0
- package/logging/namespacedLogger.js +1 -0
- package/logging/nullLogger.js +1 -0
- package/namespacedStorage.js +1 -0
- package/package.json +1 -1
- package/patch.js +1 -0
- package/queue/capacityRestrictedQueue.js +1 -0
- package/queue/inMemoryQueue.js +1 -0
- package/queue/index.js +1 -0
- package/queue/monitoredQueue.js +1 -0
- package/queue/persistentQueue.js +1 -0
- package/queue/queue.js +1 -0
- package/retry/arbitraryPolicy.js +1 -0
- package/retry/backoffPolicy.js +1 -0
- package/retry/index.js +1 -0
- package/retry/maxAttemptsPolicy.js +1 -0
- package/retry/neverPolicy.js +1 -0
- package/retry/policy.js +1 -0
- package/schema/attributeSchema.js +1 -0
- package/schema/contentFetcherSchemas.js +1 -0
- package/schema/contentSchemas.js +1 -0
- package/schema/contextSchemas.js +1 -0
- package/schema/ecommerceSchemas.js +1 -0
- package/schema/evaluatorSchemas.js +1 -0
- package/schema/eventSchemas.js +1 -0
- package/schema/index.js +1 -0
- package/schema/loggerSchema.js +1 -0
- package/schema/operationSchemas.js +1 -0
- package/schema/sdkFacadeSchemas.js +1 -0
- package/schema/sdkSchemas.js +1 -0
- package/schema/tokenSchema.js +1 -0
- package/schema/userSchema.js +1 -0
- package/sdk.js +1 -0
- package/sdkEvents.js +1 -0
- package/sourceLocation.js +1 -0
- package/tab.js +1 -0
- package/token/cachedTokenStore.js +1 -0
- package/token/inMemoryTokenStore.js +1 -0
- package/token/index.js +1 -0
- package/token/replicatedTokenStore.js +1 -0
- package/token/token.js +1 -0
- package/tracker.js +1 -0
- package/trackingEvents.js +1 -0
- package/transformer.js +1 -0
- package/utilityTypes.js +1 -0
- package/uuid.js +1 -0
- package/validation/arrayType.js +1 -0
- package/validation/booleanType.js +1 -0
- package/validation/functionType.js +1 -0
- package/validation/index.js +1 -0
- package/validation/jsonType.js +1 -0
- package/validation/mixedSchema.js +1 -0
- package/validation/nullType.js +1 -0
- package/validation/numberType.js +1 -0
- package/validation/objectType.js +1 -0
- package/validation/schema.js +1 -0
- package/validation/stringType.js +1 -0
- package/validation/unionType.js +1 -0
- package/validation/violation.js +1 -0
package/channel/retryChannel.js
CHANGED
package/channel/socketChannel.js
CHANGED
package/cid/assigner.js
CHANGED
package/cid/cachedAssigner.js
CHANGED
package/cid/fixedAssigner.js
CHANGED
package/cid/index.js
CHANGED
|
@@ -9,3 +9,4 @@ var fixedAssigner_1 = require("./fixedAssigner");
|
|
|
9
9
|
Object.defineProperty(exports, "FixedAssigner", { enumerable: true, get: function () { return fixedAssigner_1.FixedAssigner; } });
|
|
10
10
|
var remoteAssigner_1 = require("./remoteAssigner");
|
|
11
11
|
Object.defineProperty(exports, "RemoteAssigner", { enumerable: true, get: function () { return remoteAssigner_1.RemoteAssigner; } });
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
package/cid/remoteAssigner.js
CHANGED
package/constants.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const CID_ASSIGNER_ENDPOINT_URL = "
|
|
2
|
-
export declare const TRACKER_ENDPOINT_URL = "
|
|
3
|
-
export declare const EVALUATION_ENDPOINT_URL = "
|
|
4
|
-
export declare const CONTENT_ENDPOINT_URL = "
|
|
1
|
+
export declare const CID_ASSIGNER_ENDPOINT_URL = "https://api.croct.io/client/web/bootstrap";
|
|
2
|
+
export declare const TRACKER_ENDPOINT_URL = "wss://api.croct.io/client/web/connect";
|
|
3
|
+
export declare const EVALUATION_ENDPOINT_URL = "https://api.croct.io";
|
|
4
|
+
export declare const CONTENT_ENDPOINT_URL = "https://api.croct.io";
|
|
5
5
|
export declare const MAX_QUERY_LENGTH: number;
|
|
6
|
-
export declare const VERSION = "
|
|
6
|
+
export declare const VERSION = "0.11.0-alpha.1";
|
package/constants.js
CHANGED
|
@@ -6,4 +6,5 @@ exports.TRACKER_ENDPOINT_URL = 'wss://api.croct.io/client/web/connect';
|
|
|
6
6
|
exports.EVALUATION_ENDPOINT_URL = 'https://api.croct.io';
|
|
7
7
|
exports.CONTENT_ENDPOINT_URL = 'https://api.croct.io';
|
|
8
8
|
exports.MAX_QUERY_LENGTH = 500;
|
|
9
|
-
exports.VERSION = '0.11.0-alpha';
|
|
9
|
+
exports.VERSION = '0.11.0-alpha.1';
|
|
10
|
+
//# sourceMappingURL=constants.js.map
|
package/container.js
CHANGED
package/contentFetcher.js
CHANGED
package/context.js
CHANGED
package/error.js
CHANGED
package/evaluator.js
CHANGED
package/eventManager.js
CHANGED
package/facade/index.js
CHANGED
|
@@ -17,3 +17,4 @@ var userFacade_1 = require("./userFacade");
|
|
|
17
17
|
Object.defineProperty(exports, "UserFacade", { enumerable: true, get: function () { return userFacade_1.UserFacade; } });
|
|
18
18
|
var userPatch_1 = require("./userPatch");
|
|
19
19
|
Object.defineProperty(exports, "UserPatch", { enumerable: true, get: function () { return userPatch_1.UserPatch; } });
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
package/facade/sdkFacade.js
CHANGED
package/facade/sessionFacade.js
CHANGED
package/facade/sessionPatch.js
CHANGED
package/facade/trackerFacade.js
CHANGED
package/facade/userFacade.js
CHANGED
package/facade/userPatch.js
CHANGED
package/index.js
CHANGED
|
@@ -5,3 +5,4 @@ const constants_1 = require("./constants");
|
|
|
5
5
|
Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return constants_1.VERSION; } });
|
|
6
6
|
const sdk_1 = require("./sdk");
|
|
7
7
|
Object.defineProperty(exports, "Sdk", { enumerable: true, get: function () { return sdk_1.Sdk; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
package/logging/consoleLogger.js
CHANGED
package/logging/index.js
CHANGED
|
@@ -9,3 +9,4 @@ var namespacedLogger_1 = require("./namespacedLogger");
|
|
|
9
9
|
Object.defineProperty(exports, "NamespacedLogger", { enumerable: true, get: function () { return namespacedLogger_1.NamespacedLogger; } });
|
|
10
10
|
var nullLogger_1 = require("./nullLogger");
|
|
11
11
|
Object.defineProperty(exports, "NullLogger", { enumerable: true, get: function () { return nullLogger_1.NullLogger; } });
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
package/logging/logger.js
CHANGED
package/logging/nullLogger.js
CHANGED
package/namespacedStorage.js
CHANGED
package/package.json
CHANGED
package/patch.js
CHANGED
package/queue/inMemoryQueue.js
CHANGED
package/queue/index.js
CHANGED
|
@@ -11,3 +11,4 @@ var monitoredQueue_1 = require("./monitoredQueue");
|
|
|
11
11
|
Object.defineProperty(exports, "MonitoredQueue", { enumerable: true, get: function () { return monitoredQueue_1.MonitoredQueue; } });
|
|
12
12
|
var persistentQueue_1 = require("./persistentQueue");
|
|
13
13
|
Object.defineProperty(exports, "PersistentQueue", { enumerable: true, get: function () { return persistentQueue_1.PersistentQueue; } });
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
package/queue/monitoredQueue.js
CHANGED
package/queue/persistentQueue.js
CHANGED
package/queue/queue.js
CHANGED
package/retry/arbitraryPolicy.js
CHANGED
package/retry/backoffPolicy.js
CHANGED
package/retry/index.js
CHANGED
|
@@ -11,3 +11,4 @@ var maxAttemptsPolicy_1 = require("./maxAttemptsPolicy");
|
|
|
11
11
|
Object.defineProperty(exports, "MaxAttemptsPolicy", { enumerable: true, get: function () { return maxAttemptsPolicy_1.MaxAttemptsPolicy; } });
|
|
12
12
|
var neverPolicy_1 = require("./neverPolicy");
|
|
13
13
|
Object.defineProperty(exports, "NeverPolicy", { enumerable: true, get: function () { return neverPolicy_1.NeverPolicy; } });
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
package/retry/neverPolicy.js
CHANGED
package/retry/policy.js
CHANGED
package/schema/contentSchemas.js
CHANGED
package/schema/contextSchemas.js
CHANGED
package/schema/eventSchemas.js
CHANGED
package/schema/index.js
CHANGED
|
@@ -12,3 +12,4 @@ tslib_1.__exportStar(require("./sdkFacadeSchemas"), exports);
|
|
|
12
12
|
tslib_1.__exportStar(require("./sdkSchemas"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./tokenSchema"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./userSchema"), exports);
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
package/schema/loggerSchema.js
CHANGED
package/schema/sdkSchemas.js
CHANGED
package/schema/tokenSchema.js
CHANGED
package/schema/userSchema.js
CHANGED
package/sdk.js
CHANGED
package/sdkEvents.js
CHANGED
package/sourceLocation.js
CHANGED
package/tab.js
CHANGED
package/token/index.js
CHANGED
|
@@ -9,3 +9,4 @@ var inMemoryTokenStore_1 = require("./inMemoryTokenStore");
|
|
|
9
9
|
Object.defineProperty(exports, "InMemoryTokenStore", { enumerable: true, get: function () { return inMemoryTokenStore_1.InMemoryTokenStore; } });
|
|
10
10
|
var replicatedTokenStore_1 = require("./replicatedTokenStore");
|
|
11
11
|
Object.defineProperty(exports, "ReplicatedTokenStore", { enumerable: true, get: function () { return replicatedTokenStore_1.ReplicatedTokenStore; } });
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
package/token/token.js
CHANGED
package/tracker.js
CHANGED
package/trackingEvents.js
CHANGED
package/transformer.js
CHANGED
package/utilityTypes.js
CHANGED
package/uuid.js
CHANGED
package/validation/arrayType.js
CHANGED
package/validation/index.js
CHANGED
|
@@ -27,3 +27,4 @@ var stringType_1 = require("./stringType");
|
|
|
27
27
|
Object.defineProperty(exports, "StringType", { enumerable: true, get: function () { return stringType_1.StringType; } });
|
|
28
28
|
var unionType_1 = require("./unionType");
|
|
29
29
|
Object.defineProperty(exports, "UnionType", { enumerable: true, get: function () { return unionType_1.UnionType; } });
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
package/validation/jsonType.js
CHANGED
package/validation/nullType.js
CHANGED
package/validation/numberType.js
CHANGED
package/validation/objectType.js
CHANGED
package/validation/schema.js
CHANGED
package/validation/stringType.js
CHANGED
package/validation/unionType.js
CHANGED
package/validation/violation.js
CHANGED