@putout/plugin-tape 20.0.0 β†’ 20.2.0

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
@@ -397,13 +397,12 @@ Check out in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/adf238850
397
397
 
398
398
  ```js
399
399
  const test = require('supertape');
400
- const {stub} = test;
401
400
  ```
402
401
 
403
402
  ### βœ… Example of correct code
404
403
 
405
404
  ```js
406
- const {test, stub} = require('supertape');
405
+ const {test} = require('supertape');
407
406
  ```
408
407
 
409
408
  ## apply-stub
@@ -1,16 +1,6 @@
1
- import {operator} from 'putout';
2
-
3
- const {remove} = operator;
4
-
5
- export const report = () => `Use destructuring when using 'stub()' in 'test()'`;
6
-
7
- export const match = () => ({
8
- 'const test = require("supertape")': (vars, path) => path.scope.bindings.stub,
9
- });
1
+ export const report = () => `Use destructuring when require 'test' -> '{test}'`;
10
2
 
11
3
  export const replace = () => ({
12
- 'const test = require("supertape")': (vars, path) => {
13
- remove(path.scope.bindings.stub.path);
14
- return 'const {test, stub} = require("supertape")';
15
- },
4
+ 'const test = require("supertape")': 'const {test} = require("supertape")',
5
+ 'const __identifier__a = require("supertape")': 'const {test: __identifier__a} = require("supertape")',
16
6
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-tape",
3
- "version": "20.0.0",
3
+ "version": "20.2.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin helps with tests",
@@ -35,7 +35,7 @@
35
35
  "c8": "^10.0.0",
36
36
  "eslint": "^10.0.0-alpha.0",
37
37
  "eslint-plugin-n": "^17.0.0",
38
- "eslint-plugin-putout": "^29.0.0",
38
+ "eslint-plugin-putout": "^30.0.0",
39
39
  "madrun": "^12.0.0",
40
40
  "montag": "^1.2.1",
41
41
  "nodemon": "^3.0.1"