@putout/plugin-types 10.0.0 → 10.1.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,4 +1,6 @@
1
- import {operator} from 'putout';
1
+ import {operator, types} from 'putout';
2
+
3
+ const {isCallExpression} = types;
2
4
 
3
5
  const {
4
6
  compare,
@@ -97,6 +99,9 @@ function check({__a, __b}, path) {
97
99
  if (__b && isBind(path, extract(__b)))
98
100
  return false;
99
101
 
102
+ if (isCallExpression(__a))
103
+ return true;
104
+
100
105
  return getBindingPath(path, __a);
101
106
  }
102
107
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-types",
3
- "version": "10.0.0",
3
+ "version": "10.1.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",
@@ -35,13 +35,13 @@
35
35
  "@putout/plugin-declare-before-reference": "*",
36
36
  "@putout/plugin-putout": "*",
37
37
  "@putout/test": "^15.0.0",
38
- "c8": "^10.0.0",
39
38
  "eslint": "^10.0.0",
40
39
  "eslint-plugin-n": "^17.0.0",
41
40
  "eslint-plugin-putout": "^31.0.0",
42
41
  "madrun": "^13.0.0",
43
42
  "montag": "^1.2.1",
44
- "nodemon": "^3.0.1"
43
+ "nodemon": "^3.0.1",
44
+ "superc8": "^12.0.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "putout": ">=42"