miniread 1.100.2 → 1.100.3

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.
@@ -259,7 +259,7 @@ const manifestData = {
259
259
  },
260
260
  "rename-regex-source-parameters": {
261
261
  recommended: true,
262
- evaluations: { "claude-code-2.1.10:claude-code-2.1.11": { "diffSizePercent": 100, "evaluatedAt": "2026-02-05T18:50:18.894Z", "changedLines": 312, "durationSeconds": 224.52329859600002, "stableNames": 1357 } },
262
+ evaluations: { "claude-code-2.1.10:claude-code-2.1.11": { "diffSizePercent": 100, "evaluatedAt": "2026-02-07T13:43:09.504Z", "changedLines": 312, "durationSeconds": 206.43657815599997, "stableNames": 1357 } },
263
263
  },
264
264
  "rename-replace-child-parameters": {
265
265
  recommended: false,
@@ -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-05T18:50:18.894Z",
6
+ "evaluatedAt": "2026-02-07T13:43:09.504Z",
7
7
  "changedLines": 312,
8
- "durationSeconds": 224.52329859600002,
8
+ "durationSeconds": 206.43657815599997,
9
9
  "stableNames": 1357
10
10
  }
11
11
  }
@@ -24,6 +24,9 @@ const getReturnArgumentFromConsequent = (consequent) => {
24
24
  };
25
25
  const matchesNegatedIdentifier = (test, name) => t.isUnaryExpression(test, { operator: "!" }) &&
26
26
  t.isIdentifier(test.argument, { name });
27
+ const isTypeofIdentifier = (expression, name) => t.isUnaryExpression(expression, { operator: "typeof" }) &&
28
+ t.isIdentifier(expression.argument, { name });
29
+ const isStringLiteralString = (expression) => t.isStringLiteral(expression, { value: "string" });
27
30
  const matchesTypeofStringCheck = (test, name) => {
28
31
  if (!t.isBinaryExpression(test))
29
32
  return false;
@@ -31,11 +34,8 @@ const matchesTypeofStringCheck = (test, name) => {
31
34
  return false;
32
35
  const left = test.left;
33
36
  const right = test.right;
34
- const isTypeofIdentifier = (expression) => t.isUnaryExpression(expression, { operator: "typeof" }) &&
35
- t.isIdentifier(expression.argument, { name });
36
- const isStringLiteralString = (expression) => t.isStringLiteral(expression, { value: "string" });
37
- return ((isTypeofIdentifier(left) && isStringLiteralString(right)) ||
38
- (isStringLiteralString(left) && isTypeofIdentifier(right)));
37
+ return ((isTypeofIdentifier(left, name) && isStringLiteralString(right)) ||
38
+ (isStringLiteralString(left) && isTypeofIdentifier(right, name)));
39
39
  };
40
40
  const matchesRegexSourceNormalizer = (path) => {
41
41
  if (path.node.params.length !== 1)
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.2",
5
+ "version": "1.100.3",
6
6
  "description": "Transform minified JavaScript/TypeScript into a more readable form using deterministic AST-based transforms.",
7
7
  "repository": {
8
8
  "type": "git",