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

@agoric/evaluate

Package Overview
Dependencies
Maintainers
5
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agoric/evaluate - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

CHANGELOG.md

2

.eslintrc.js
/* global module */
module.exports = {
extends: ['airbnb', 'plugin:prettier/recommended'],
extends: ['airbnb-base', 'plugin:prettier/recommended'],
env: {

@@ -5,0 +5,0 @@ es6: true, // supports new ES6 globals (e.g., new types such as Set)

{
"name": "@agoric/evaluate",
"version": "2.2.0",
"version": "2.2.1",
"description": "(unsafe) three-argument evaluator function",

@@ -13,4 +13,4 @@ "main": "src/main.js",

"build": "exit 0",
"lint-fix": "eslint --fix '**/*.{js,jsx}'",
"lint-check": "eslint '**/*.{js,jsx}'"
"lint-fix": "eslint --fix '**/*.js'",
"lint-check": "eslint '**/*.js'"
},

@@ -22,3 +22,3 @@ "devDependencies": {

"dependencies": {
"@agoric/default-evaluate-options": "^0.3.0",
"@agoric/default-evaluate-options": "^0.3.1",
"esm": "^3.2.5"

@@ -29,5 +29,9 @@ },

"bugs": {
"url": "https://github.com/Agoric/evaluate/issues"
"url": "https://github.com/Agoric/agoric-sdk/issues"
},
"homepage": "https://github.com/Agoric/evaluate#readme"
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
"publishConfig": {
"access": "public"
},
"gitHead": "0528854d8b033fff0ab9328ab7df31e70cdc1d39"
}

@@ -45,2 +45,10 @@ /* global window */

};
// Array.reduce() is used to apply an array of transforms cumulatively to a
// starting state. fullTransforms is an array of transforms that can process
// endowments or source code (or both). Each step takes a previous state
// and a transform and produces the next version of the state. The first
// pass produces endowments, while the second pass transforms the source
// code. All the elements of state can be modified by each transform. A
// transform may not be useful for both passes, so transforms opt in to each
// pass by whether or not it has a rewrite() or endow() function.
const endowmentState = fullTransforms.reduce(

@@ -57,2 +65,4 @@ (es, transform) => (transform.endow ? transform.endow(es) : es),

// See comment above for an explanation of how reduce is used to apply a
// sequence of source code transforms cumulatively to the original source.
const sourceState = fullTransforms.reduce(

@@ -59,0 +69,0 @@ (ss, transform) => (transform.rewrite ? transform.rewrite(ss) : ss),

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