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

@putout/engine-runner

Package Overview
Dependencies
Maintainers
1
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/engine-runner - npm Package Compare versions

Comparing version 10.0.1 to 10.0.2

4

package.json
{
"name": "@putout/engine-runner",
"version": "10.0.1",
"version": "10.0.2",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

@@ -48,3 +48,3 @@ "description": "run putout plugins",

"eslint-plugin-node": "^11.0.0",
"eslint-plugin-putout": "^7.0.0",
"eslint-plugin-putout": "^8.0.0",
"just-camel-case": "^4.0.2",

@@ -51,0 +51,0 @@ "lerna": "^4.0.0",

@@ -125,3 +125,3 @@ # @putout/engine-runner [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL]

`includer` is the most prefarable format of a plugin, simplest to use (after `replacer`)
`includer` is the most preferable format of a plugin, simplest to use (after `replacer`)

@@ -168,9 +168,7 @@ ```js

module.exports.traverse = ({push}) => {
return {
'debugger'(path) {
push(path);
},
};
};
module.exports.traverse = ({push}) => ({
'debugger'(path) {
push(path);
},
});
```

@@ -183,22 +181,21 @@

```js
module.exports.traverse = ({push, listStore}) => {
return {
'debugger'(path) {
listStore('x');
push(path);
module.exports.traverse = ({push, listStore}) => ({
'debugger'(path) {
listStore('x');
push(path);
},
Program: {
exit() {
console.log(listStore());
// returns
['x', 'x', 'x'];
// for code
'debugger; debugger; debugger';
},
Program: {
exit() {
console.log(listStore());
// returns
['x', 'x', 'x'];
// for code
'debugger; debugger; debugger';
},
},
};
};
},
});
```
`store` is prefered way of keeping array elements, because of caching of `putout`, `traverse` init function called only once, and any other way
`store` is preferred way of keeping array elements, because of caching of `putout`, `traverse` init function called only once, and any other way
of handling variables will most likely will lead to bugs.

@@ -211,25 +208,24 @@

```js
module.exports.traverse = ({push, store}) => {
return {
'debugger'(path) {
store('hello', 'world');
push(path);
module.exports.traverse = ({push, store}) => ({
'debugger'(path) {
store('hello', 'world');
push(path);
},
Program: {
exit() {
store();
// returns
['world'];
store.entries();
// returns
[['hello', 'world']];
store('hello');
// returns
'world';
},
Program: {
exit() {
store();
// returns
['world'];
store.entries();
// returns
[['hello', 'world']];
store('hello');
// returns
'world';
},
},
};
};
},
});
```

@@ -236,0 +232,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