@soda-gql/common 0.11.10 → 0.11.12
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.
- package/dist/{canonical-id-BJahCcrS.mjs → canonical-id-9alor9gv.mjs} +66 -7
- package/dist/canonical-id-9alor9gv.mjs.map +1 -0
- package/dist/{canonical-id-CgMNOZyn.cjs → canonical-id-DHdeYIsT.cjs} +76 -5
- package/dist/canonical-id-DHdeYIsT.cjs.map +1 -0
- package/dist/canonical-id.cjs +5 -3
- package/dist/canonical-id.d.cts +2 -2
- package/dist/canonical-id.d.mts +2 -2
- package/dist/canonical-id.mjs +3 -3
- package/dist/{index-Cm2Zwk9m.d.cts → index-AqkJhrm3.d.mts} +53 -3
- package/dist/index-AqkJhrm3.d.mts.map +1 -0
- package/dist/index-BCu9PNbZ.d.mts +139 -0
- package/dist/index-BCu9PNbZ.d.mts.map +1 -0
- package/dist/{index-D1tzB3W5.d.cts → index-BMa2_rDb.d.mts} +6 -35
- package/dist/index-BMa2_rDb.d.mts.map +1 -0
- package/dist/index-BMl8pzFY.d.cts +139 -0
- package/dist/index-BMl8pzFY.d.cts.map +1 -0
- package/dist/{index-B424kKYS.d.mts → index-CbQyueYV.d.cts} +6 -35
- package/dist/index-CbQyueYV.d.cts.map +1 -0
- package/dist/{index-CPpVc8Id.d.mts → index-DZSebwar.d.cts} +53 -3
- package/dist/index-DZSebwar.d.cts.map +1 -0
- package/dist/index-Dit86qkX.d.mts.map +1 -1
- package/dist/index.cjs +9 -7
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +4 -4
- package/dist/portable-B3K3IE7E.cjs +239 -0
- package/dist/portable-B3K3IE7E.cjs.map +1 -0
- package/dist/portable-BFrcBOaX.mjs +196 -0
- package/dist/portable-BFrcBOaX.mjs.map +1 -0
- package/dist/portable.cjs +2 -5
- package/dist/portable.d.cts +2 -2
- package/dist/portable.d.mts +2 -2
- package/dist/portable.mjs +2 -2
- package/dist/utils-Rs7YbafF.cjs +431 -0
- package/dist/utils-Rs7YbafF.cjs.map +1 -0
- package/dist/utils-ZCE_eqCf.mjs +371 -0
- package/dist/utils-ZCE_eqCf.mjs.map +1 -0
- package/dist/utils.cjs +4 -1
- package/dist/utils.d.cts +2 -2
- package/dist/utils.d.mts +2 -2
- package/dist/utils.mjs +2 -2
- package/dist/{zod-C_6JfuYV.cjs → zod-DjI3IUH3.cjs} +2 -2
- package/dist/{zod-C_6JfuYV.cjs.map → zod-DjI3IUH3.cjs.map} +1 -1
- package/dist/zod.cjs +1 -1
- package/package.json +1 -1
- package/dist/canonical-id-BJahCcrS.mjs.map +0 -1
- package/dist/canonical-id-CgMNOZyn.cjs.map +0 -1
- package/dist/index-B424kKYS.d.mts.map +0 -1
- package/dist/index-CPpVc8Id.d.mts.map +0 -1
- package/dist/index-Cm2Zwk9m.d.cts.map +0 -1
- package/dist/index-D1tzB3W5.d.cts.map +0 -1
- package/dist/index-Dv8spPt0.d.mts +0 -61
- package/dist/index-Dv8spPt0.d.mts.map +0 -1
- package/dist/index-LaXfl_e_.d.cts +0 -61
- package/dist/index-LaXfl_e_.d.cts.map +0 -1
- package/dist/portable-BT3ahkQN.mjs +0 -391
- package/dist/portable-BT3ahkQN.mjs.map +0 -1
- package/dist/portable-cJqkfeHw.cjs +0 -451
- package/dist/portable-cJqkfeHw.cjs.map +0 -1
- package/dist/utils-CsTwS1dw.cjs +0 -148
- package/dist/utils-CsTwS1dw.cjs.map +0 -1
- package/dist/utils-DLEgAn7q.mjs +0 -106
- package/dist/utils-DLEgAn7q.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region packages/common/src/portable/fs.d.ts
|
|
2
2
|
/**
|
|
3
|
-
* Portable filesystem API
|
|
3
|
+
* Portable filesystem API using Node.js fs
|
|
4
4
|
*/
|
|
5
5
|
interface PortableFS {
|
|
6
6
|
readFile(path: string): Promise<string>;
|
|
@@ -47,7 +47,7 @@ declare function __resetPortableFSForTests(): void;
|
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region packages/common/src/portable/hash.d.ts
|
|
49
49
|
/**
|
|
50
|
-
* Portable hashing API
|
|
50
|
+
* Portable hashing API using Node.js crypto
|
|
51
51
|
*/
|
|
52
52
|
type HashAlgorithm = "sha256" | "xxhash";
|
|
53
53
|
interface PortableHasher {
|
|
@@ -61,50 +61,21 @@ declare function getPortableHasher(): PortableHasher;
|
|
|
61
61
|
*/
|
|
62
62
|
declare function __resetPortableHasherForTests(): void;
|
|
63
63
|
//#endregion
|
|
64
|
-
//#region packages/common/src/portable/id.d.ts
|
|
65
|
-
/**
|
|
66
|
-
* Portable ID generation that works on both Bun and Node.js
|
|
67
|
-
*/
|
|
68
|
-
/**
|
|
69
|
-
* Generate a unique ID
|
|
70
|
-
* Uses UUIDv7 on Bun (monotonic), falls back to randomUUID on Node.js
|
|
71
|
-
*/
|
|
72
|
-
declare function generateId(): string;
|
|
73
|
-
//#endregion
|
|
74
64
|
//#region packages/common/src/portable/runtime.d.ts
|
|
75
65
|
/**
|
|
76
66
|
* Runtime detection utilities for portable API implementation
|
|
67
|
+
* Note: Bun-specific code has been removed. Node.js APIs are always used.
|
|
77
68
|
*/
|
|
78
69
|
declare const runtime: {
|
|
79
|
-
readonly isBun:
|
|
70
|
+
readonly isBun: false;
|
|
80
71
|
readonly isNode: boolean;
|
|
81
72
|
readonly supportsWebCrypto: boolean;
|
|
82
73
|
};
|
|
83
|
-
/**
|
|
84
|
-
* Helper to cache module imports to avoid repeated dynamic imports
|
|
85
|
-
*/
|
|
86
|
-
declare function once<T>(fn: () => T): () => T;
|
|
87
74
|
/**
|
|
88
75
|
* Reset runtime state for testing purposes only
|
|
89
76
|
* @internal
|
|
90
77
|
*/
|
|
91
78
|
declare function resetPortableForTests(): void;
|
|
92
79
|
//#endregion
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
* Portable subprocess spawning that works on both Bun and Node.js
|
|
96
|
-
*/
|
|
97
|
-
interface SpawnOptions {
|
|
98
|
-
cmd: string[];
|
|
99
|
-
cwd?: string;
|
|
100
|
-
env?: Record<string, string>;
|
|
101
|
-
}
|
|
102
|
-
interface SpawnResult {
|
|
103
|
-
stdout: string;
|
|
104
|
-
stderr: string;
|
|
105
|
-
exitCode: number;
|
|
106
|
-
}
|
|
107
|
-
declare function spawn(options: SpawnOptions): Promise<SpawnResult>;
|
|
108
|
-
//#endregion
|
|
109
|
-
export { resetPortableForTests as a, HashAlgorithm as c, createPortableHasher as d, getPortableHasher as f, getPortableFS as g, createPortableFS as h, once as i, PortableHasher as l, __resetPortableFSForTests as m, SpawnResult as n, runtime as o, PortableFS as p, spawn as r, generateId as s, SpawnOptions as t, __resetPortableHasherForTests as u };
|
|
110
|
-
//# sourceMappingURL=index-D1tzB3W5.d.cts.map
|
|
80
|
+
export { __resetPortableHasherForTests as a, PortableFS as c, getPortableFS as d, PortableHasher as i, __resetPortableFSForTests as l, runtime as n, createPortableHasher as o, HashAlgorithm as r, getPortableHasher as s, resetPortableForTests as t, createPortableFS as u };
|
|
81
|
+
//# sourceMappingURL=index-BMa2_rDb.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BMa2_rDb.d.mts","names":[],"sources":["../src/portable/fs.ts","../src/portable/hash.ts","../src/portable/runtime.ts"],"sourcesContent":[],"mappings":";;AAIA;;AAE4C,UAF3B,UAAA,CAE2B;EAKM,QAAA,CAAA,IAAA,EAAA,MAAA,CAAA,EANxB,OAMwB,CAAA,MAAA,CAAA;EAC1B,SAAA,CAAA,IAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,CAAA,EANoB,OAMpB,CAAA,IAAA,CAAA;EACe;;;;EAWf,eAAA,CAAA,IAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,CAAA,EAb0B,OAa1B,CAAA,IAAA,CAAA;EAAO,MAAA,CAAA,IAAA,EAAA,MAAA,CAAA,EAZP,OAYO,CAAA,OAAA,CAAA;EAuEf,IAAA,CAAA,IAAA,EAAA,MAAA,CAAA,EAlFM,OAkFU,CAAA;IAwHhB,KAAA,EA1MuB,IA0MvB;IAWA,IAAA,EAAA,MAAA;;4CApN4B;6BCN3B;IAFL,SAAA,CAAA,EAAa,OAAA;EAER,CAAA,CAAA,EDOyC,OCPzC,CAAA,IAAA,CAAc;EAIf;AAgBhB;AAWA;;;;AClCA;AAUA;wBFSwB;;;;;;;;;;iBAuER,gBAAA,CAAA,GAAoB;iBAwHpB,aAAA,CAAA,GAAiB;;;;;iBAWjB,yBAAA,CAAA;;;;AA9NhB;;AAE4C,KCAhC,aAAA,GDAgC,QAAA,GAAA,QAAA;AAKM,UCHjC,cAAA,CDGiC;EAC1B,IAAA,CAAA,OAAA,EAAA,MAAA,EAAA,SAAA,CAAA,ECHY,aDGZ,CAAA,EAAA,MAAA;;AACF,iBCDN,oBAAA,CAAA,CDCM,ECDkB,cDClB;AACsB,iBCc5B,iBAAA,CAAA,CDd4B,ECcP,cDdO;;;;AAiF5C;AAwHgB,iBChLA,6BAAA,CAAA,CDgL2B,EAAA,IAAA;;;;AAnN3C;;;AAOkD,cENrC,OFMqC,EAAA;EAC1B,SAAA,KAAA,EAAA,KAAA;EACe,SAAA,MAAA,EAAA,OAAA;EAAjB,SAAA,iBAAA,EAAA,OAAA;CACsB;;;;AAiF5C;AAwHgB,iBExMA,qBAAA,CAAA,CFwM2B,EAAA,IAAA"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { Result } from "neverthrow";
|
|
2
|
+
|
|
3
|
+
//#region packages/common/src/utils/tsconfig.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Parsed tsconfig.json paths configuration.
|
|
7
|
+
* All paths are resolved to absolute paths.
|
|
8
|
+
*/
|
|
9
|
+
type TsconfigPathsConfig = {
|
|
10
|
+
/** Absolute base URL for path resolution */
|
|
11
|
+
readonly baseUrl: string;
|
|
12
|
+
/** Path mappings with absolute paths */
|
|
13
|
+
readonly paths: Readonly<Record<string, readonly string[]>>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Error types for tsconfig reading.
|
|
17
|
+
*/
|
|
18
|
+
type TsconfigReadError = {
|
|
19
|
+
readonly code: "TSCONFIG_READ_FAILED" | "TSCONFIG_PARSE_FAILED" | "TSCONFIG_INVALID";
|
|
20
|
+
readonly message: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Read and parse tsconfig.json to extract paths configuration.
|
|
24
|
+
* Currently does not support `extends` - reads only the specified file.
|
|
25
|
+
*
|
|
26
|
+
* @param tsconfigPath - Absolute path to tsconfig.json
|
|
27
|
+
* @returns Parsed paths configuration or null if no paths defined
|
|
28
|
+
*/
|
|
29
|
+
declare const readTsconfigPaths: (tsconfigPath: string) => Result<TsconfigPathsConfig | null, TsconfigReadError>;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region packages/common/src/utils/alias-resolver.d.ts
|
|
32
|
+
/**
|
|
33
|
+
* Alias resolver interface for resolving path aliases to file paths.
|
|
34
|
+
*/
|
|
35
|
+
type AliasResolver = {
|
|
36
|
+
/**
|
|
37
|
+
* Resolve an alias specifier to an absolute file path.
|
|
38
|
+
* Returns null if the specifier doesn't match any alias pattern
|
|
39
|
+
* or if the resolved file doesn't exist.
|
|
40
|
+
*/
|
|
41
|
+
readonly resolve: (specifier: string) => string | null;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Create an alias resolver from tsconfig paths configuration.
|
|
45
|
+
*
|
|
46
|
+
* Resolution behavior:
|
|
47
|
+
* 1. Try each pattern in order (first match wins per TS spec)
|
|
48
|
+
* 2. For each matched pattern, try all target paths in order
|
|
49
|
+
* 3. For each target, apply extension resolution
|
|
50
|
+
* 4. Return first found file, or null if none found
|
|
51
|
+
*/
|
|
52
|
+
declare const createAliasResolver: (config: TsconfigPathsConfig) => AliasResolver;
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region packages/common/src/utils/cached-fn.d.ts
|
|
55
|
+
declare const cachedFn: <T>(fn: () => T) => {
|
|
56
|
+
(): T;
|
|
57
|
+
clear(): void;
|
|
58
|
+
};
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region packages/common/src/utils/path.d.ts
|
|
61
|
+
/**
|
|
62
|
+
* File extensions to try when resolving module specifiers.
|
|
63
|
+
* Ordered to match TypeScript's module resolution order.
|
|
64
|
+
* @see https://www.typescriptlang.org/docs/handbook/module-resolution.html
|
|
65
|
+
*/
|
|
66
|
+
declare const MODULE_EXTENSION_CANDIDATES: readonly [".ts", ".tsx", ".mts", ".cts", ".js", ".mjs", ".cjs", ".jsx"];
|
|
67
|
+
/**
|
|
68
|
+
* Result of parsing a JS extension from a specifier.
|
|
69
|
+
*/
|
|
70
|
+
type JsExtensionInfo = {
|
|
71
|
+
/** The specifier without the JS extension */
|
|
72
|
+
readonly base: string;
|
|
73
|
+
/** The JS extension found (e.g., ".js", ".mjs") */
|
|
74
|
+
readonly jsExtension: string;
|
|
75
|
+
/** The corresponding TS extensions to try (e.g., [".ts", ".tsx"] for ".js") */
|
|
76
|
+
readonly tsExtensions: readonly string[];
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Parse a JS extension from a specifier for ESM-style import resolution.
|
|
80
|
+
* Returns the base path (without extension), the JS extension, and corresponding TS extensions.
|
|
81
|
+
*
|
|
82
|
+
* @param specifier - The import specifier to parse
|
|
83
|
+
* @returns Object with base, jsExtension, and tsExtensions, or null if no JS extension found
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* parseJsExtension("./foo.js") // { base: "./foo", jsExtension: ".js", tsExtensions: [".ts", ".tsx"] }
|
|
87
|
+
* parseJsExtension("./foo.mjs") // { base: "./foo", jsExtension: ".mjs", tsExtensions: [".mts"] }
|
|
88
|
+
* parseJsExtension("./foo") // null
|
|
89
|
+
* parseJsExtension("./foo.ts") // null
|
|
90
|
+
*/
|
|
91
|
+
declare const parseJsExtension: (specifier: string) => JsExtensionInfo | null;
|
|
92
|
+
/**
|
|
93
|
+
* Normalize path to use forward slashes (cross-platform).
|
|
94
|
+
* Ensures consistent path handling across platforms.
|
|
95
|
+
*/
|
|
96
|
+
declare const normalizePath: (value: string) => string;
|
|
97
|
+
/**
|
|
98
|
+
* Resolve a relative import specifier to an absolute file path.
|
|
99
|
+
* Tries the specifier as-is, with extensions, and as a directory with index files.
|
|
100
|
+
*
|
|
101
|
+
* @param from - Absolute path to the importing file
|
|
102
|
+
* @param specifier - Relative module specifier (must start with '.')
|
|
103
|
+
* @returns Absolute POSIX path to the resolved file, or null if not found
|
|
104
|
+
*/
|
|
105
|
+
declare const resolveRelativeImportWithExistenceCheck: ({
|
|
106
|
+
filePath,
|
|
107
|
+
specifier
|
|
108
|
+
}: {
|
|
109
|
+
filePath: string;
|
|
110
|
+
specifier: string;
|
|
111
|
+
}) => string | null;
|
|
112
|
+
/**
|
|
113
|
+
* Resolve a relative import specifier to an absolute file path.
|
|
114
|
+
* Tries the specifier as-is, with extensions, and as a directory with index files.
|
|
115
|
+
*
|
|
116
|
+
* @param from - Absolute path to the importing file
|
|
117
|
+
* @param specifier - Relative module specifier (must start with '.')
|
|
118
|
+
* @returns Absolute POSIX path to the resolved file, or null if not found
|
|
119
|
+
*/
|
|
120
|
+
declare const resolveRelativeImportWithReferences: <_>({
|
|
121
|
+
filePath,
|
|
122
|
+
specifier,
|
|
123
|
+
references
|
|
124
|
+
}: {
|
|
125
|
+
filePath: string;
|
|
126
|
+
specifier: string;
|
|
127
|
+
references: Map<string, _> | Set<string>;
|
|
128
|
+
}) => string | null;
|
|
129
|
+
/**
|
|
130
|
+
* Check if a module specifier is relative (starts with '.' or '..')
|
|
131
|
+
*/
|
|
132
|
+
declare const isRelativeSpecifier: (specifier: string) => boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Check if a module specifier is external (package name, not relative)
|
|
135
|
+
*/
|
|
136
|
+
declare const isExternalSpecifier: (specifier: string) => boolean;
|
|
137
|
+
//#endregion
|
|
138
|
+
export { normalizePath as a, resolveRelativeImportWithReferences as c, createAliasResolver as d, TsconfigPathsConfig as f, isRelativeSpecifier as i, cachedFn as l, readTsconfigPaths as m, MODULE_EXTENSION_CANDIDATES as n, parseJsExtension as o, TsconfigReadError as p, isExternalSpecifier as r, resolveRelativeImportWithExistenceCheck as s, JsExtensionInfo as t, AliasResolver as u };
|
|
139
|
+
//# sourceMappingURL=index-BMl8pzFY.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BMl8pzFY.d.cts","names":[],"sources":["../src/utils/tsconfig.ts","../src/utils/alias-resolver.ts","../src/utils/cached-fn.ts","../src/utils/path.ts"],"sourcesContent":[],"mappings":";;;;;;AAQA;AAUA;AA4Ba,KAtCD,mBAAA,GAgGX;EA1D+D;EAA4B,SAAA,OAAA,EAAA,MAAA;EAAnC;EAAM,SAAA,KAAA,EAlC7C,QAkC6C,CAlCpC,MAkCoC,CAAA,MAAA,EAAA,SAAA,MAAA,EAAA,CAAA,CAAA;;;;ACtC/D;AAoJa,KD1ID,iBAAA,GCyKX;;;;AC3LD;;;;ACQA;AAgBA;AAsBA;AAiBa,cHjBA,iBGiB+E,EAAA,CAAA,YAAA,EAAA,MAAA,EAAA,GHjBnC,MGiBmC,CHjB5B,mBGiB4B,GAAA,IAAA,EHjBA,iBGiBA,CAAA;;;;;AHvD5F;AAUY,KCVA,aAAA,GDUiB;EA4BhB;;;;;;;;ACtCb;AAoJA;;;;AC5JA;;;cD4Ja,8BAA+B,wBAAsB;;;cC5JrD,wBAAyB;MAAA;;AFQtC,CAAA;;;;;;AAAA;AAUA;AA4Ba,cGtCA,2BHgGZ,EAAA,SAAA,CAAA,KAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,KAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,CAAA;;;;AA1D8D,KGtBnD,eAAA,GHsBmD;;;;ECtCnD,SAAA,WAAa,EAAA,MAAA;EAoJZ;;;;AC5Jb;;;;ACQA;AAgBA;AAsBA;AAiBA;AAUA;AA+EA;;;AAAuD,cA1G1C,gBA0G0C,EAAA,CAAA,SAAA,EAAA,MAAA,EAAA,GA1GF,eA0GE,GAAA,IAAA;;;;;AA4D1C,cArJA,aAqJ+G,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,MAAA;AAK5H;;;;;;;;cAhJa;;;;;;;;;;;;;;;cA+EA;;;;;;;cAOC,YAAY,KAAK;;;;;cAqDlB;;;;cAKA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region packages/common/src/portable/fs.d.ts
|
|
2
2
|
/**
|
|
3
|
-
* Portable filesystem API
|
|
3
|
+
* Portable filesystem API using Node.js fs
|
|
4
4
|
*/
|
|
5
5
|
interface PortableFS {
|
|
6
6
|
readFile(path: string): Promise<string>;
|
|
@@ -47,7 +47,7 @@ declare function __resetPortableFSForTests(): void;
|
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region packages/common/src/portable/hash.d.ts
|
|
49
49
|
/**
|
|
50
|
-
* Portable hashing API
|
|
50
|
+
* Portable hashing API using Node.js crypto
|
|
51
51
|
*/
|
|
52
52
|
type HashAlgorithm = "sha256" | "xxhash";
|
|
53
53
|
interface PortableHasher {
|
|
@@ -61,50 +61,21 @@ declare function getPortableHasher(): PortableHasher;
|
|
|
61
61
|
*/
|
|
62
62
|
declare function __resetPortableHasherForTests(): void;
|
|
63
63
|
//#endregion
|
|
64
|
-
//#region packages/common/src/portable/id.d.ts
|
|
65
|
-
/**
|
|
66
|
-
* Portable ID generation that works on both Bun and Node.js
|
|
67
|
-
*/
|
|
68
|
-
/**
|
|
69
|
-
* Generate a unique ID
|
|
70
|
-
* Uses UUIDv7 on Bun (monotonic), falls back to randomUUID on Node.js
|
|
71
|
-
*/
|
|
72
|
-
declare function generateId(): string;
|
|
73
|
-
//#endregion
|
|
74
64
|
//#region packages/common/src/portable/runtime.d.ts
|
|
75
65
|
/**
|
|
76
66
|
* Runtime detection utilities for portable API implementation
|
|
67
|
+
* Note: Bun-specific code has been removed. Node.js APIs are always used.
|
|
77
68
|
*/
|
|
78
69
|
declare const runtime: {
|
|
79
|
-
readonly isBun:
|
|
70
|
+
readonly isBun: false;
|
|
80
71
|
readonly isNode: boolean;
|
|
81
72
|
readonly supportsWebCrypto: boolean;
|
|
82
73
|
};
|
|
83
|
-
/**
|
|
84
|
-
* Helper to cache module imports to avoid repeated dynamic imports
|
|
85
|
-
*/
|
|
86
|
-
declare function once<T>(fn: () => T): () => T;
|
|
87
74
|
/**
|
|
88
75
|
* Reset runtime state for testing purposes only
|
|
89
76
|
* @internal
|
|
90
77
|
*/
|
|
91
78
|
declare function resetPortableForTests(): void;
|
|
92
79
|
//#endregion
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
* Portable subprocess spawning that works on both Bun and Node.js
|
|
96
|
-
*/
|
|
97
|
-
interface SpawnOptions {
|
|
98
|
-
cmd: string[];
|
|
99
|
-
cwd?: string;
|
|
100
|
-
env?: Record<string, string>;
|
|
101
|
-
}
|
|
102
|
-
interface SpawnResult {
|
|
103
|
-
stdout: string;
|
|
104
|
-
stderr: string;
|
|
105
|
-
exitCode: number;
|
|
106
|
-
}
|
|
107
|
-
declare function spawn(options: SpawnOptions): Promise<SpawnResult>;
|
|
108
|
-
//#endregion
|
|
109
|
-
export { resetPortableForTests as a, HashAlgorithm as c, createPortableHasher as d, getPortableHasher as f, getPortableFS as g, createPortableFS as h, once as i, PortableHasher as l, __resetPortableFSForTests as m, SpawnResult as n, runtime as o, PortableFS as p, spawn as r, generateId as s, SpawnOptions as t, __resetPortableHasherForTests as u };
|
|
110
|
-
//# sourceMappingURL=index-B424kKYS.d.mts.map
|
|
80
|
+
export { __resetPortableHasherForTests as a, PortableFS as c, getPortableFS as d, PortableHasher as i, __resetPortableFSForTests as l, runtime as n, createPortableHasher as o, HashAlgorithm as r, getPortableHasher as s, resetPortableForTests as t, createPortableFS as u };
|
|
81
|
+
//# sourceMappingURL=index-CbQyueYV.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CbQyueYV.d.cts","names":[],"sources":["../src/portable/fs.ts","../src/portable/hash.ts","../src/portable/runtime.ts"],"sourcesContent":[],"mappings":";;AAIA;;AAE4C,UAF3B,UAAA,CAE2B;EAKM,QAAA,CAAA,IAAA,EAAA,MAAA,CAAA,EANxB,OAMwB,CAAA,MAAA,CAAA;EAC1B,SAAA,CAAA,IAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,CAAA,EANoB,OAMpB,CAAA,IAAA,CAAA;EACe;;;;EAWf,eAAA,CAAA,IAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,CAAA,EAb0B,OAa1B,CAAA,IAAA,CAAA;EAAO,MAAA,CAAA,IAAA,EAAA,MAAA,CAAA,EAZP,OAYO,CAAA,OAAA,CAAA;EAuEf,IAAA,CAAA,IAAA,EAAA,MAAA,CAAA,EAlFM,OAkFU,CAAA;IAwHhB,KAAA,EA1MuB,IA0MvB;IAWA,IAAA,EAAA,MAAA;;4CApN4B;6BCN3B;IAFL,SAAA,CAAA,EAAa,OAAA;EAER,CAAA,CAAA,EDOyC,OCPzC,CAAA,IAAA,CAAc;EAIf;AAgBhB;AAWA;;;;AClCA;AAUA;wBFSwB;;;;;;;;;;iBAuER,gBAAA,CAAA,GAAoB;iBAwHpB,aAAA,CAAA,GAAiB;;;;;iBAWjB,yBAAA,CAAA;;;;AA9NhB;;AAE4C,KCAhC,aAAA,GDAgC,QAAA,GAAA,QAAA;AAKM,UCHjC,cAAA,CDGiC;EAC1B,IAAA,CAAA,OAAA,EAAA,MAAA,EAAA,SAAA,CAAA,ECHY,aDGZ,CAAA,EAAA,MAAA;;AACF,iBCDN,oBAAA,CAAA,CDCM,ECDkB,cDClB;AACsB,iBCc5B,iBAAA,CAAA,CDd4B,ECcP,cDdO;;;;AAiF5C;AAwHgB,iBChLA,6BAAA,CAAA,CDgL2B,EAAA,IAAA;;;;AAnN3C;;;AAOkD,cENrC,OFMqC,EAAA;EAC1B,SAAA,KAAA,EAAA,KAAA;EACe,SAAA,MAAA,EAAA,OAAA;EAAjB,SAAA,iBAAA,EAAA,OAAA;CACsB;;;;AAiF5C;AAwHgB,iBExMA,qBAAA,CAAA,CFwM2B,EAAA,IAAA"}
|
|
@@ -5,7 +5,34 @@ type CanonicalId = string & {
|
|
|
5
5
|
readonly __brand: "CanonicalId";
|
|
6
6
|
};
|
|
7
7
|
declare const CanonicalIdSchema: z$1.ZodType<CanonicalId>;
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Options for creating a canonical ID.
|
|
10
|
+
*/
|
|
11
|
+
type CreateCanonicalIdOptions = {
|
|
12
|
+
/**
|
|
13
|
+
* Base directory for relative path computation.
|
|
14
|
+
* When provided, the canonical ID will use a relative path from baseDir.
|
|
15
|
+
* When undefined, an absolute path is required and used as-is.
|
|
16
|
+
*/
|
|
17
|
+
readonly baseDir?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Create a canonical ID from a file path and AST path.
|
|
21
|
+
*
|
|
22
|
+
* @param filePath - The file path (absolute, or relative if baseDir is provided)
|
|
23
|
+
* @param astPath - The AST path identifying the definition within the file
|
|
24
|
+
* @param options - Optional configuration including baseDir for relative path support
|
|
25
|
+
* @returns A canonical ID in the format "{path}::{astPath}"
|
|
26
|
+
*/
|
|
27
|
+
declare const createCanonicalId: (filePath: string, astPath: string, options?: CreateCanonicalIdOptions) => CanonicalId;
|
|
28
|
+
/**
|
|
29
|
+
* Check if a canonical ID uses a relative path.
|
|
30
|
+
* Relative canonical IDs do not start with '/'.
|
|
31
|
+
*
|
|
32
|
+
* @param canonicalId - The canonical ID to check
|
|
33
|
+
* @returns true if the canonical ID uses a relative path
|
|
34
|
+
*/
|
|
35
|
+
declare const isRelativeCanonicalId: (canonicalId: CanonicalId | string) => boolean;
|
|
9
36
|
/**
|
|
10
37
|
* Parse a canonical ID into its components.
|
|
11
38
|
* @param canonicalId - The canonical ID to parse (e.g., "/app/src/user.ts::userFragment")
|
|
@@ -15,6 +42,24 @@ declare const parseCanonicalId: (canonicalId: CanonicalId | string) => {
|
|
|
15
42
|
filePath: string;
|
|
16
43
|
astPath: string;
|
|
17
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* Validation result for canonical ID format.
|
|
47
|
+
*/
|
|
48
|
+
type CanonicalIdValidationResult = {
|
|
49
|
+
readonly isValid: true;
|
|
50
|
+
} | {
|
|
51
|
+
readonly isValid: false;
|
|
52
|
+
readonly reason: string;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Validate a canonical ID format.
|
|
56
|
+
* A valid canonical ID has format: "{filePath}::{astPath}"
|
|
57
|
+
* where both filePath and astPath are non-empty.
|
|
58
|
+
*
|
|
59
|
+
* @param canonicalId - The canonical ID to validate
|
|
60
|
+
* @returns Validation result with isValid boolean and optional error reason
|
|
61
|
+
*/
|
|
62
|
+
declare const validateCanonicalId: (canonicalId: string) => CanonicalIdValidationResult;
|
|
18
63
|
//#endregion
|
|
19
64
|
//#region packages/common/src/canonical-id/path-tracker.d.ts
|
|
20
65
|
|
|
@@ -110,6 +155,11 @@ interface CanonicalPathTracker {
|
|
|
110
155
|
*/
|
|
111
156
|
declare const createCanonicalTracker: (options: {
|
|
112
157
|
filePath: string;
|
|
158
|
+
/**
|
|
159
|
+
* Base directory for relative path computation in canonical IDs.
|
|
160
|
+
* When provided, canonical IDs will use relative paths from baseDir.
|
|
161
|
+
*/
|
|
162
|
+
baseDir?: string;
|
|
113
163
|
getExportName?: (localName: string) => string | undefined;
|
|
114
164
|
}) => CanonicalPathTracker;
|
|
115
165
|
/**
|
|
@@ -129,5 +179,5 @@ declare const createPathTracker: () => {
|
|
|
129
179
|
*/
|
|
130
180
|
declare const buildAstPath: (stack: readonly ScopeFrame[]) => string;
|
|
131
181
|
//#endregion
|
|
132
|
-
export { createCanonicalTracker as a, CanonicalId as c,
|
|
133
|
-
//# sourceMappingURL=index-
|
|
182
|
+
export { createCanonicalTracker as a, CanonicalId as c, CreateCanonicalIdOptions as d, createCanonicalId as f, validateCanonicalId as h, buildAstPath as i, CanonicalIdSchema as l, parseCanonicalId as m, ScopeFrame as n, createOccurrenceTracker as o, isRelativeCanonicalId as p, ScopeHandle as r, createPathTracker as s, CanonicalPathTracker as t, CanonicalIdValidationResult as u };
|
|
183
|
+
//# sourceMappingURL=index-DZSebwar.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DZSebwar.d.cts","names":[],"sources":["../src/canonical-id/canonical-id.ts","../src/canonical-id/path-tracker.ts"],"sourcesContent":[],"mappings":";;;KAIY,WAAA;;AAAZ,CAAA;AAIa,cAAA,iBAA6B,EAAV,GAAA,CAAE,OAAF,CAAU,WAAD,CAAA;AAKzC;AAiBA;AAoCA;AASa,KA9DD,wBAAA,GA+DG;EAkBH;AAUZ;;;;ECnFY,SAAA,OAAU,CAAA,EAAA,MAAA;AAYtB,CAAA;AAQA;;;;;;AA8EA;AA4GA;AAiBa,cDtNA,iBCuOZ,EAAA,CAAA,QAAA,EAAA,MAAA,EAAA,OAAA,EAAA,MAAA,EAAA,OAAA,CAAA,EDvO8E,wBCuO9E,EAAA,GDvOyG,WCuOzG;AAKD;;;;;;;cDxMa,qCAAsC;;;;;;cAStC,gCACE;;;;;;;KAkBH,2BAAA;;;;;;;;;;;;;;cAUC,8CAA6C;;;;ACvE1D;AAQA;;AAM0F,KA1B9E,UAAA,GA0B8E;EAMtE;EAiBmB,SAAA,WAAA,EAAA,MAAA;EAAW;EAiDrC,SAAA,IAAA,EAAA,UAuGZ,GAAA,OAAA,GA/FG,UAAA,GAAA,UA+FH,GAAA,QAAA,GAAA,YAAA;EAKY;EAiBA,SAAA,UAAA,EAiBZ,MAAA;AAKD,CAAA;;;;KAzOY,WAAA;;;;;;;UAQK,oBAAA;;;;;;;;UAM8B;;MAA2C;;;;;oBAMtE;;;;;;;;;;;;;;;uCAiBmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiD1B;;;;;;;;MAQT;;;;cAoGS;;;;;;cAiBA;;;;;;cAsBA,+BAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-Dit86qkX.d.mts","names":[],"sources":["../src/zod/schema-helper.ts"],"sourcesContent":[],"mappings":";;;KAGY,qBAAqB,CAAA,CAAE,QAAQ;KAE/B,2CAFA,MAEiD,OAFxC,KAEoD,SAF9B,CAEwC,
|
|
1
|
+
{"version":3,"file":"index-Dit86qkX.d.mts","names":[],"sources":["../src/zod/schema-helper.ts"],"sourcesContent":[],"mappings":";;;KAGY,qBAAqB,CAAA,CAAE,QAAQ;KAE/B,2CAFA,MAEiD,OAFxC,KAEoD,SAF9B,CAEwC,OAFlD,CAE0D,CAFxD,CAAA,CAAA,EAEnC;AAA6D,iBAE7C,eAF6C,CAAA,gBAAA,MAAA,CAAA,CAAA,CAAA,EAAA,CAAA,eAGpC,QAHoC,CAG3B,OAH2B,CAGnB,OAHmB,CAAA,CAAA,CAAA,CAAA,KAAA,EAGD,MAHC,GAAA,QAGgB,OAHhB,CAAA,MAG8B,MAH9B,EAAA,MAG4C,OAH5C,CAAA,GAAA,KAAA,EAAA,EAAA,GAG8D,CAAA,CAAA,SAH9D,CAG8D,MAH9D,GAAA,QAGY,OAHZ,CAAA,MAGY,MAHZ,EAAA,MAGY,OAHZ,CAAA,GAAA,KAAA,EAAA,SAAA,KAAA,EAAA,GAAA,kBAAA,MAGY,CAHZ,GAGY,CAHZ,CAGY,CAHZ,CAAA,EAAA,GAAA,KAAA,EAGY,CAAA,CAAA,IAAA,CAAA,OAHZ,CAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_canonical_id = require('./canonical-id-
|
|
2
|
-
const require_utils = require('./utils-
|
|
3
|
-
const require_portable = require('./portable-
|
|
4
|
-
const require_zod = require('./zod-
|
|
1
|
+
const require_canonical_id = require('./canonical-id-DHdeYIsT.cjs');
|
|
2
|
+
const require_utils = require('./utils-Rs7YbafF.cjs');
|
|
3
|
+
const require_portable = require('./portable-B3K3IE7E.cjs');
|
|
4
|
+
const require_zod = require('./zod-DjI3IUH3.cjs');
|
|
5
5
|
let neverthrow = require("neverthrow");
|
|
6
6
|
|
|
7
7
|
//#region packages/common/src/scheduler/types.ts
|
|
@@ -269,6 +269,7 @@ exports.__resetPortableFSForTests = require_portable.__resetPortableFSForTests;
|
|
|
269
269
|
exports.__resetPortableHasherForTests = require_portable.__resetPortableHasherForTests;
|
|
270
270
|
exports.buildAstPath = require_canonical_id.buildAstPath;
|
|
271
271
|
exports.cachedFn = require_utils.cachedFn;
|
|
272
|
+
exports.createAliasResolver = require_utils.createAliasResolver;
|
|
272
273
|
exports.createAsyncScheduler = createAsyncScheduler;
|
|
273
274
|
exports.createCanonicalId = require_canonical_id.createCanonicalId;
|
|
274
275
|
exports.createCanonicalTracker = require_canonical_id.createCanonicalTracker;
|
|
@@ -279,17 +280,18 @@ exports.createPortableHasher = require_portable.createPortableHasher;
|
|
|
279
280
|
exports.createSchedulerError = createSchedulerError;
|
|
280
281
|
exports.createSyncScheduler = createSyncScheduler;
|
|
281
282
|
exports.defineSchemaFor = require_zod.defineSchemaFor;
|
|
282
|
-
exports.generateId = require_portable.generateId;
|
|
283
283
|
exports.getPortableFS = require_portable.getPortableFS;
|
|
284
284
|
exports.getPortableHasher = require_portable.getPortableHasher;
|
|
285
285
|
exports.isExternalSpecifier = require_utils.isExternalSpecifier;
|
|
286
|
+
exports.isRelativeCanonicalId = require_canonical_id.isRelativeCanonicalId;
|
|
286
287
|
exports.isRelativeSpecifier = require_utils.isRelativeSpecifier;
|
|
287
288
|
exports.normalizePath = require_utils.normalizePath;
|
|
288
|
-
exports.once = require_portable.once;
|
|
289
289
|
exports.parseCanonicalId = require_canonical_id.parseCanonicalId;
|
|
290
|
+
exports.parseJsExtension = require_utils.parseJsExtension;
|
|
291
|
+
exports.readTsconfigPaths = require_utils.readTsconfigPaths;
|
|
290
292
|
exports.resetPortableForTests = require_portable.resetPortableForTests;
|
|
291
293
|
exports.resolveRelativeImportWithExistenceCheck = require_utils.resolveRelativeImportWithExistenceCheck;
|
|
292
294
|
exports.resolveRelativeImportWithReferences = require_utils.resolveRelativeImportWithReferences;
|
|
293
295
|
exports.runtime = require_portable.runtime;
|
|
294
|
-
exports.
|
|
296
|
+
exports.validateCanonicalId = require_canonical_id.validateCanonicalId;
|
|
295
297
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as createCanonicalTracker, c as CanonicalId, d as
|
|
2
|
-
import { a as
|
|
3
|
-
import { a as
|
|
1
|
+
import { a as createCanonicalTracker, c as CanonicalId, d as CreateCanonicalIdOptions, f as createCanonicalId, h as validateCanonicalId, i as buildAstPath, l as CanonicalIdSchema, m as parseCanonicalId, n as ScopeFrame, o as createOccurrenceTracker, p as isRelativeCanonicalId, r as ScopeHandle, s as createPathTracker, t as CanonicalPathTracker, u as CanonicalIdValidationResult } from "./index-DZSebwar.cjs";
|
|
2
|
+
import { a as __resetPortableHasherForTests, c as PortableFS, d as getPortableFS, i as PortableHasher, l as __resetPortableFSForTests, n as runtime, o as createPortableHasher, r as HashAlgorithm, s as getPortableHasher, t as resetPortableForTests, u as createPortableFS } from "./index-CbQyueYV.cjs";
|
|
3
|
+
import { a as normalizePath, c as resolveRelativeImportWithReferences, d as createAliasResolver, f as TsconfigPathsConfig, i as isRelativeSpecifier, l as cachedFn, m as readTsconfigPaths, n as MODULE_EXTENSION_CANDIDATES, o as parseJsExtension, p as TsconfigReadError, r as isExternalSpecifier, s as resolveRelativeImportWithExistenceCheck, t as JsExtensionInfo, u as AliasResolver } from "./index-BMl8pzFY.cjs";
|
|
4
4
|
import { n as ShapeFor, r as defineSchemaFor, t as SchemaFor } from "./index-LHYortIn.cjs";
|
|
5
5
|
import { Result } from "neverthrow";
|
|
6
6
|
|
|
@@ -216,5 +216,5 @@ declare const Effects: {
|
|
|
216
216
|
*/
|
|
217
217
|
declare const createSyncScheduler: () => SyncScheduler;
|
|
218
218
|
//#endregion
|
|
219
|
-
export { type AsyncScheduler, CanonicalId, CanonicalIdSchema, CanonicalPathTracker, DeferEffect, Effect, type EffectGenerator, type EffectGeneratorFn, type EffectResult, Effects, HashAlgorithm, MODULE_EXTENSION_CANDIDATES, ParallelEffect, PortableFS, PortableHasher, PureEffect, type SchedulerError, SchemaFor, ScopeFrame, ScopeHandle, ShapeFor,
|
|
219
|
+
export { AliasResolver, type AsyncScheduler, CanonicalId, CanonicalIdSchema, CanonicalIdValidationResult, CanonicalPathTracker, CreateCanonicalIdOptions, DeferEffect, Effect, type EffectGenerator, type EffectGeneratorFn, type EffectResult, Effects, HashAlgorithm, JsExtensionInfo, MODULE_EXTENSION_CANDIDATES, ParallelEffect, PortableFS, PortableHasher, PureEffect, type SchedulerError, SchemaFor, ScopeFrame, ScopeHandle, ShapeFor, type SyncScheduler, TsconfigPathsConfig, TsconfigReadError, YieldEffect, __resetPortableFSForTests, __resetPortableHasherForTests, buildAstPath, cachedFn, createAliasResolver, createAsyncScheduler, createCanonicalId, createCanonicalTracker, createOccurrenceTracker, createPathTracker, createPortableFS, createPortableHasher, createSchedulerError, createSyncScheduler, defineSchemaFor, getPortableFS, getPortableHasher, isExternalSpecifier, isRelativeCanonicalId, isRelativeSpecifier, normalizePath, parseCanonicalId, parseJsExtension, readTsconfigPaths, resetPortableForTests, resolveRelativeImportWithExistenceCheck, resolveRelativeImportWithReferences, runtime, validateCanonicalId };
|
|
220
220
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as createCanonicalTracker, c as CanonicalId, d as
|
|
2
|
-
import { a as
|
|
3
|
-
import { a as
|
|
1
|
+
import { a as createCanonicalTracker, c as CanonicalId, d as CreateCanonicalIdOptions, f as createCanonicalId, h as validateCanonicalId, i as buildAstPath, l as CanonicalIdSchema, m as parseCanonicalId, n as ScopeFrame, o as createOccurrenceTracker, p as isRelativeCanonicalId, r as ScopeHandle, s as createPathTracker, t as CanonicalPathTracker, u as CanonicalIdValidationResult } from "./index-AqkJhrm3.mjs";
|
|
2
|
+
import { a as __resetPortableHasherForTests, c as PortableFS, d as getPortableFS, i as PortableHasher, l as __resetPortableFSForTests, n as runtime, o as createPortableHasher, r as HashAlgorithm, s as getPortableHasher, t as resetPortableForTests, u as createPortableFS } from "./index-BMa2_rDb.mjs";
|
|
3
|
+
import { a as normalizePath, c as resolveRelativeImportWithReferences, d as createAliasResolver, f as TsconfigPathsConfig, i as isRelativeSpecifier, l as cachedFn, m as readTsconfigPaths, n as MODULE_EXTENSION_CANDIDATES, o as parseJsExtension, p as TsconfigReadError, r as isExternalSpecifier, s as resolveRelativeImportWithExistenceCheck, t as JsExtensionInfo, u as AliasResolver } from "./index-BCu9PNbZ.mjs";
|
|
4
4
|
import { n as ShapeFor, r as defineSchemaFor, t as SchemaFor } from "./index-Dit86qkX.mjs";
|
|
5
5
|
import { Result } from "neverthrow";
|
|
6
6
|
|
|
@@ -216,5 +216,5 @@ declare const Effects: {
|
|
|
216
216
|
*/
|
|
217
217
|
declare const createSyncScheduler: () => SyncScheduler;
|
|
218
218
|
//#endregion
|
|
219
|
-
export { type AsyncScheduler, CanonicalId, CanonicalIdSchema, CanonicalPathTracker, DeferEffect, Effect, type EffectGenerator, type EffectGeneratorFn, type EffectResult, Effects, HashAlgorithm, MODULE_EXTENSION_CANDIDATES, ParallelEffect, PortableFS, PortableHasher, PureEffect, type SchedulerError, SchemaFor, ScopeFrame, ScopeHandle, ShapeFor,
|
|
219
|
+
export { AliasResolver, type AsyncScheduler, CanonicalId, CanonicalIdSchema, CanonicalIdValidationResult, CanonicalPathTracker, CreateCanonicalIdOptions, DeferEffect, Effect, type EffectGenerator, type EffectGeneratorFn, type EffectResult, Effects, HashAlgorithm, JsExtensionInfo, MODULE_EXTENSION_CANDIDATES, ParallelEffect, PortableFS, PortableHasher, PureEffect, type SchedulerError, SchemaFor, ScopeFrame, ScopeHandle, ShapeFor, type SyncScheduler, TsconfigPathsConfig, TsconfigReadError, YieldEffect, __resetPortableFSForTests, __resetPortableHasherForTests, buildAstPath, cachedFn, createAliasResolver, createAsyncScheduler, createCanonicalId, createCanonicalTracker, createOccurrenceTracker, createPathTracker, createPortableFS, createPortableHasher, createSchedulerError, createSyncScheduler, defineSchemaFor, getPortableFS, getPortableHasher, isExternalSpecifier, isRelativeCanonicalId, isRelativeSpecifier, normalizePath, parseCanonicalId, parseJsExtension, readTsconfigPaths, resetPortableForTests, resolveRelativeImportWithExistenceCheck, resolveRelativeImportWithReferences, runtime, validateCanonicalId };
|
|
220
220
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as getPortableHasher, c as getPortableFS,
|
|
2
|
-
import { a as
|
|
3
|
-
import { a as CanonicalIdSchema, i as createPathTracker, n as createCanonicalTracker, o as createCanonicalId, r as createOccurrenceTracker, s as
|
|
1
|
+
import { a as getPortableHasher, c as getPortableFS, i as createPortableHasher, n as runtime, o as __resetPortableFSForTests, r as __resetPortableHasherForTests, s as createPortableFS, t as resetPortableForTests } from "./portable-BFrcBOaX.mjs";
|
|
2
|
+
import { a as isExternalSpecifier, c as parseJsExtension, i as MODULE_EXTENSION_CANDIDATES, l as resolveRelativeImportWithExistenceCheck, n as cachedFn, o as isRelativeSpecifier, r as createAliasResolver, s as normalizePath, t as readTsconfigPaths, u as resolveRelativeImportWithReferences } from "./utils-ZCE_eqCf.mjs";
|
|
3
|
+
import { a as CanonicalIdSchema, c as parseCanonicalId, i as createPathTracker, l as validateCanonicalId, n as createCanonicalTracker, o as createCanonicalId, r as createOccurrenceTracker, s as isRelativeCanonicalId, t as buildAstPath } from "./canonical-id-9alor9gv.mjs";
|
|
4
4
|
import { t as defineSchemaFor } from "./zod-DeSimXdI.mjs";
|
|
5
5
|
import { err, ok } from "neverthrow";
|
|
6
6
|
|
|
@@ -257,5 +257,5 @@ const isSchedulerError = (error) => {
|
|
|
257
257
|
};
|
|
258
258
|
|
|
259
259
|
//#endregion
|
|
260
|
-
export { CanonicalIdSchema, DeferEffect, Effect, Effects, MODULE_EXTENSION_CANDIDATES, ParallelEffect, PureEffect, YieldEffect, __resetPortableFSForTests, __resetPortableHasherForTests, buildAstPath, cachedFn, createAsyncScheduler, createCanonicalId, createCanonicalTracker, createOccurrenceTracker, createPathTracker, createPortableFS, createPortableHasher, createSchedulerError, createSyncScheduler, defineSchemaFor,
|
|
260
|
+
export { CanonicalIdSchema, DeferEffect, Effect, Effects, MODULE_EXTENSION_CANDIDATES, ParallelEffect, PureEffect, YieldEffect, __resetPortableFSForTests, __resetPortableHasherForTests, buildAstPath, cachedFn, createAliasResolver, createAsyncScheduler, createCanonicalId, createCanonicalTracker, createOccurrenceTracker, createPathTracker, createPortableFS, createPortableHasher, createSchedulerError, createSyncScheduler, defineSchemaFor, getPortableFS, getPortableHasher, isExternalSpecifier, isRelativeCanonicalId, isRelativeSpecifier, normalizePath, parseCanonicalId, parseJsExtension, readTsconfigPaths, resetPortableForTests, resolveRelativeImportWithExistenceCheck, resolveRelativeImportWithReferences, runtime, validateCanonicalId };
|
|
261
261
|
//# sourceMappingURL=index.mjs.map
|