@gomomento/sdk-core
Advanced tools
Comparing version 1.98.1 to 1.99.0
@@ -120,3 +120,3 @@ "use strict"; | ||
options.restartedDueToError = true; | ||
const reconnectDelayMillis = 100; | ||
const reconnectDelayMillis = 500; | ||
this.logger.trace('Error occurred on subscription, possibly a network interruption. Will attempt to restart stream in %s ms.', reconnectDelayMillis); | ||
@@ -149,2 +149,2 @@ (0, utils_1.sleep)(reconnectDelayMillis) | ||
exports.AbstractPubsubClient = AbstractPubsubClient; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQWJzdHJhY3RQdWJzdWJDbGllbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvaW50ZXJuYWwvY2xpZW50cy9wdWJzdWIvQWJzdHJhY3RQdWJzdWJDbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsdUNBS3FCO0FBQ3JCLDRDQUFpRDtBQUNqRCwwQ0FTd0I7QUFDeEIsaUVBQTJEO0FBMkMzRCxNQUFzQixvQkFBb0I7SUFPeEMsWUFDRSxhQUFtQyxFQUNuQyxNQUFxQixFQUNyQix1QkFBNkQ7UUFFN0QsSUFBSSxDQUFDLGFBQWEsR0FBRyxhQUFhLENBQUM7UUFDbkMsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7UUFDckIsSUFBSSxDQUFDLHVCQUF1QixHQUFHLHVCQUF1QixDQUFDO0lBQ3pELENBQUM7SUFFUyxTQUFTO1FBQ2pCLE9BQU8sSUFBSSxDQUFDLE1BQU0sQ0FBQztJQUNyQixDQUFDO0lBRVMsMEJBQTBCO1FBQ2xDLE9BQU8sSUFBSSxDQUFDLHVCQUF1QixDQUFDO0lBQ3RDLENBQUM7SUFFTSxLQUFLLENBQUMsT0FBTyxDQUNsQixTQUFpQixFQUNqQixTQUFpQixFQUNqQixLQUEwQjtRQUUxQixJQUFJO1lB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amVjdCB0byB0aGUgdXNlci5cbiAgICAgICAgICB0aGlzLnNlbmRTdWJzY3JpYmUob3B0aW9ucylcbiAgICAgICAgICAgIC50aGVuKCgpID0+IHtcbiAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIC5jYXRjaChlID0+IHtcbiAgICAgICAgICAgICAgdGhpcy5sb2dnZXIudHJhY2UoXG4gICAgICAgICAgICAgICAgJ0Vycm9yIHdoZW4gY2FsbGluZyBzZW5kU3Vic2NyaWJlIHRvIHJlY29ubmVjdDogJXMnLFxuICAgICAgICAgICAgICAgIGVcbiAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9KVxuICAgICAgICAuY2F0Y2goZSA9PiB7XG4gICAgICAgICAgdGhpcy5sb2dnZXIudHJhY2UoXG4gICAgICAgICAgICAnRXJyb3Igd2hlbiBzbGVlcGluZyBwcmlvciB0byBzZW5kU3Vic2NyaWJlIHRvIHJlY29ubmVjdDogJXMnLFxuICAgICAgICAgICAgZVxuICAgICAgICAgICk7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9KTtcbiAgICAgIHJldHVybjtcbiAgICB9XG5cbiAgICB0aGlzLmxvZ2dlci50cmFjZSgnU3Vic2NyaWJlIGVycm9yIHdhcyBub3QgYSByZS1jb25uZWN0YWJsZSBlcnJvci4nKTtcblxuICAgIHRoaXMubG9nZ2VyLnRyYWNlKFxuICAgICAgJ1N1YnNjcmliZSBlcnJvciB3YXMgbm90IG9uZSBvZiB0aGUga25vd24gZXJyb3IgdHlwZXM7IGNhbGxpbmcgZXJyb3IgaGFuZGxlci4nXG4gICAgKTtcbiAgICBvcHRpb25zLm9uRXJyb3IobW9tZW50b0Vycm9yLCBvcHRpb25zLnN1YnNjcmlwdGlvbik7XG4gIH1cbn1cbiJdfQ== | ||
//# sourceMappingURL=data:application/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Vic2NyaWJlIHRvIHJlY29ubmVjdDogJXMnLFxuICAgICAgICAgICAgICAgIGVcbiAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9KVxuICAgICAgICAuY2F0Y2goZSA9PiB7XG4gICAgICAgICAgdGhpcy5sb2dnZXIudHJhY2UoXG4gICAgICAgICAgICAnRXJyb3Igd2hlbiBzbGVlcGluZyBwcmlvciB0byBzZW5kU3Vic2NyaWJlIHRvIHJlY29ubmVjdDogJXMnLFxuICAgICAgICAgICAgZVxuICAgICAgICAgICk7XG4gICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9KTtcbiAgICAgIHJldHVybjtcbiAgICB9XG5cbiAgICB0aGlzLmxvZ2dlci50cmFjZSgnU3Vic2NyaWJlIGVycm9yIHdhcyBub3QgYSByZS1jb25uZWN0YWJsZSBlcnJvci4nKTtcblxuICAgIHRoaXMubG9nZ2VyLnRyYWNlKFxuICAgICAgJ1N1YnNjcmliZSBlcnJvciB3YXMgbm90IG9uZSBvZiB0aGUga25vd24gZXJyb3IgdHlwZXM7IGNhbGxpbmcgZXJyb3IgaGFuZGxlci4nXG4gICAgKTtcbiAgICBvcHRpb25zLm9uRXJyb3IobW9tZW50b0Vycm9yLCBvcHRpb25zLnN1YnNjcmlwdGlvbik7XG4gIH1cbn1cbiJdfQ== |
{ | ||
"name": "@gomomento/sdk-core", | ||
"version": "1.98.1", | ||
"version": "1.99.0", | ||
"description": "Common code for Momento JS SDKs", | ||
@@ -20,2 +20,3 @@ "main": "dist/src/index.js", | ||
"integration-test": "jest integration --passWithNoTests", | ||
"integration-test-consistent-reads": "jest integration --passWithNoTests", | ||
"lint": "eslint . --ext .ts", | ||
@@ -22,0 +23,0 @@ "format": "eslint . --ext .ts --fix", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1565950