miniread 1.100.4 → 1.100.5

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.
@@ -67,8 +67,9 @@ export const renamePlatformWin32FlagsTransform = {
67
67
  let transformationsApplied = 0;
68
68
  for (const fileInfo of getFilesToProcess(context)) {
69
69
  const hasRawWin32Literal = fileInfo.content.includes(WIN32_LITERAL);
70
- if (!hasRawWin32Literal) {
71
- // Escaped string literals (e.g. "\u0077in32") do not contain "win32" in source text.
70
+ const hasRawPlatformIdentifier = fileInfo.content.includes("platform");
71
+ if (!hasRawWin32Literal || !hasRawPlatformIdentifier) {
72
+ // Escaped identifiers/literals may not contain the raw text.
72
73
  if (!fileInfo.content.includes(ESCAPE_CHARACTER))
73
74
  continue;
74
75
  if (!hasWin32StringLiteral(fileInfo.ast))
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.4",
5
+ "version": "1.100.5",
6
6
  "description": "Transform minified JavaScript/TypeScript into a more readable form using deterministic AST-based transforms.",
7
7
  "repository": {
8
8
  "type": "git",