@putout/plugin-apply-push 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -42,7 +42,7 @@ const dispatch = createMiddleware(store)((a) => nextActions.push(a));
42
42
 
43
43
  ```js
44
44
  const nextActions = [];
45
- const push = nextActions.push.bind(nexted);
45
+ const push = nextActions.push.bind(nextActions);
46
46
  const dispatch = createMiddleware(store)(push);
47
47
  ```
48
48
 
package/lib/apply-push.js CHANGED
@@ -3,7 +3,7 @@ import {template, operator} from 'putout';
3
3
  const {insertAfter, getBinding} = operator;
4
4
  const createPush = template('const push = NAME.push.bind(NAME)');
5
5
 
6
- export const report = () => `Use bindded 'push'`;
6
+ export const report = () => `Use binded 'push'`;
7
7
 
8
8
  export const replace = () => ({
9
9
  '(__a) => __b.push(__a)': ({__b}, path) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-apply-push",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin adds ability to apply 'push()' bind",
@@ -42,7 +42,7 @@
42
42
  "superc8": "^12.0.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "putout": ">=41"
45
+ "putout": ">=42"
46
46
  },
47
47
  "license": "MIT",
48
48
  "engines": {