@gomomento/sdk-core 1.68.2 → 1.70.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 (25) hide show
  1. package/dist/src/clients/ICacheClient.d.ts +16 -1
  2. package/dist/src/clients/ICacheClient.js +1 -1
  3. package/dist/src/clients/IMomentoCache.d.ts +13 -1
  4. package/dist/src/clients/IMomentoCache.js +1 -1
  5. package/dist/src/index.d.ts +8 -2
  6. package/dist/src/index.js +16 -4
  7. package/dist/src/internal/clients/cache/AbstractCacheClient.d.ts +101 -3
  8. package/dist/src/internal/clients/cache/AbstractCacheClient.js +119 -3
  9. package/dist/src/internal/clients/cache/IDataClient.d.ts +7 -1
  10. package/dist/src/internal/clients/cache/IDataClient.js +1 -1
  11. package/dist/src/internal/clients/cache/momento-cache.d.ts +13 -1
  12. package/dist/src/internal/clients/cache/momento-cache.js +19 -1
  13. package/dist/src/messages/responses/cache-set-if-absent-or-equal.d.ts +74 -0
  14. package/dist/src/messages/responses/cache-set-if-absent-or-equal.js +63 -0
  15. package/dist/src/messages/responses/cache-set-if-absent.d.ts +83 -0
  16. package/dist/src/messages/responses/cache-set-if-absent.js +63 -0
  17. package/dist/src/messages/responses/cache-set-if-equal.d.ts +74 -0
  18. package/dist/src/messages/responses/cache-set-if-equal.js +63 -0
  19. package/dist/src/messages/responses/cache-set-if-not-equal.d.ts +74 -0
  20. package/dist/src/messages/responses/cache-set-if-not-equal.js +63 -0
  21. package/dist/src/messages/responses/cache-set-if-present-and-not-equal.d.ts +74 -0
  22. package/dist/src/messages/responses/cache-set-if-present-and-not-equal.js +63 -0
  23. package/dist/src/messages/responses/cache-set-if-present.d.ts +74 -0
  24. package/dist/src/messages/responses/cache-set-if-present.js +63 -0
  25. package/package.json +1 -1
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Error = exports.NotStored = exports.Stored = exports.Response = void 0;
4
+ const response_base_1 = require("./response-base");
5
+ /**
6
+ * Parent response type for a cache setIfEqual request. The
7
+ * response object is resolved to a type-safe object of one of
8
+ * the following subtypes:
9
+ *
10
+ * - {Stored}
11
+ * - {NotStored}
12
+ * - {Error}
13
+ *
14
+ * `instanceof` type guards can be used to operate on the appropriate subtype.
15
+ * @example
16
+ * For example:
17
+ * ```
18
+ * if (response instanceof CacheSetIfEqual.Error) {
19
+ * // Handle error as appropriate. The compiler will smart-cast `response` to type
20
+ * // `CacheSetIfEqual.Error` in this block, so you will have access to the properties
21
+ * // of the Error class; e.g. `response.errorCode()`.
22
+ * }
23
+ * ```
24
+ */
25
+ class Response extends response_base_1.ResponseBase {
26
+ }
27
+ exports.Response = Response;
28
+ class _Stored extends Response {
29
+ }
30
+ /**
31
+ * Indicates the key did not exist and the value was set.
32
+ */
33
+ class Stored extends (0, response_base_1.ResponseSuccess)(_Stored) {
34
+ }
35
+ exports.Stored = Stored;
36
+ class _NotStored extends Response {
37
+ }
38
+ /**
39
+ * Indicates the key existed and no value was set.
40
+ */
41
+ class NotStored extends (0, response_base_1.ResponseSuccess)(_NotStored) {
42
+ }
43
+ exports.NotStored = NotStored;
44
+ class _Error extends Response {
45
+ constructor(_innerException) {
46
+ super();
47
+ this._innerException = _innerException;
48
+ }
49
+ }
50
+ /**
51
+ * Indicates that an error occurred during the cache setIfEqual request.
52
+ *
53
+ * This response object includes the following fields that you can use to determine
54
+ * how you would like to handle the error:
55
+ *
56
+ * - `errorCode()` - a unique Momento error code indicating the type of error that occurred.
57
+ * - `message()` - a human-readable description of the error
58
+ * - `innerException()` - the original error that caused the failure; can be re-thrown.
59
+ */
60
+ class Error extends (0, response_base_1.ResponseError)(_Error) {
61
+ }
62
+ exports.Error = Error;
63
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FjaGUtc2V0LWlmLWVxdWFsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4v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@@
1
+ import { SdkError } from '../../errors';
2
+ import { ResponseBase } from './response-base';
3
+ /**
4
+ * Parent response type for a cache setIfNotEqual request. The
5
+ * response object is resolved to a type-safe object of one of
6
+ * the following subtypes:
7
+ *
8
+ * - {Stored}
9
+ * - {NotStored}
10
+ * - {Error}
11
+ *
12
+ * `instanceof` type guards can be used to operate on the appropriate subtype.
13
+ * @example
14
+ * For example:
15
+ * ```
16
+ * if (response instanceof CacheSetIfNotEqual.Error) {
17
+ * // Handle error as appropriate. The compiler will smart-cast `response` to type
18
+ * // `CacheSetIfNotEqual.Error` in this block, so you will have access to the properties
19
+ * // of the Error class; e.g. `response.errorCode()`.
20
+ * }
21
+ * ```
22
+ */
23
+ export declare abstract class Response extends ResponseBase {
24
+ }
25
+ declare class _Stored extends Response {
26
+ }
27
+ declare const Stored_base: {
28
+ new (...args: any[]): {
29
+ readonly is_success: boolean;
30
+ };
31
+ } & typeof _Stored;
32
+ /**
33
+ * Indicates the key did not exist and the value was set.
34
+ */
35
+ export declare class Stored extends Stored_base {
36
+ }
37
+ declare class _NotStored extends Response {
38
+ }
39
+ declare const NotStored_base: {
40
+ new (...args: any[]): {
41
+ readonly is_success: boolean;
42
+ };
43
+ } & typeof _NotStored;
44
+ /**
45
+ * Indicates the key existed and no value was set.
46
+ */
47
+ export declare class NotStored extends NotStored_base {
48
+ }
49
+ declare class _Error extends Response {
50
+ protected _innerException: SdkError;
51
+ constructor(_innerException: SdkError);
52
+ }
53
+ declare const Error_base: {
54
+ new (...args: any[]): {
55
+ _innerException: SdkError;
56
+ message(): string;
57
+ innerException(): SdkError;
58
+ errorCode(): import("../../errors").MomentoErrorCode;
59
+ toString(): string;
60
+ };
61
+ } & typeof _Error;
62
+ /**
63
+ * Indicates that an error occurred during the cache setIfNotEqual request.
64
+ *
65
+ * This response object includes the following fields that you can use to determine
66
+ * how you would like to handle the error:
67
+ *
68
+ * - `errorCode()` - a unique Momento error code indicating the type of error that occurred.
69
+ * - `message()` - a human-readable description of the error
70
+ * - `innerException()` - the original error that caused the failure; can be re-thrown.
71
+ */
72
+ export declare class Error extends Error_base {
73
+ }
74
+ export {};
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Error = exports.NotStored = exports.Stored = exports.Response = void 0;
4
+ const response_base_1 = require("./response-base");
5
+ /**
6
+ * Parent response type for a cache setIfNotEqual request. The
7
+ * response object is resolved to a type-safe object of one of
8
+ * the following subtypes:
9
+ *
10
+ * - {Stored}
11
+ * - {NotStored}
12
+ * - {Error}
13
+ *
14
+ * `instanceof` type guards can be used to operate on the appropriate subtype.
15
+ * @example
16
+ * For example:
17
+ * ```
18
+ * if (response instanceof CacheSetIfNotEqual.Error) {
19
+ * // Handle error as appropriate. The compiler will smart-cast `response` to type
20
+ * // `CacheSetIfNotEqual.Error` in this block, so you will have access to the properties
21
+ * // of the Error class; e.g. `response.errorCode()`.
22
+ * }
23
+ * ```
24
+ */
25
+ class Response extends response_base_1.ResponseBase {
26
+ }
27
+ exports.Response = Response;
28
+ class _Stored extends Response {
29
+ }
30
+ /**
31
+ * Indicates the key did not exist and the value was set.
32
+ */
33
+ class Stored extends (0, response_base_1.ResponseSuccess)(_Stored) {
34
+ }
35
+ exports.Stored = Stored;
36
+ class _NotStored extends Response {
37
+ }
38
+ /**
39
+ * Indicates the key existed and no value was set.
40
+ */
41
+ class NotStored extends (0, response_base_1.ResponseSuccess)(_NotStored) {
42
+ }
43
+ exports.NotStored = NotStored;
44
+ class _Error extends Response {
45
+ constructor(_innerException) {
46
+ super();
47
+ this._innerException = _innerException;
48
+ }
49
+ }
50
+ /**
51
+ * Indicates that an error occurred during the cache setIfNotEqual request.
52
+ *
53
+ * This response object includes the following fields that you can use to determine
54
+ * how you would like to handle the error:
55
+ *
56
+ * - `errorCode()` - a unique Momento error code indicating the type of error that occurred.
57
+ * - `message()` - a human-readable description of the error
58
+ * - `innerException()` - the original error that caused the failure; can be re-thrown.
59
+ */
60
+ class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ZiB0aGUgZXJyb3JcbiAqIC0gYGlubmVyRXhjZXB0aW9uKClgIC0gdGhlIG9yaWdpbmFsIGVycm9yIHRoYXQgY2F1c2VkIHRoZSBmYWlsdXJlOyBjYW4gYmUgcmUtdGhyb3duLlxuICovXG5leHBvcnQgY2xhc3MgRXJyb3IgZXh0ZW5kcyBSZXNwb25zZUVycm9yKF9FcnJvcikge31cbiJdfQ==
@@ -0,0 +1,74 @@
1
+ import { SdkError } from '../../errors';
2
+ import { ResponseBase } from './response-base';
3
+ /**
4
+ * Parent response type for a cache setIfPresentAndNotEqual request. The
5
+ * response object is resolved to a type-safe object of one of
6
+ * the following subtypes:
7
+ *
8
+ * - {Stored}
9
+ * - {NotStored}
10
+ * - {Error}
11
+ *
12
+ * `instanceof` type guards can be used to operate on the appropriate subtype.
13
+ * @example
14
+ * For example:
15
+ * ```
16
+ * if (response instanceof CacheSetIfPresentAndNotEqual.Error) {
17
+ * // Handle error as appropriate. The compiler will smart-cast `response` to type
18
+ * // `CacheSetIfPresentAndNotEqual.Error` in this block, so you will have access to the properties
19
+ * // of the Error class; e.g. `response.errorCode()`.
20
+ * }
21
+ * ```
22
+ */
23
+ export declare abstract class Response extends ResponseBase {
24
+ }
25
+ declare class _Stored extends Response {
26
+ }
27
+ declare const Stored_base: {
28
+ new (...args: any[]): {
29
+ readonly is_success: boolean;
30
+ };
31
+ } & typeof _Stored;
32
+ /**
33
+ * Indicates the key did not exist and the value was set.
34
+ */
35
+ export declare class Stored extends Stored_base {
36
+ }
37
+ declare class _NotStored extends Response {
38
+ }
39
+ declare const NotStored_base: {
40
+ new (...args: any[]): {
41
+ readonly is_success: boolean;
42
+ };
43
+ } & typeof _NotStored;
44
+ /**
45
+ * Indicates the key existed and no value was set.
46
+ */
47
+ export declare class NotStored extends NotStored_base {
48
+ }
49
+ declare class _Error extends Response {
50
+ protected _innerException: SdkError;
51
+ constructor(_innerException: SdkError);
52
+ }
53
+ declare const Error_base: {
54
+ new (...args: any[]): {
55
+ _innerException: SdkError;
56
+ message(): string;
57
+ innerException(): SdkError;
58
+ errorCode(): import("../../errors").MomentoErrorCode;
59
+ toString(): string;
60
+ };
61
+ } & typeof _Error;
62
+ /**
63
+ * Indicates that an error occurred during the cache setIfPresentAndNotEqual request.
64
+ *
65
+ * This response object includes the following fields that you can use to determine
66
+ * how you would like to handle the error:
67
+ *
68
+ * - `errorCode()` - a unique Momento error code indicating the type of error that occurred.
69
+ * - `message()` - a human-readable description of the error
70
+ * - `innerException()` - the original error that caused the failure; can be re-thrown.
71
+ */
72
+ export declare class Error extends Error_base {
73
+ }
74
+ export {};
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Error = exports.NotStored = exports.Stored = exports.Response = void 0;
4
+ const response_base_1 = require("./response-base");
5
+ /**
6
+ * Parent response type for a cache setIfPresentAndNotEqual request. The
7
+ * response object is resolved to a type-safe object of one of
8
+ * the following subtypes:
9
+ *
10
+ * - {Stored}
11
+ * - {NotStored}
12
+ * - {Error}
13
+ *
14
+ * `instanceof` type guards can be used to operate on the appropriate subtype.
15
+ * @example
16
+ * For example:
17
+ * ```
18
+ * if (response instanceof CacheSetIfPresentAndNotEqual.Error) {
19
+ * // Handle error as appropriate. The compiler will smart-cast `response` to type
20
+ * // `CacheSetIfPresentAndNotEqual.Error` in this block, so you will have access to the properties
21
+ * // of the Error class; e.g. `response.errorCode()`.
22
+ * }
23
+ * ```
24
+ */
25
+ class Response extends response_base_1.ResponseBase {
26
+ }
27
+ exports.Response = Response;
28
+ class _Stored extends Response {
29
+ }
30
+ /**
31
+ * Indicates the key did not exist and the value was set.
32
+ */
33
+ class Stored extends (0, response_base_1.ResponseSuccess)(_Stored) {
34
+ }
35
+ exports.Stored = Stored;
36
+ class _NotStored extends Response {
37
+ }
38
+ /**
39
+ * Indicates the key existed and no value was set.
40
+ */
41
+ class NotStored extends (0, response_base_1.ResponseSuccess)(_NotStored) {
42
+ }
43
+ exports.NotStored = NotStored;
44
+ class _Error extends Response {
45
+ constructor(_innerException) {
46
+ super();
47
+ this._innerException = _innerException;
48
+ }
49
+ }
50
+ /**
51
+ * Indicates that an error occurred during the cache setIfPresentAndNotEqual request.
52
+ *
53
+ * This response object includes the following fields that you can use to determine
54
+ * how you would like to handle the error:
55
+ *
56
+ * - `errorCode()` - a unique Momento error code indicating the type of error that occurred.
57
+ * - `message()` - a human-readable description of the error
58
+ * - `innerException()` - the original error that caused the failure; can be re-thrown.
59
+ */
60
+ class Error extends (0, response_base_1.ResponseError)(_Error) {
61
+ }
62
+ exports.Error = Error;
63
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FjaGUtc2V0LWlmLXByZXNlbnQtYW5kLW5vdC1lcXVhbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9tZXNzYWdlcy9yZXNwb25zZXMvY2FjaGUtc2V0LWlmLXByZXNlbnQtYW5kLW5vdC1lcXVhbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSxtREFBNkU7QUFFN0U7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FtQkc7QUFDSCxNQUFzQixRQUFTLFNBQVEsNEJBQVk7Q0FBRztBQUF0RCw0QkFBc0Q7QUFFdEQsTUFBTSxPQUFRLFNBQVEsUUFBUTtDQUFHO0FBRWpDOztHQUVHO0FBQ0gsTUFBYSxNQUFPLFNBQVEsSUFBQSwrQkFBZSxFQUFDLE9BQU8sQ0FBQztDQUFHO0FBQXZELHdCQUF1RDtBQUV2RCxNQUFNLFVBQVcsU0FBUSxRQUFRO0NBQUc7QUFFcEM7O0dBRUc7QUFDSCxNQUFhLFNBQVUsU0FBUSxJQUFBLCtCQUFlLEVBQUMsVUFBVSxDQUFDO0NBQUc7QUFBN0QsOEJBQTZEO0FBRTdELE1BQU0sTUFBTyxTQUFRLFFBQVE7SUFDM0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uc2Ugb2JqZWN0IGluY2x1ZGVzIHRoZSBmb2xsb3dpbmcgZmllbGRzIHRoYXQgeW91IGNhbiB1c2UgdG8gZGV0ZXJtaW5lXG4gKiBob3cgeW91IHdvdWxkIGxpa2UgdG8gaGFuZGxlIHRoZSBlcnJvcjpcbiAqXG4gKiAtIGBlcnJvckNvZGUoKWAgLSBhIHVuaXF1ZSBNb21lbnRvIGVycm9yIGNvZGUgaW5kaWNhdGluZyB0aGUgdHlwZSBvZiBlcnJvciB0aGF0IG9jY3VycmVkLlxuICogLSBgbWVzc2FnZSgpYCAtIGEgaHVtYW4tcmVhZGFibGUgZGVzY3JpcHRpb24gb2YgdGhlIGVycm9yXG4gKiAtIGBpbm5lckV4Y2VwdGlvbigpYCAtIHRoZSBvcmlnaW5hbCBlcnJvciB0aGF0IGNhdXNlZCB0aGUgZmFpbHVyZTsgY2FuIGJlIHJlLXRocm93bi5cbiAqL1xuZXhwb3J0IGNsYXNzIEVycm9yIGV4dGVuZHMgUmVzcG9uc2VFcnJvcihfRXJyb3IpIHt9XG4iXX0=
@@ -0,0 +1,74 @@
1
+ import { SdkError } from '../../errors';
2
+ import { ResponseBase } from './response-base';
3
+ /**
4
+ * Parent response type for a cache setIfPresent request. The
5
+ * response object is resolved to a type-safe object of one of
6
+ * the following subtypes:
7
+ *
8
+ * - {Stored}
9
+ * - {NotStored}
10
+ * - {Error}
11
+ *
12
+ * `instanceof` type guards can be used to operate on the appropriate subtype.
13
+ * @example
14
+ * For example:
15
+ * ```
16
+ * if (response instanceof CacheSetIfPresent.Error) {
17
+ * // Handle error as appropriate. The compiler will smart-cast `response` to type
18
+ * // `CacheSetIfPresent.Error` in this block, so you will have access to the properties
19
+ * // of the Error class; e.g. `response.errorCode()`.
20
+ * }
21
+ * ```
22
+ */
23
+ export declare abstract class Response extends ResponseBase {
24
+ }
25
+ declare class _Stored extends Response {
26
+ }
27
+ declare const Stored_base: {
28
+ new (...args: any[]): {
29
+ readonly is_success: boolean;
30
+ };
31
+ } & typeof _Stored;
32
+ /**
33
+ * Indicates the key did not exist and the value was set.
34
+ */
35
+ export declare class Stored extends Stored_base {
36
+ }
37
+ declare class _NotStored extends Response {
38
+ }
39
+ declare const NotStored_base: {
40
+ new (...args: any[]): {
41
+ readonly is_success: boolean;
42
+ };
43
+ } & typeof _NotStored;
44
+ /**
45
+ * Indicates the key existed and no value was set.
46
+ */
47
+ export declare class NotStored extends NotStored_base {
48
+ }
49
+ declare class _Error extends Response {
50
+ protected _innerException: SdkError;
51
+ constructor(_innerException: SdkError);
52
+ }
53
+ declare const Error_base: {
54
+ new (...args: any[]): {
55
+ _innerException: SdkError;
56
+ message(): string;
57
+ innerException(): SdkError;
58
+ errorCode(): import("../../errors").MomentoErrorCode;
59
+ toString(): string;
60
+ };
61
+ } & typeof _Error;
62
+ /**
63
+ * Indicates that an error occurred during the cache setIfPresent request.
64
+ *
65
+ * This response object includes the following fields that you can use to determine
66
+ * how you would like to handle the error:
67
+ *
68
+ * - `errorCode()` - a unique Momento error code indicating the type of error that occurred.
69
+ * - `message()` - a human-readable description of the error
70
+ * - `innerException()` - the original error that caused the failure; can be re-thrown.
71
+ */
72
+ export declare class Error extends Error_base {
73
+ }
74
+ export {};
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Error = exports.NotStored = exports.Stored = exports.Response = void 0;
4
+ const response_base_1 = require("./response-base");
5
+ /**
6
+ * Parent response type for a cache setIfPresent request. The
7
+ * response object is resolved to a type-safe object of one of
8
+ * the following subtypes:
9
+ *
10
+ * - {Stored}
11
+ * - {NotStored}
12
+ * - {Error}
13
+ *
14
+ * `instanceof` type guards can be used to operate on the appropriate subtype.
15
+ * @example
16
+ * For example:
17
+ * ```
18
+ * if (response instanceof CacheSetIfPresent.Error) {
19
+ * // Handle error as appropriate. The compiler will smart-cast `response` to type
20
+ * // `CacheSetIfPresent.Error` in this block, so you will have access to the properties
21
+ * // of the Error class; e.g. `response.errorCode()`.
22
+ * }
23
+ * ```
24
+ */
25
+ class Response extends response_base_1.ResponseBase {
26
+ }
27
+ exports.Response = Response;
28
+ class _Stored extends Response {
29
+ }
30
+ /**
31
+ * Indicates the key did not exist and the value was set.
32
+ */
33
+ class Stored extends (0, response_base_1.ResponseSuccess)(_Stored) {
34
+ }
35
+ exports.Stored = Stored;
36
+ class _NotStored extends Response {
37
+ }
38
+ /**
39
+ * Indicates the key existed and no value was set.
40
+ */
41
+ class NotStored extends (0, response_base_1.ResponseSuccess)(_NotStored) {
42
+ }
43
+ exports.NotStored = NotStored;
44
+ class _Error extends Response {
45
+ constructor(_innerException) {
46
+ super();
47
+ this._innerException = _innerException;
48
+ }
49
+ }
50
+ /**
51
+ * Indicates that an error occurred during the cache setIfPresent request.
52
+ *
53
+ * This response object includes the following fields that you can use to determine
54
+ * how you would like to handle the error:
55
+ *
56
+ * - `errorCode()` - a unique Momento error code indicating the type of error that occurred.
57
+ * - `message()` - a human-readable description of the error
58
+ * - `innerException()` - the original error that caused the failure; can be re-thrown.
59
+ */
60
+ class Error extends (0, response_base_1.ResponseError)(_Error) {
61
+ }
62
+ exports.Error = Error;
63
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FjaGUtc2V0LWlmLXByZXNlbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvbWVzc2FnZXMvcmVzcG9uc2VzL2NhY2hlLXNldC1pZi1wcmVzZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLG1EQUE2RTtBQUU3RTs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQW1CRztBQUNILE1BQXNCLFFBQVMsU0FBUSw0QkFBWTtDQUFHO0FBQXRELDRCQUFzRDtBQUV0RCxNQUFNLE9BQVEsU0FBUSxRQUFRO0NBQUc7QUFFakM7O0dBRUc7QUFDSCxNQUFhLE1BQU8sU0FBUSxJ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aW9uOiBTZGtFcnJvcikge1xuICAgIHN1cGVyKCk7XG4gIH1cbn1cblxuLyoqXG4gKiBJbmRpY2F0ZXMgdGhhdCBhbiBlcnJvciBvY2N1cnJlZCBkdXJpbmcgdGhlIGNhY2hlIHNldElmUHJlc2VudCByZXF1ZXN0LlxuICpcbiAqIFRoaXMgcmVzcG9uc2Ugb2JqZWN0IGluY2x1ZGVzIHRoZSBmb2xsb3dpbmcgZmllbGRzIHRoYXQgeW91IGNhbiB1c2UgdG8gZGV0ZXJtaW5lXG4gKiBob3cgeW91IHdvdWxkIGxpa2UgdG8gaGFuZGxlIHRoZSBlcnJvcjpcbiAqXG4gKiAtIGBlcnJvckNvZGUoKWAgLSBhIHVuaXF1ZSBNb21lbnRvIGVycm9yIGNvZGUgaW5kaWNhdGluZyB0aGUgdHlwZSBvZiBlcnJvciB0aGF0IG9jY3VycmVkLlxuICogLSBgbWVzc2FnZSgpYCAtIGEgaHVtYW4tcmVhZGFibGUgZGVzY3JpcHRpb24gb2YgdGhlIGVycm9yXG4gKiAtIGBpbm5lckV4Y2VwdGlvbigpYCAtIHRoZSBvcmlnaW5hbCBlcnJvciB0aGF0IGNhdXNlZCB0aGUgZmFpbHVyZTsgY2FuIGJlIHJlLXRocm93bi5cbiAqL1xuZXhwb3J0IGNsYXNzIEVycm9yIGV4dGVuZHMgUmVzcG9uc2VFcnJvcihfRXJyb3IpIHt9XG4iXX0=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gomomento/sdk-core",
3
- "version": "1.68.2",
3
+ "version": "1.70.0",
4
4
  "description": "Common code for Momento JS SDKs",
5
5
  "main": "dist/src/index.js",
6
6
  "files": [