miniread 1.100.1 → 1.100.2
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.
|
@@ -301,7 +301,7 @@ const manifestData = {
|
|
|
301
301
|
},
|
|
302
302
|
"rename-timeout-promises": {
|
|
303
303
|
recommended: true,
|
|
304
|
-
evaluations: { "claude-code-2.1.10:claude-code-2.1.11": { "diffSizePercent": 100, "evaluatedAt": "2026-02-
|
|
304
|
+
evaluations: { "claude-code-2.1.10:claude-code-2.1.11": { "diffSizePercent": 100, "evaluatedAt": "2026-02-07T12:31:50.528Z", "changedLines": 20, "durationSeconds": 151.321390496, "stableNames": 1358 } },
|
|
305
305
|
},
|
|
306
306
|
"rename-to-buffer-results": {
|
|
307
307
|
recommended: true,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"evaluations": {
|
|
4
4
|
"claude-code-2.1.10:claude-code-2.1.11": {
|
|
5
5
|
"diffSizePercent": 100,
|
|
6
|
-
"evaluatedAt": "2026-02-
|
|
6
|
+
"evaluatedAt": "2026-02-07T12:31:50.528Z",
|
|
7
7
|
"changedLines": 20,
|
|
8
|
-
"durationSeconds":
|
|
8
|
+
"durationSeconds": 151.321390496,
|
|
9
9
|
"stableNames": 1358
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -40,24 +40,18 @@ const isDirectCallOfBinding = (referencePath, bindingName) => {
|
|
|
40
40
|
return true;
|
|
41
41
|
};
|
|
42
42
|
const isReferenceWithinSetTimeoutCallback = (executorPath, referencePath) => {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
for (let currentPath = referencePath; currentPath && currentPath.node !== executorPath.node; currentPath = currentPath.parentPath) {
|
|
44
|
+
if (currentPath.isFunctionExpression() ||
|
|
45
|
+
currentPath.isArrowFunctionExpression()) {
|
|
46
|
+
const parentPath = currentPath.parentPath;
|
|
47
|
+
if (!parentPath.isCallExpression())
|
|
48
|
+
continue;
|
|
49
|
+
if (!isSetTimeoutCall(parentPath))
|
|
50
|
+
continue;
|
|
50
51
|
const callbackPath = parentPath.get("arguments.0");
|
|
51
|
-
if (
|
|
52
|
-
callbackPath.isArrowFunctionExpression()) &&
|
|
53
|
-
callbackPath.node === currentFunction.node) {
|
|
52
|
+
if (callbackPath.node === currentPath.node)
|
|
54
53
|
return true;
|
|
55
|
-
}
|
|
56
54
|
}
|
|
57
|
-
const outerFunction = currentFunction.getFunctionParent();
|
|
58
|
-
if (!outerFunction)
|
|
59
|
-
return false;
|
|
60
|
-
currentFunction = outerFunction;
|
|
61
55
|
}
|
|
62
56
|
return false;
|
|
63
57
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "miniread",
|
|
3
3
|
"author": "Łukasz Jerciński",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "1.100.
|
|
5
|
+
"version": "1.100.2",
|
|
6
6
|
"description": "Transform minified JavaScript/TypeScript into a more readable form using deterministic AST-based transforms.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|