New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bson-transpilers

Package Overview
Dependencies
Maintainers
30
Versions
503
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bson-transpilers - npm Package Compare versions

Comparing version 0.0.0-next-01a3ac56d52443bc859ccdcf7ed301ffbdea7a47 to 0.0.0-next-10815be8fd57f3bfd89d061e1592eb7136d4a0fb

6

codegeneration/javascript/Visitor.js
/* eslint complexity: 0 */
const vm = require('vm');
const bson = require('bson');
const Context = require('context-eval');
const {

@@ -607,5 +607,3 @@ BsonTranspilersArgumentError,

};
const ctx = new Context(sandbox);
const res = ctx.evaluate('__result = ' + input);
ctx.destroy();
const res = vm.runInContext('__result = ' + input, vm.createContext(sandbox));
return res;

@@ -612,0 +610,0 @@ }

/* eslint camelcase: 0 complexity: 0*/
const Context = require('context-eval');
const vm = require('vm');
const {

@@ -509,5 +509,3 @@ BsonTranspilersArgumentError,

};
const context = new Context(sandbox);
const regexobj = context.evaluate('__result = ' + input);
context.destroy();
const regexobj = vm.runInContext('__result = ' + input, vm.createContext(sandbox));
pattern = regexobj.source;

@@ -514,0 +512,0 @@ } catch (error) {

/* eslint complexity: 0 */
const vm = require('vm');
const bson = require('bson');
const Context = require('context-eval');
const {

@@ -68,5 +68,3 @@ BsonTranspilersRuntimeError,

};
const ctx = new Context(sandbox);
const res = ctx.evaluate('__result = ' + input);
ctx.destroy();
const res = vm.runInContext('__result = ' + input, vm.createContext(sandbox));
return res;

@@ -73,0 +71,0 @@ }

{
"name": "bson-transpilers",
"version": "0.0.0-next-01a3ac56d52443bc859ccdcf7ed301ffbdea7a47",
"version": "0.0.0-next-10815be8fd57f3bfd89d061e1592eb7136d4a0fb",
"apiVersion": "0.0.1",

@@ -46,3 +46,2 @@ "productName": "BSON Transpilers",

"bson": "^4.4.1",
"context-eval": "^0.1.0",
"js-yaml": "^3.13.1"

@@ -54,3 +53,3 @@ },

},
"gitHead": "01a3ac56d52443bc859ccdcf7ed301ffbdea7a47"
"gitHead": "10815be8fd57f3bfd89d061e1592eb7136d4a0fb"
}
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