@analogjs/vite-plugin-angular 3.0.0-beta.52 → 3.0.0-beta.54

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.
@@ -43,52 +43,77 @@ function toStat(stats) {
43
43
  isSymlink: stats.isSymbolicLink()
44
44
  };
45
45
  }
46
+ var WINDOWS_DRIVE_RE = /^[A-Za-z]:(?:\/|$)/;
47
+ var WASM_WINDOWS_DRIVE_RE = /^\/([A-Za-z]:)(\/|$)/;
48
+ /**
49
+ * Converts a host path to the POSIX-absolute form NGP's WebAssembly backend
50
+ * expects (`D:\a\b` → `/D:/a/b`). POSIX and relative paths are unchanged.
51
+ */
52
+ function toWasmPath(path) {
53
+ const normalized = normalizePath(path);
54
+ return WINDOWS_DRIVE_RE.test(normalized) ? `/${normalized}` : normalized;
55
+ }
56
+ /**
57
+ * Converts a path returned by NGP's WebAssembly backend back to a normalized
58
+ * host path (`/D:/a/b` → `D:/a/b`).
59
+ */
60
+ function fromWasmPath(path) {
61
+ return normalizePath(path).replace(WASM_WINDOWS_DRIVE_RE, (_, drive, sep) => `${drive}${sep || "/"}`);
62
+ }
46
63
  /**
47
64
  * The disk, with each module of a source format served as a TypeScript file
48
65
  * named after it (`x.tsrx` as `x.tsrx.ts`) and the module itself hidden, so an
49
- * import of `./x.tsrx` resolves to its TypeScript.
66
+ * import of `./x.tsrx` resolves to its TypeScript. Also translates Windows
67
+ * drive paths at the WebAssembly boundary.
50
68
  *
51
69
  * @param programCode The TypeScript of a module's program file, by the file's
52
70
  * normalized, canonical path.
53
71
  */
54
72
  function createNgpHostFs(programCode) {
55
- const programFile = (path) => programCode(canonicalPath(path));
56
- const isHidden = (path) => programCode(`${canonicalPath(path)}.ts`) !== void 0;
73
+ const programFile = (path) => programCode?.(canonicalPath(path));
74
+ const isHidden = (path) => programCode?.(`${canonicalPath(path)}.ts`) !== void 0;
57
75
  const encoder = new TextEncoder();
58
76
  return {
59
77
  read(path) {
60
- const code = programFile(path);
78
+ const hostPath = fromWasmPath(path);
79
+ const code = programFile(hostPath);
61
80
  if (code !== void 0) return encoder.encode(code);
62
- if (isHidden(path)) return null;
63
- const buffer = orNull(() => fs.readFileSync(path));
81
+ if (isHidden(hostPath)) return null;
82
+ const buffer = orNull(() => fs.readFileSync(hostPath));
64
83
  return buffer && new Uint8Array(buffer);
65
84
  },
66
85
  metadata(path) {
67
- if (programFile(path) !== void 0) return FILE;
68
- if (isHidden(path)) return null;
69
- const stats = orNull(() => fs.statSync(path));
86
+ const hostPath = fromWasmPath(path);
87
+ if (programFile(hostPath) !== void 0) return FILE;
88
+ if (isHidden(hostPath)) return null;
89
+ const stats = orNull(() => fs.statSync(hostPath));
70
90
  return stats && toStat(stats);
71
91
  },
72
92
  symlinkMetadata(path) {
73
- if (programFile(path) !== void 0) return FILE;
74
- if (isHidden(path)) return null;
75
- const stats = orNull(() => fs.lstatSync(path));
93
+ const hostPath = fromWasmPath(path);
94
+ if (programFile(hostPath) !== void 0) return FILE;
95
+ if (isHidden(hostPath)) return null;
96
+ const stats = orNull(() => fs.lstatSync(hostPath));
76
97
  return stats && toStat(stats);
77
98
  },
78
99
  readLink(path) {
79
- return orNull(() => fs.readlinkSync(path, "utf-8"));
100
+ const target = orNull(() => fs.readlinkSync(fromWasmPath(path), "utf-8"));
101
+ return target !== null ? toWasmPath(target) : null;
80
102
  },
81
103
  canonicalize(path) {
82
- if (programFile(path) !== void 0) {
83
- const dir = orNull(() => fs.realpathSync(dirname(path)));
84
- return dir && join(dir, basename(path));
104
+ const hostPath = fromWasmPath(path);
105
+ if (programFile(hostPath) !== void 0) {
106
+ const dir = orNull(() => fs.realpathSync(dirname(hostPath)));
107
+ return dir && toWasmPath(join(dir, basename(hostPath)));
85
108
  }
86
- if (isHidden(path)) return null;
87
- return orNull(() => fs.realpathSync(path));
109
+ if (isHidden(hostPath)) return null;
110
+ const real = orNull(() => fs.realpathSync(hostPath));
111
+ return real && toWasmPath(real);
88
112
  },
89
113
  readDir(path) {
90
- const entries = orNull(() => fs.readdirSync(path, { withFileTypes: true }));
91
- return entries && entries.map((entry) => isHidden(join(path, entry.name)) ? {
114
+ const hostPath = fromWasmPath(path);
115
+ const entries = orNull(() => fs.readdirSync(hostPath, { withFileTypes: true }));
116
+ return entries && entries.map((entry) => isHidden(join(hostPath, entry.name)) ? {
92
117
  ...FILE,
93
118
  name: `${entry.name}.ts`
94
119
  } : {
@@ -99,6 +124,6 @@ function createNgpHostFs(programCode) {
99
124
  };
100
125
  }
101
126
  //#endregion
102
- export { canonicalPath, createNgpHostFs };
127
+ export { canonicalPath, createNgpHostFs, fromWasmPath, toWasmPath };
103
128
 
104
129
  //# sourceMappingURL=ngp-host-fs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngp-host-fs.js","names":[],"sources":["../../../../src/lib/utils/ngp-host-fs.ts"],"sourcesContent":["import * as fs from 'node:fs';\nimport { basename, dirname, join, posix } from 'node:path';\nimport { normalizePath } from 'vite';\n\ninterface HostStat {\n isFile: boolean;\n isDir: boolean;\n isSymlink: boolean;\n}\n\ninterface HostDirEntry extends HostStat {\n name: string;\n}\n\n/** The file system NGP's WebAssembly backend reads through (`hostFs`). */\nexport interface NgpHostFs {\n read(path: string): Uint8Array | null;\n metadata(path: string): HostStat | null;\n symlinkMetadata(path: string): HostStat | null;\n readLink(path: string): string | null;\n canonicalize(path: string): string | null;\n readDir(path: string): HostDirEntry[] | null;\n}\n\nconst FILE: HostStat = { isFile: true, isDir: false, isSymlink: false };\n\n// The errors NGP's own host treats as a missing file\nconst NOT_FOUND_CODES = new Set([\n 'ENOENT',\n 'ENOTDIR',\n 'ENAMETOOLONG',\n 'EINVAL',\n]);\n\nfunction orNull<T>(read: () => T): T | null {\n try {\n return read();\n } catch (error) {\n if (NOT_FOUND_CODES.has((error as NodeJS.ErrnoException).code ?? '')) {\n return null;\n }\n throw error;\n }\n}\n\nconst canonicalDirs = new Map<string, string>();\n\n/**\n * `path`, normalized, with the symlinks of its directory resolved. Lowered\n * modules are keyed by these paths, whichever path a file is reached by.\n */\nexport function canonicalPath(path: string): string {\n const normalized = normalizePath(path);\n const dir = posix.dirname(normalized);\n let real = canonicalDirs.get(dir);\n if (real === undefined) {\n real = orNull(() => normalizePath(fs.realpathSync(dir))) ?? dir;\n canonicalDirs.set(dir, real);\n }\n return `${real}/${posix.basename(normalized)}`;\n}\n\nfunction toStat(\n stats: Pick<fs.Stats, 'isFile' | 'isDirectory' | 'isSymbolicLink'>,\n): HostStat {\n return {\n isFile: stats.isFile(),\n isDir: stats.isDirectory(),\n isSymlink: stats.isSymbolicLink(),\n };\n}\n\n/**\n * The disk, with each module of a source format served as a TypeScript file\n * named after it (`x.tsrx` as `x.tsrx.ts`) and the module itself hidden, so an\n * import of `./x.tsrx` resolves to its TypeScript.\n *\n * @param programCode The TypeScript of a module's program file, by the file's\n * normalized, canonical path.\n */\nexport function createNgpHostFs(\n programCode: (path: string) => string | undefined,\n): NgpHostFs {\n const programFile = (path: string) => programCode(canonicalPath(path));\n const isHidden = (path: string) =>\n programCode(`${canonicalPath(path)}.ts`) !== undefined;\n const encoder = new TextEncoder();\n\n return {\n read(path) {\n const code = programFile(path);\n if (code !== undefined) return encoder.encode(code);\n if (isHidden(path)) return null;\n const buffer = orNull(() => fs.readFileSync(path));\n return buffer && new Uint8Array(buffer);\n },\n metadata(path) {\n if (programFile(path) !== undefined) return FILE;\n if (isHidden(path)) return null;\n const stats = orNull(() => fs.statSync(path));\n return stats && toStat(stats);\n },\n symlinkMetadata(path) {\n if (programFile(path) !== undefined) return FILE;\n if (isHidden(path)) return null;\n const stats = orNull(() => fs.lstatSync(path));\n return stats && toStat(stats);\n },\n readLink(path) {\n return orNull(() => fs.readlinkSync(path, 'utf-8'));\n },\n canonicalize(path) {\n if (programFile(path) !== undefined) {\n const dir = orNull(() => fs.realpathSync(dirname(path)));\n return dir && join(dir, basename(path));\n }\n if (isHidden(path)) return null;\n return orNull(() => fs.realpathSync(path));\n },\n readDir(path) {\n const entries = orNull(() =>\n fs.readdirSync(path, { withFileTypes: true }),\n );\n return (\n entries &&\n entries.map((entry) =>\n isHidden(join(path, entry.name))\n ? { ...FILE, name: `${entry.name}.ts` }\n : { ...toStat(entry), name: entry.name },\n )\n );\n },\n };\n}\n"],"mappings":";;;;AAwBA,IAAM,OAAiB;CAAE,QAAQ;CAAM,OAAO;CAAO,WAAW;AAAM;AAGtE,IAAM,kCAAkB,IAAI,IAAI;CAC9B;CACA;CACA;CACA;AACF,CAAC;AAED,SAAS,OAAU,MAAyB;CAC1C,IAAI;EACF,OAAO,KAAK;CACd,SAAS,OAAO;EACd,IAAI,gBAAgB,IAAK,MAAgC,QAAQ,EAAE,GACjE,OAAO;EAET,MAAM;CACR;AACF;AAEA,IAAM,gCAAgB,IAAI,IAAoB;;;;;AAM9C,SAAgB,cAAc,MAAsB;CAClD,MAAM,aAAa,cAAc,IAAI;CACrC,MAAM,MAAM,MAAM,QAAQ,UAAU;CACpC,IAAI,OAAO,cAAc,IAAI,GAAG;CAChC,IAAI,SAAS,KAAA,GAAW;EACtB,OAAO,aAAa,cAAc,GAAG,aAAa,GAAG,CAAC,CAAC,KAAK;EAC5D,cAAc,IAAI,KAAK,IAAI;CAC7B;CACA,OAAO,GAAG,KAAK,GAAG,MAAM,SAAS,UAAU;AAC7C;AAEA,SAAS,OACP,OACU;CACV,OAAO;EACL,QAAQ,MAAM,OAAO;EACrB,OAAO,MAAM,YAAY;EACzB,WAAW,MAAM,eAAe;CAClC;AACF;;;;;;;;;AAUA,SAAgB,gBACd,aACW;CACX,MAAM,eAAe,SAAiB,YAAY,cAAc,IAAI,CAAC;CACrE,MAAM,YAAY,SAChB,YAAY,GAAG,cAAc,IAAI,EAAE,IAAI,MAAM,KAAA;CAC/C,MAAM,UAAU,IAAI,YAAY;CAEhC,OAAO;EACL,KAAK,MAAM;GACT,MAAM,OAAO,YAAY,IAAI;GAC7B,IAAI,SAAS,KAAA,GAAW,OAAO,QAAQ,OAAO,IAAI;GAClD,I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basename, dirname, join, posix } from 'node:path';\nimport { normalizePath } from 'vite';\n\ninterface HostStat {\n isFile: boolean;\n isDir: boolean;\n isSymlink: boolean;\n}\n\ninterface HostDirEntry extends HostStat {\n name: string;\n}\n\n/** The file system NGP's WebAssembly backend reads through (`hostFs`). */\nexport interface NgpHostFs {\n read(path: string): Uint8Array | null;\n metadata(path: string): HostStat | null;\n symlinkMetadata(path: string): HostStat | null;\n readLink(path: string): string | null;\n canonicalize(path: string): string | null;\n readDir(path: string): HostDirEntry[] | null;\n}\n\nconst FILE: HostStat = { isFile: true, isDir: false, isSymlink: false };\n\n// The errors NGP's own host treats as a missing file\nconst NOT_FOUND_CODES = new Set([\n 'ENOENT',\n 'ENOTDIR',\n 'ENAMETOOLONG',\n 'EINVAL',\n]);\n\nfunction orNull<T>(read: () => T): T | null {\n try {\n return read();\n } catch (error) {\n if (NOT_FOUND_CODES.has((error as NodeJS.ErrnoException).code ?? '')) {\n return null;\n }\n throw error;\n }\n}\n\nconst canonicalDirs = new Map<string, string>();\n\n/**\n * `path`, normalized, with the symlinks of its directory resolved. Lowered\n * modules are keyed by these paths, whichever path a file is reached by.\n */\nexport function canonicalPath(path: string): string {\n const normalized = normalizePath(path);\n const dir = posix.dirname(normalized);\n let real = canonicalDirs.get(dir);\n if (real === undefined) {\n real = orNull(() => normalizePath(fs.realpathSync(dir))) ?? dir;\n canonicalDirs.set(dir, real);\n }\n return `${real}/${posix.basename(normalized)}`;\n}\n\nfunction toStat(\n stats: Pick<fs.Stats, 'isFile' | 'isDirectory' | 'isSymbolicLink'>,\n): HostStat {\n return {\n isFile: stats.isFile(),\n isDir: stats.isDirectory(),\n isSymlink: stats.isSymbolicLink(),\n };\n}\n\nconst WINDOWS_DRIVE_RE = /^[A-Za-z]:(?:\\/|$)/;\nconst WASM_WINDOWS_DRIVE_RE = /^\\/([A-Za-z]:)(\\/|$)/;\n\n/**\n * Converts a host path to the POSIX-absolute form NGP's WebAssembly backend\n * expects (`D:\\a\\b` → `/D:/a/b`). POSIX and relative paths are unchanged.\n */\nexport function toWasmPath(path: string): string {\n const normalized = normalizePath(path);\n return WINDOWS_DRIVE_RE.test(normalized) ? `/${normalized}` : normalized;\n}\n\n/**\n * Converts a path returned by NGP's WebAssembly backend back to a normalized\n * host path (`/D:/a/b` → `D:/a/b`).\n */\nexport function fromWasmPath(path: string): string {\n const normalized = normalizePath(path);\n return normalized.replace(\n WASM_WINDOWS_DRIVE_RE,\n (_, drive: string, sep: string) => `${drive}${sep || '/'}`,\n );\n}\n\n/**\n * The disk, with each module of a source format served as a TypeScript file\n * named after it (`x.tsrx` as `x.tsrx.ts`) and the module itself hidden, so an\n * import of `./x.tsrx` resolves to its TypeScript. Also translates Windows\n * drive paths at the WebAssembly boundary.\n *\n * @param programCode The TypeScript of a module's program file, by the file's\n * normalized, canonical path.\n */\nexport function createNgpHostFs(\n programCode?: (path: string) => string | undefined,\n): NgpHostFs {\n const programFile = (path: string) => programCode?.(canonicalPath(path));\n const isHidden = (path: string) =>\n programCode?.(`${canonicalPath(path)}.ts`) !== undefined;\n const encoder = new TextEncoder();\n\n return {\n read(path) {\n const hostPath = fromWasmPath(path);\n const code = programFile(hostPath);\n if (code !== undefined) return encoder.encode(code);\n if (isHidden(hostPath)) return null;\n const buffer = orNull(() => fs.readFileSync(hostPath));\n return buffer && new Uint8Array(buffer);\n },\n metadata(path) {\n const hostPath = fromWasmPath(path);\n if (programFile(hostPath) !== undefined) return FILE;\n if (isHidden(hostPath)) return null;\n const stats = orNull(() => fs.statSync(hostPath));\n return stats && toStat(stats);\n },\n symlinkMetadata(path) {\n const hostPath = fromWasmPath(path);\n if (programFile(hostPath) !== undefined) return FILE;\n if (isHidden(hostPath)) return null;\n const stats = orNull(() => fs.lstatSync(hostPath));\n return stats && toStat(stats);\n },\n readLink(path) {\n const target = orNull(() => fs.readlinkSync(fromWasmPath(path), 'utf-8'));\n return target !== null ? toWasmPath(target) : null;\n },\n canonicalize(path) {\n const hostPath = fromWasmPath(path);\n if (programFile(hostPath) !== undefined) {\n const dir = orNull(() => fs.realpathSync(dirname(hostPath)));\n return dir && toWasmPath(join(dir, basename(hostPath)));\n }\n if (isHidden(hostPath)) return null;\n const real = orNull(() => fs.realpathSync(hostPath));\n return real && toWasmPath(real);\n },\n readDir(path) {\n const hostPath = fromWasmPath(path);\n const entries = orNull(() =>\n fs.readdirSync(hostPath, { withFileTypes: true }),\n );\n return (\n entries &&\n entries.map((entry) =>\n isHidden(join(hostPath, entry.name))\n ? { ...FILE, name: `${entry.name}.ts` }\n : { ...toStat(entry), name: entry.name },\n )\n );\n },\n };\n}\n"],"mappings":";;;;AAwBA,IAAM,OAAiB;CAAE,QAAQ;CAAM,OAAO;CAAO,WAAW;AAAM;AAGtE,IAAM,kCAAkB,IAAI,IAAI;CAC9B;CACA;CACA;CACA;AACF,CAAC;AAED,SAAS,OAAU,MAAyB;CAC1C,IAAI;EACF,OAAO,KAAK;CACd,SAAS,OAAO;EACd,IAAI,gBAAgB,IAAK,MAAgC,QAAQ,EAAE,GACjE,OAAO;EAET,MAAM;CACR;AACF;AAEA,IAAM,gCAAgB,IAAI,IAAoB;;;;;AAM9C,SAAgB,cAAc,MAAsB;CAClD,MAAM,aAAa,cAAc,IAAI;CACrC,MAAM,MAAM,MAAM,QAAQ,UAAU;CACpC,IAAI,OAAO,cAAc,IAAI,GAAG;CAChC,IAAI,SAAS,KAAA,GAAW;EACtB,OAAO,aAAa,cAAc,GAAG,aAAa,GAAG,CAAC,CAAC,KAAK;EAC5D,cAAc,IAAI,KAAK,IAAI;CAC7B;CACA,OAAO,GAAG,KAAK,GAAG,MAAM,SAAS,UAAU;AAC7C;AAEA,SAAS,OACP,OACU;CACV,OAAO;EACL,QAAQ,MAAM,OAAO;EACrB,OAAO,MAAM,YAAY;EACzB,WAAW,MAAM,eAAe;CAClC;AACF;AAEA,IAAM,mBAAmB;AACzB,IAAM,wBAAwB;;;;;AAM9B,SAAgB,WAAW,MAAsB;CAC/C,MAAM,aAAa,cAAc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