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

postman-sandbox

Package Overview
Dependencies
Maintainers
5
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postman-sandbox - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

13

lib/sandbox/execute.js

@@ -120,3 +120,7 @@ const _ = require('lodash'),

// extract the code from event
code = _.isFunction(event.script && event.script.toSource) && ((code) => {
code = ((code) => {
if (typeof code !== 'string') {
return;
}
// wrap it in an async function to support top-level await

@@ -128,3 +132,3 @@ const asyncCode = `;(async()=>{;

return isNonLegacySandbox(code) ? `${getNonLegacyCodeMarker()}${asyncCode}` : asyncCode;
})(event.script.toSource()),
})(event.script?.toSource()),

@@ -255,2 +259,7 @@ // create the execution object

// @todo: throw helpful error message if script access to vault is disabled
if (!context.vaultSecrets) {
disabledAPIs.push('vault');
}
// send control to the function that executes the context and prepares the scope

@@ -257,0 +266,0 @@ executeContext(scope, code, execution,

10

package.json
{
"name": "postman-sandbox",
"version": "5.1.0",
"version": "5.1.1",
"description": "Sandbox for Postman Scripts to run in Node.js or browser",

@@ -46,3 +46,3 @@ "author": "Postman Inc.",

"lodash": "4.17.21",
"postman-collection": "4.4.1",
"postman-collection": "4.5.0",
"teleport-javascript": "1.0.0",

@@ -73,3 +73,3 @@ "uvm": "3.0.0"

"eslint-plugin-lodash": "^7.4.0",
"eslint-plugin-mocha": "^10.4.3",
"eslint-plugin-mocha": "^10.5.0",
"eslint-plugin-n": "^16.6.2",

@@ -80,3 +80,3 @@ "eslint-plugin-security": "^2.1.1",

"jsdoc": "^3.6.10",
"karma": "^6.4.3",
"karma": "^6.4.4",
"karma-browserify": "^8.1.0",

@@ -88,3 +88,3 @@ "karma-chrome-launcher": "^3.2.0",

"lodash3": "3.10.2",
"mocha": "^10.4.0",
"mocha": "^10.7.0",
"moment": "2.30.1",

@@ -91,0 +91,0 @@ "nyc": "^15.1.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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