@devcycle/nodejs-server-sdk
Advanced tools
Comparing version 1.1.1 to 1.1.3
{ | ||
"name": "@devcycle/nodejs-server-sdk", | ||
"version": "1.1.1", | ||
"version": "1.1.3", | ||
"description": "The DevCycle NodeJS Server SDK used for feature management.", | ||
@@ -12,3 +12,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@devcycle/bucketing-assembly-script": "^1.0.11", | ||
"@devcycle/bucketing-assembly-script": "^1.0.12", | ||
"axios": "^0.24.0", | ||
@@ -26,3 +26,3 @@ "@devcycle/types": "1.0.14", | ||
"engines": { | ||
"node": ">=10.0.0" | ||
"node": ">=14.0.0" | ||
}, | ||
@@ -29,0 +29,0 @@ "main": "./src/index.js", |
@@ -25,2 +25,11 @@ "use strict"; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -68,3 +77,4 @@ exports.DVCClient = void 0; | ||
process.on('exit', () => { | ||
this.configHelper.cleanup(); | ||
var _a; | ||
(_a = this.configHelper) === null || _a === void 0 ? void 0 : _a.cleanup(); | ||
}); | ||
@@ -79,8 +89,10 @@ } | ||
onClientInitialized(onInitialized) { | ||
if (onInitialized && typeof onInitialized === 'function') { | ||
this.onInitialized | ||
.then(() => onInitialized()) | ||
.catch((err) => onInitialized(err)); | ||
} | ||
return this.onInitialized; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (onInitialized && typeof onInitialized === 'function') { | ||
this.onInitialized | ||
.then(() => onInitialized()) | ||
.catch((err) => onInitialized(err)); | ||
} | ||
return this.onInitialized; | ||
}); | ||
} | ||
@@ -139,3 +151,5 @@ variable(user, key, defaultValue) { | ||
flushEvents(callback) { | ||
return this.eventQueue.flushEvents().then(callback); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return this.eventQueue.flushEvents().then(callback); | ||
}); | ||
} | ||
@@ -142,0 +156,0 @@ } |
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
70038
1056