Comparing version 1.0.6 to 1.0.7
'use strict' | ||
try { | ||
var flatstr = Function('s', 'return %FlattenString(s)') | ||
var flatstr = Function('s', 'return typeof s === "string" ? %FlattenString(s) : s') | ||
} catch (e) { | ||
@@ -9,3 +9,3 @@ try { | ||
v8.setFlagsFromString('--allow-natives-syntax') | ||
var flatstr = Function('s', 'return %FlattenString(s)') | ||
var flatstr = Function('s', 'return typeof s === "string" ? %FlattenString(s) : s') | ||
v8.setFlagsFromString('--no-allow-natives-syntax') | ||
@@ -12,0 +12,0 @@ } catch (e) { |
{ | ||
"name": "flatstr", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Flattens the underlying C structures of a concatenated JavaScript string", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
12044