@agoric/evaluate
Advanced tools
Comparing version 2.2.0 to 2.2.1
/* 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), |
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
22801
13
137
2