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

jsexp

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsexp - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

1

exec.js

@@ -37,1 +37,2 @@ 'use strict';

module.exports = exec;
console.log(exec(['$eqs', 1, '1']));

2

package.json
{
"name": "jsexp",
"version": "0.0.1",
"version": "0.0.2",
"license": "MIT",

@@ -5,0 +5,0 @@ "scripts": {

@@ -29,3 +29,4 @@ 'use strict';

} else {
value.push(replaceVariable(expression[i], context));
var replacedValue = replaceVariable(expression[i], context);
value.push(typeof replacedValue === 'string' ? "'".concat(replacedValue, "'") : replacedValue);
}

@@ -53,1 +54,2 @@ }

module.exports = stringify;
console.log(stringify(['$eq', 1, '2']));

@@ -36,6 +36,6 @@ 'use strict';

if (context && rVariable.test(variable)) {
return "'".concat(get(context, variable.substr(1)), "'");
return get(context, variable.substr(1));
}
return "'".concat(variable, "'");
return variable;
}

@@ -42,0 +42,0 @@

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