Socket
Socket
Sign inDemoInstall

expf-sigma-node.js

Package Overview
Dependencies
9
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.2.5 to 3.2.6

2

package.json
{
"name": "expf-sigma-node.js",
"version": "3.2.5",
"version": "3.2.6",
"description": "expf-sigma-node.js lets you manage features flags and remote config across web, server side applications. Deliver true Continuous Integration. Get builds out faster. Control who has access to new features.",

@@ -5,0 +5,0 @@ "main": "public/sigma.js",

@@ -811,2 +811,7 @@ var __create = Object.create;

var prefixGroup = "sigma_group";
var errorTypesInConfig = {
invalidJson: 'Sigma warning. Invalid type json "%value%" in config.',
invalidType: 'Sigma warning. Invalid type "%type%" in config.'
};
var sdkName = "node.js";

@@ -1024,10 +1029,20 @@ // src/modules/sigmaCache.js

function doTypeConversion(type, value) {
if (type === "string")
return value;
if (type === "bool") {
return value === "true" ? true : false;
switch (type) {
case "string":
return value;
case "bool":
return value === "true" ? true : false;
case "integer":
case "number":
return parseFloat(value);
case "json":
try {
return JSON.parse(value);
} catch (e) {
console.error(errorTypesInConfig.invalidJson.replace("%value%", value), e);
return null;
}
default:
return value;
}
if (type === "integer" || type === "number")
return parseFloat(value);
return value;
}

@@ -1097,2 +1112,8 @@

// package.json
var version = "3.2.6";
// src/helpers/sdkVersion.js
var sdkVersion = version;
// src/sigma.js

@@ -1191,3 +1212,5 @@ if (typeof import_node_fetch.default.default !== "undefined")

token: this.token,
"user-id": this.cache.get(sigmaPrivateId)
"user-id": this.cache.get(sigmaPrivateId),
"sdk-name": sdkName,
"sdk-version": sdkVersion
}

@@ -1194,0 +1217,0 @@ };

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