Socket
Socket
Sign inDemoInstall

sap-cf-features

Package Overview
Dependencies
72
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

11

dist/FeatureFlagsApi.js

@@ -27,3 +27,7 @@ "use strict";

const allFlags = yield exportFlags();
return allFlags.flags.filter((flag) => flag.enabled).map((flag) => flag.id);
return allFlags.flags
// remove the filter here, because there is something wrong with boolean features
// boolean features that are active are always true. they should only be true when the feature is released no?
// .filter( (flag) => flag.enabled )
.map((flag) => flag.id);
});

@@ -49,4 +53,7 @@ }

return __awaiter(this, void 0, void 0, function* () {
if (names.length === 0) {
return {};
}
const service = getService();
const url = `/api/v2/evaluateset?${names.map(getFlags).join('&')}&identifier=${tenant}`;
const url = `/api/v2/evaluateset?${names.map(getFlags).join('&')}&identifier=${tenant || ""}`;
const response = yield axios_1.default.get(url, {

@@ -53,0 +60,0 @@ url,

2

package.json
{
"name": "sap-cf-features",
"version": "0.0.2",
"version": "0.0.3",
"description": "Read SAP CF feature flags in nodejs",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc