@devcycle/nodejs-server-sdk
Advanced tools
Comparing version 1.5.4 to 1.5.5
{ | ||
"name": "@devcycle/nodejs-server-sdk", | ||
"version": "1.5.4", | ||
"version": "1.5.5", | ||
"description": "The DevCycle NodeJS Server SDK used for feature management.", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@devcycle/bucketing-test-data": "^1.0.44", | ||
"@devcycle/bucketing-test-data": "^1.0.45", | ||
"assemblyscript-json": "*", | ||
@@ -12,4 +12,4 @@ "assemblyscript-regex": "*" | ||
"dependencies": { | ||
"@devcycle/bucketing-assembly-script": "^1.1.26", | ||
"@devcycle/types": "1.0.56", | ||
"@devcycle/bucketing-assembly-script": "^1.1.27", | ||
"@devcycle/types": "1.0.57", | ||
"class-transformer": "0.5.1", | ||
@@ -16,0 +16,0 @@ "@nestjs/class-validator": "^0.13.4", |
@@ -42,2 +42,3 @@ "use strict"; | ||
const user_1 = require("./models/user"); | ||
const userError_1 = require("./utils/userError"); | ||
const castIncomingUser = (user) => { | ||
@@ -58,2 +59,5 @@ if (!(user instanceof user_1.DVCUser)) { | ||
const initializePromise = (0, bucketing_1.importBucketingLib)({ options, logger: this.logger }) | ||
.catch((bucketingErr) => { | ||
throw new userError_1.UserError(bucketingErr); | ||
}) | ||
.then(() => { | ||
@@ -83,2 +87,5 @@ this.configHelper = new environmentConfigManager_1.EnvironmentConfigManager(this.logger, environmentKey, options || {}); | ||
this.logger.error(`Error initializing DevCycle: ${err}`); | ||
if (err instanceof userError_1.UserError) { | ||
throw err; | ||
} | ||
return this; | ||
@@ -85,0 +92,0 @@ }); |
@@ -6,2 +6,3 @@ "use strict"; | ||
const bucketing_1 = require("./bucketing"); | ||
const userError_1 = require("./utils/userError"); | ||
class EnvironmentConfigManager { | ||
@@ -95,3 +96,3 @@ constructor(logger, environmentKey, { configPollingIntervalMS = 10000, configPollingTimeoutMS = 5000, configCDNURI, cdnURI = 'https://config-cdn.devcycle.com' }) { | ||
this.stopPolling(); | ||
throw new Error(`Invalid SDK key provided: ${this.environmentKey}`); | ||
throw new userError_1.UserError(`Invalid SDK key provided: ${this.environmentKey}`); | ||
} | ||
@@ -98,0 +99,0 @@ else { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
98005
53
1487
+ Added@devcycle/types@1.0.57(transitive)
- Removed@devcycle/types@1.0.56(transitive)
Updated@devcycle/types@1.0.57