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

@openfeature/server-sdk

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openfeature/server-sdk - npm Package Compare versions

Comparing version 1.16.1 to 1.16.2

27

dist/cjs/index.js

@@ -370,3 +370,5 @@ "use strict";

if (evaluationDetails.errorCode) {
throw (0, import_core4.instantiateErrorByErrorCode)(evaluationDetails.errorCode);
const err = (0, import_core4.instantiateErrorByErrorCode)(evaluationDetails.errorCode);
yield this.errorHooks(allHooksReversed, hookContext, err, options);
return this.getErrorEvaluationDetails(flagKey, defaultValue, err);
}

@@ -376,13 +378,4 @@ yield this.afterHooks(allHooksReversed, hookContext, evaluationDetails, options);

} catch (err) {
const errorMessage = err == null ? void 0 : err.message;
const errorCode = (err == null ? void 0 : err.code) || import_core4.ErrorCode.GENERAL;
yield this.errorHooks(allHooksReversed, hookContext, err, options);
return {
errorCode,
errorMessage,
value: defaultValue,
reason: import_core4.StandardResolutionReasons.ERROR,
flagMetadata: Object.freeze({}),
flagKey
};
return this.getErrorEvaluationDetails(flagKey, defaultValue, err);
} finally {

@@ -462,2 +455,14 @@ yield this.finallyHooks(allHooksReversed, hookContext, options);

}
getErrorEvaluationDetails(flagKey, defaultValue, err) {
const errorMessage = err == null ? void 0 : err.message;
const errorCode = (err == null ? void 0 : err.code) || import_core4.ErrorCode.GENERAL;
return {
errorCode,
errorMessage,
value: defaultValue,
reason: import_core4.StandardResolutionReasons.ERROR,
flagMetadata: Object.freeze({}),
flagKey
};
}
};

@@ -464,0 +469,0 @@

@@ -359,3 +359,5 @@ var __defProp = Object.defineProperty;

if (evaluationDetails.errorCode) {
throw instantiateErrorByErrorCode(evaluationDetails.errorCode);
const err = instantiateErrorByErrorCode(evaluationDetails.errorCode);
yield this.errorHooks(allHooksReversed, hookContext, err, options);
return this.getErrorEvaluationDetails(flagKey, defaultValue, err);
}

@@ -365,13 +367,4 @@ yield this.afterHooks(allHooksReversed, hookContext, evaluationDetails, options);

} catch (err) {
const errorMessage = err == null ? void 0 : err.message;
const errorCode = (err == null ? void 0 : err.code) || ErrorCode2.GENERAL;
yield this.errorHooks(allHooksReversed, hookContext, err, options);
return {
errorCode,
errorMessage,
value: defaultValue,
reason: StandardResolutionReasons2.ERROR,
flagMetadata: Object.freeze({}),
flagKey
};
return this.getErrorEvaluationDetails(flagKey, defaultValue, err);
} finally {

@@ -451,2 +444,14 @@ yield this.finallyHooks(allHooksReversed, hookContext, options);

}
getErrorEvaluationDetails(flagKey, defaultValue, err) {
const errorMessage = err == null ? void 0 : err.message;
const errorCode = (err == null ? void 0 : err.code) || ErrorCode2.GENERAL;
return {
errorCode,
errorMessage,
value: defaultValue,
reason: StandardResolutionReasons2.ERROR,
flagMetadata: Object.freeze({}),
flagKey
};
}
};

@@ -453,0 +458,0 @@

{
"name": "@openfeature/server-sdk",
"version": "1.16.1",
"version": "1.16.2",
"description": "OpenFeature SDK for JavaScript",

@@ -28,4 +28,3 @@ "main": "./dist/cjs/index.js",

"prepack": "shx cp ./../../LICENSE ./LICENSE",
"publish-if-not-exists": "cp $NPM_CONFIG_USERCONFIG .npmrc && if [ \"$(npm show $npm_package_name@$npm_package_version version)\" = \"$(npm run current-version -s)\" ]; then echo 'already published, skipping'; else npm publish --access public; fi",
"update-core-peer": "npm install --save-peer --save-exact @openfeature/core@$OPENFEATURE_CORE_VERSION"
"publish-if-not-exists": "cp $NPM_CONFIG_USERCONFIG .npmrc && if [ \"$(npm show $npm_package_name@$npm_package_version version)\" = \"$(npm run current-version -s)\" ]; then echo 'already published, skipping'; else npm publish --access public; fi"
},

@@ -53,7 +52,7 @@ "repository": {

"peerDependencies": {
"@openfeature/core": "1.5.0"
"@openfeature/core": "^1.5.0"
},
"devDependencies": {
"@openfeature/core": "1.5.0"
"@openfeature/core": "^1.5.0"
}
}

@@ -19,4 +19,4 @@ <!-- markdownlint-disable MD033 -->

<!-- x-release-please-start-version -->
<a href="https://github.com/open-feature/js-sdk/releases/tag/server-sdk-v1.16.1">
<img alt="Release" src="https://img.shields.io/static/v1?label=release&message=v1.16.1&color=blue&style=for-the-badge" />
<a href="https://github.com/open-feature/js-sdk/releases/tag/server-sdk-v1.16.2">
<img alt="Release" src="https://img.shields.io/static/v1?label=release&message=v1.16.2&color=blue&style=for-the-badge" />
</a>

@@ -23,0 +23,0 @@ <!-- x-release-please-end -->

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