Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@devcycle/nodejs-server-sdk

Package Overview
Dependencies
Maintainers
6
Versions
192
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devcycle/nodejs-server-sdk - npm Package Compare versions

Comparing version 1.5.4 to 1.5.5

src/utils/userError.d.ts

8

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc