@putout/plugin-types 9.0.0 → 10.0.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
@@ -43,6 +43,7 @@ Based on [`@putout/operator-declare`](https://github.com/coderaiser/putout/tree/
43
43
  Supported assertions:
44
44
 
45
45
  - `isString`;
46
+ - `isSet`;
46
47
  - `isEmptyString`;
47
48
  - `isNumber`;
48
49
  - `isNumberLike` - checks if `a` can be convert to `Number` from `String`;
@@ -1,5 +1,6 @@
1
1
  export const declare = () => ({
2
2
  isString: `const isString = (a) => typeof a === 'string'`,
3
+ isSet: 'const isSet = (a) => a instanceof Set',
3
4
  isEmptyString: `const isEmptyString = (a) => !a && isString(a)`,
4
5
  isNumber: `const isNumber = (a) => !Number.isNaN(a) && typeof a === 'number'`,
5
6
  isNumberLike: `const isNumberLike = (a, b = Number(a)) => isNumber(b)`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-types",
3
- "version": "9.0.0",
3
+ "version": "10.0.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin adds ability to transform code related to types assertions",
@@ -31,20 +31,20 @@
31
31
  "types"
32
32
  ],
33
33
  "devDependencies": {
34
- "@putout/eslint-flat": "^3.0.0",
34
+ "@putout/eslint-flat": "^4.0.0",
35
35
  "@putout/plugin-declare-before-reference": "*",
36
36
  "@putout/plugin-putout": "*",
37
37
  "@putout/test": "^15.0.0",
38
38
  "c8": "^10.0.0",
39
- "eslint": "^10.0.0-alpha.0",
39
+ "eslint": "^10.0.0",
40
40
  "eslint-plugin-n": "^17.0.0",
41
- "eslint-plugin-putout": "^29.0.0",
42
- "madrun": "^12.0.0",
41
+ "eslint-plugin-putout": "^31.0.0",
42
+ "madrun": "^13.0.0",
43
43
  "montag": "^1.2.1",
44
44
  "nodemon": "^3.0.1"
45
45
  },
46
46
  "peerDependencies": {
47
- "putout": ">=41"
47
+ "putout": ">=42"
48
48
  },
49
49
  "license": "MIT",
50
50
  "engines": {