@putout/plugin-tape 4.0.0 → 4.4.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.
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
const {isSimpleRegExp} =
|
|
3
|
+
const {operator} = require('putout');
|
|
4
|
+
const {isSimpleRegExp} = operator;
|
|
5
5
|
|
|
6
6
|
const checkRegExp = ({__b}) => isSimpleRegExp(RegExp(__b.pattern));
|
|
7
7
|
const checkStr = ({__b}) => isSimpleRegExp(RegExp(__b.value));
|
|
8
8
|
|
|
9
|
+
module.exports.report = () => 't.match should be used with string pattern';
|
|
10
|
+
|
|
9
11
|
module.exports.match = () => ({
|
|
10
12
|
't.match(__a, RegExp(__b))': checkStr,
|
|
11
13
|
't.match(__a, RegExp(__b), __c)': checkStr,
|
package/lib/declare/index.js
CHANGED
package/lib/declare-t/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/plugin-tape",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
5
|
"description": "putout plugin helps with tests",
|
|
6
6
|
"homepage": "https://github.com/coderaiser/putout/tree/master/packages/plugin-tape",
|
|
@@ -22,10 +22,7 @@
|
|
|
22
22
|
"coverage": "madrun coverage",
|
|
23
23
|
"report": "madrun report"
|
|
24
24
|
},
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"@putout/plugin-declare-undefined-variables": "^4.2.0",
|
|
27
|
-
"@putout/plugin-regexp": "^2.5.0"
|
|
28
|
-
},
|
|
25
|
+
"dependencies": {},
|
|
29
26
|
"keywords": [
|
|
30
27
|
"putout",
|
|
31
28
|
"putout-plugin",
|
|
@@ -44,7 +41,7 @@
|
|
|
44
41
|
"nodemon": "^2.0.1"
|
|
45
42
|
},
|
|
46
43
|
"peerDependencies": {
|
|
47
|
-
"putout": ">=20"
|
|
44
|
+
"putout": ">=20.8"
|
|
48
45
|
},
|
|
49
46
|
"license": "MIT",
|
|
50
47
|
"engines": {
|