@soda-gql/common 0.0.1
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/LICENSE +21 -0
- package/dist/canonical-id/index.cjs +9 -0
- package/dist/canonical-id/index.d.cts +2 -0
- package/dist/canonical-id/index.d.ts +2 -0
- package/dist/canonical-id/index.js +4 -0
- package/dist/canonical-id-Bn6ZPdZl.js +155 -0
- package/dist/canonical-id-Bn6ZPdZl.js.map +1 -0
- package/dist/canonical-id-CE4Xjo2C.cjs +192 -0
- package/dist/chunk-CUT6urMc.cjs +30 -0
- package/dist/index-B_QJzQA2.d.cts +9 -0
- package/dist/index-B_QJzQA2.d.cts.map +1 -0
- package/dist/index-C0n5gWc3.d.cts +88 -0
- package/dist/index-C0n5gWc3.d.cts.map +1 -0
- package/dist/index-C8yyrGd7.d.cts +124 -0
- package/dist/index-C8yyrGd7.d.cts.map +1 -0
- package/dist/index-CcSB32XQ.d.ts +60 -0
- package/dist/index-CcSB32XQ.d.ts.map +1 -0
- package/dist/index-D6Lx478n.d.ts +124 -0
- package/dist/index-D6Lx478n.d.ts.map +1 -0
- package/dist/index-DN4VW1v7.d.ts +9 -0
- package/dist/index-DN4VW1v7.d.ts.map +1 -0
- package/dist/index-Fi3RpHje.d.cts +60 -0
- package/dist/index-Fi3RpHje.d.cts.map +1 -0
- package/dist/index-LjtXZhxM.d.ts +88 -0
- package/dist/index-LjtXZhxM.d.ts.map +1 -0
- package/dist/index.cjs +30 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6 -0
- package/dist/portable/index.cjs +13 -0
- package/dist/portable/index.d.cts +2 -0
- package/dist/portable/index.d.ts +2 -0
- package/dist/portable/index.js +3 -0
- package/dist/portable-BqSEwase.js +249 -0
- package/dist/portable-BqSEwase.js.map +1 -0
- package/dist/portable-Bq_Qob6b.cjs +308 -0
- package/dist/utils/index.cjs +9 -0
- package/dist/utils/index.d.cts +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils-DxBnV8tL.js +100 -0
- package/dist/utils-DxBnV8tL.js.map +1 -0
- package/dist/utils-NBAPoMgh.cjs +143 -0
- package/dist/zod/index.cjs +3 -0
- package/dist/zod/index.d.cts +2 -0
- package/dist/zod/index.d.ts +2 -0
- package/dist/zod/index.js +3 -0
- package/dist/zod-B1gOOwdX.cjs +16 -0
- package/dist/zod-BPbnZc6i.js +10 -0
- package/dist/zod-BPbnZc6i.js.map +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { dirname, join, normalize, resolve } from "node:path";
|
|
2
|
+
import { existsSync } from "node:fs";
|
|
3
|
+
|
|
4
|
+
//#region packages/common/src/utils/cached-fn.ts
|
|
5
|
+
const cachedFn = (fn) => {
|
|
6
|
+
let cached = null;
|
|
7
|
+
const ensure = () => (cached ??= { value: fn() }).value;
|
|
8
|
+
ensure.clear = () => {
|
|
9
|
+
cached = null;
|
|
10
|
+
};
|
|
11
|
+
return ensure;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region packages/common/src/utils/path.ts
|
|
16
|
+
/**
|
|
17
|
+
* File extensions to try when resolving module specifiers.
|
|
18
|
+
* Ordered by precedence: TypeScript, then JavaScript.
|
|
19
|
+
*/
|
|
20
|
+
const MODULE_EXTENSION_CANDIDATES = [
|
|
21
|
+
".ts",
|
|
22
|
+
".tsx",
|
|
23
|
+
".mts",
|
|
24
|
+
".cts",
|
|
25
|
+
".js",
|
|
26
|
+
".jsx",
|
|
27
|
+
".mjs",
|
|
28
|
+
".cjs"
|
|
29
|
+
];
|
|
30
|
+
/**
|
|
31
|
+
* Normalize path to use forward slashes (cross-platform).
|
|
32
|
+
* Ensures consistent path handling across platforms.
|
|
33
|
+
*/
|
|
34
|
+
const normalizePath = (value) => normalize(value).replace(/\\/g, "/");
|
|
35
|
+
/**
|
|
36
|
+
* Resolve a relative import specifier to an absolute file path.
|
|
37
|
+
* Tries the specifier as-is, with extensions, and as a directory with index files.
|
|
38
|
+
*
|
|
39
|
+
* @param from - Absolute path to the importing file
|
|
40
|
+
* @param specifier - Relative module specifier (must start with '.')
|
|
41
|
+
* @returns Absolute POSIX path to the resolved file, or null if not found
|
|
42
|
+
*/
|
|
43
|
+
const resolveRelativeImportWithExistenceCheck = ({ filePath, specifier }) => {
|
|
44
|
+
const base = resolve(dirname(filePath), specifier);
|
|
45
|
+
if (existsSync(base)) {
|
|
46
|
+
return normalizePath(base);
|
|
47
|
+
}
|
|
48
|
+
for (const ext of MODULE_EXTENSION_CANDIDATES) {
|
|
49
|
+
const candidate = `${base}${ext}`;
|
|
50
|
+
if (existsSync(candidate)) {
|
|
51
|
+
return normalizePath(candidate);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
for (const ext of MODULE_EXTENSION_CANDIDATES) {
|
|
55
|
+
const candidate = join(base, `index${ext}`);
|
|
56
|
+
if (existsSync(candidate)) {
|
|
57
|
+
return normalizePath(candidate);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return null;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Resolve a relative import specifier to an absolute file path.
|
|
64
|
+
* Tries the specifier as-is, with extensions, and as a directory with index files.
|
|
65
|
+
*
|
|
66
|
+
* @param from - Absolute path to the importing file
|
|
67
|
+
* @param specifier - Relative module specifier (must start with '.')
|
|
68
|
+
* @returns Absolute POSIX path to the resolved file, or null if not found
|
|
69
|
+
*/
|
|
70
|
+
const resolveRelativeImportWithReferences = ({ filePath, specifier, references }) => {
|
|
71
|
+
const base = resolve(dirname(filePath), specifier);
|
|
72
|
+
if (references.has(base)) {
|
|
73
|
+
return normalizePath(base);
|
|
74
|
+
}
|
|
75
|
+
for (const ext of MODULE_EXTENSION_CANDIDATES) {
|
|
76
|
+
const candidate = `${base}${ext}`;
|
|
77
|
+
if (references.has(candidate)) {
|
|
78
|
+
return normalizePath(candidate);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
for (const ext of MODULE_EXTENSION_CANDIDATES) {
|
|
82
|
+
const candidate = join(base, `index${ext}`);
|
|
83
|
+
if (references.has(candidate)) {
|
|
84
|
+
return normalizePath(candidate);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return null;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Check if a module specifier is relative (starts with '.' or '..')
|
|
91
|
+
*/
|
|
92
|
+
const isRelativeSpecifier = (specifier) => specifier.startsWith("./") || specifier.startsWith("../");
|
|
93
|
+
/**
|
|
94
|
+
* Check if a module specifier is external (package name, not relative)
|
|
95
|
+
*/
|
|
96
|
+
const isExternalSpecifier = (specifier) => !isRelativeSpecifier(specifier);
|
|
97
|
+
|
|
98
|
+
//#endregion
|
|
99
|
+
export { MODULE_EXTENSION_CANDIDATES, cachedFn, isExternalSpecifier, isRelativeSpecifier, normalizePath, resolveRelativeImportWithExistenceCheck, resolveRelativeImportWithReferences };
|
|
100
|
+
//# sourceMappingURL=utils-DxBnV8tL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-DxBnV8tL.js","names":["cached: { value: T } | null"],"sources":["../src/utils/cached-fn.ts","../src/utils/path.ts"],"sourcesContent":["export const cachedFn = <T>(fn: () => T) => {\n let cached: { value: T } | null = null;\n\n const ensure = () => (cached ??= { value: fn() }).value;\n ensure.clear = () => {\n cached = null;\n };\n\n return ensure;\n};\n","import { existsSync } from \"node:fs\";\nimport { dirname, join, normalize, resolve } from \"node:path\";\n\n/**\n * File extensions to try when resolving module specifiers.\n * Ordered by precedence: TypeScript, then JavaScript.\n */\nexport const MODULE_EXTENSION_CANDIDATES = [\".ts\", \".tsx\", \".mts\", \".cts\", \".js\", \".jsx\", \".mjs\", \".cjs\"] as const;\n\n/**\n * Normalize path to use forward slashes (cross-platform).\n * Ensures consistent path handling across platforms.\n */\nexport const normalizePath = (value: string): string => normalize(value).replace(/\\\\/g, \"/\");\n\n/**\n * Resolve a relative import specifier to an absolute file path.\n * Tries the specifier as-is, with extensions, and as a directory with index files.\n *\n * @param from - Absolute path to the importing file\n * @param specifier - Relative module specifier (must start with '.')\n * @returns Absolute POSIX path to the resolved file, or null if not found\n */\nexport const resolveRelativeImportWithExistenceCheck = ({\n filePath,\n specifier,\n}: {\n filePath: string;\n specifier: string;\n}): string | null => {\n const base = resolve(dirname(filePath), specifier);\n\n // Try exact path first\n if (existsSync(base)) {\n return normalizePath(base);\n }\n\n // Try with extensions\n for (const ext of MODULE_EXTENSION_CANDIDATES) {\n const candidate = `${base}${ext}`;\n if (existsSync(candidate)) {\n return normalizePath(candidate);\n }\n }\n\n // Try as directory with index files\n for (const ext of MODULE_EXTENSION_CANDIDATES) {\n const candidate = join(base, `index${ext}`);\n if (existsSync(candidate)) {\n return normalizePath(candidate);\n }\n }\n\n return null;\n};\n\n/**\n * Resolve a relative import specifier to an absolute file path.\n * Tries the specifier as-is, with extensions, and as a directory with index files.\n *\n * @param from - Absolute path to the importing file\n * @param specifier - Relative module specifier (must start with '.')\n * @returns Absolute POSIX path to the resolved file, or null if not found\n */\nexport const resolveRelativeImportWithReferences = <_>({\n filePath,\n specifier,\n references,\n}: {\n filePath: string;\n specifier: string;\n references: Map<string, _> | Set<string>;\n}): string | null => {\n const base = resolve(dirname(filePath), specifier);\n\n // Try exact path first\n if (references.has(base)) {\n return normalizePath(base);\n }\n\n // Try with extensions\n for (const ext of MODULE_EXTENSION_CANDIDATES) {\n const candidate = `${base}${ext}`;\n if (references.has(candidate)) {\n return normalizePath(candidate);\n }\n }\n\n // Try as directory with index files\n for (const ext of MODULE_EXTENSION_CANDIDATES) {\n const candidate = join(base, `index${ext}`);\n if (references.has(candidate)) {\n return normalizePath(candidate);\n }\n }\n\n return null;\n};\n\n/**\n * Check if a module specifier is relative (starts with '.' or '..')\n */\nexport const isRelativeSpecifier = (specifier: string): boolean => specifier.startsWith(\"./\") || specifier.startsWith(\"../\");\n\n/**\n * Check if a module specifier is external (package name, not relative)\n */\nexport const isExternalSpecifier = (specifier: string): boolean => !isRelativeSpecifier(specifier);\n"],"mappings":";;;;AAAA,MAAa,YAAe,OAAgB;CAC1C,IAAIA,SAA8B;CAElC,MAAM,gBAAgB,WAAW,EAAE,OAAO,IAAI,EAAE,EAAE;AAClD,QAAO,cAAc;AACnB,WAAS;;AAGX,QAAO;;;;;;;;;ACDT,MAAa,8BAA8B;CAAC;CAAO;CAAQ;CAAQ;CAAQ;CAAO;CAAQ;CAAQ;CAAO;;;;;AAMzG,MAAa,iBAAiB,UAA0B,UAAU,MAAM,CAAC,QAAQ,OAAO,IAAI;;;;;;;;;AAU5F,MAAa,2CAA2C,EACtD,UACA,gBAImB;CACnB,MAAM,OAAO,QAAQ,QAAQ,SAAS,EAAE,UAAU;AAGlD,KAAI,WAAW,KAAK,EAAE;AACpB,SAAO,cAAc,KAAK;;AAI5B,MAAK,MAAM,OAAO,6BAA6B;EAC7C,MAAM,YAAY,GAAG,OAAO;AAC5B,MAAI,WAAW,UAAU,EAAE;AACzB,UAAO,cAAc,UAAU;;;AAKnC,MAAK,MAAM,OAAO,6BAA6B;EAC7C,MAAM,YAAY,KAAK,MAAM,QAAQ,MAAM;AAC3C,MAAI,WAAW,UAAU,EAAE;AACzB,UAAO,cAAc,UAAU;;;AAInC,QAAO;;;;;;;;;;AAWT,MAAa,uCAA0C,EACrD,UACA,WACA,iBAKmB;CACnB,MAAM,OAAO,QAAQ,QAAQ,SAAS,EAAE,UAAU;AAGlD,KAAI,WAAW,IAAI,KAAK,EAAE;AACxB,SAAO,cAAc,KAAK;;AAI5B,MAAK,MAAM,OAAO,6BAA6B;EAC7C,MAAM,YAAY,GAAG,OAAO;AAC5B,MAAI,WAAW,IAAI,UAAU,EAAE;AAC7B,UAAO,cAAc,UAAU;;;AAKnC,MAAK,MAAM,OAAO,6BAA6B;EAC7C,MAAM,YAAY,KAAK,MAAM,QAAQ,MAAM;AAC3C,MAAI,WAAW,IAAI,UAAU,EAAE;AAC7B,UAAO,cAAc,UAAU;;;AAInC,QAAO;;;;;AAMT,MAAa,uBAAuB,cAA+B,UAAU,WAAW,KAAK,IAAI,UAAU,WAAW,MAAM;;;;AAK5H,MAAa,uBAAuB,cAA+B,CAAC,oBAAoB,UAAU"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
let node_path = require("node:path");
|
|
3
|
+
node_path = require_chunk.__toESM(node_path);
|
|
4
|
+
let node_fs = require("node:fs");
|
|
5
|
+
node_fs = require_chunk.__toESM(node_fs);
|
|
6
|
+
|
|
7
|
+
//#region packages/common/src/utils/cached-fn.ts
|
|
8
|
+
const cachedFn = (fn) => {
|
|
9
|
+
let cached = null;
|
|
10
|
+
const ensure = () => (cached ??= { value: fn() }).value;
|
|
11
|
+
ensure.clear = () => {
|
|
12
|
+
cached = null;
|
|
13
|
+
};
|
|
14
|
+
return ensure;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region packages/common/src/utils/path.ts
|
|
19
|
+
/**
|
|
20
|
+
* File extensions to try when resolving module specifiers.
|
|
21
|
+
* Ordered by precedence: TypeScript, then JavaScript.
|
|
22
|
+
*/
|
|
23
|
+
const MODULE_EXTENSION_CANDIDATES = [
|
|
24
|
+
".ts",
|
|
25
|
+
".tsx",
|
|
26
|
+
".mts",
|
|
27
|
+
".cts",
|
|
28
|
+
".js",
|
|
29
|
+
".jsx",
|
|
30
|
+
".mjs",
|
|
31
|
+
".cjs"
|
|
32
|
+
];
|
|
33
|
+
/**
|
|
34
|
+
* Normalize path to use forward slashes (cross-platform).
|
|
35
|
+
* Ensures consistent path handling across platforms.
|
|
36
|
+
*/
|
|
37
|
+
const normalizePath = (value) => (0, node_path.normalize)(value).replace(/\\/g, "/");
|
|
38
|
+
/**
|
|
39
|
+
* Resolve a relative import specifier to an absolute file path.
|
|
40
|
+
* Tries the specifier as-is, with extensions, and as a directory with index files.
|
|
41
|
+
*
|
|
42
|
+
* @param from - Absolute path to the importing file
|
|
43
|
+
* @param specifier - Relative module specifier (must start with '.')
|
|
44
|
+
* @returns Absolute POSIX path to the resolved file, or null if not found
|
|
45
|
+
*/
|
|
46
|
+
const resolveRelativeImportWithExistenceCheck = ({ filePath, specifier }) => {
|
|
47
|
+
const base = (0, node_path.resolve)((0, node_path.dirname)(filePath), specifier);
|
|
48
|
+
if ((0, node_fs.existsSync)(base)) {
|
|
49
|
+
return normalizePath(base);
|
|
50
|
+
}
|
|
51
|
+
for (const ext of MODULE_EXTENSION_CANDIDATES) {
|
|
52
|
+
const candidate = `${base}${ext}`;
|
|
53
|
+
if ((0, node_fs.existsSync)(candidate)) {
|
|
54
|
+
return normalizePath(candidate);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
for (const ext of MODULE_EXTENSION_CANDIDATES) {
|
|
58
|
+
const candidate = (0, node_path.join)(base, `index${ext}`);
|
|
59
|
+
if ((0, node_fs.existsSync)(candidate)) {
|
|
60
|
+
return normalizePath(candidate);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return null;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Resolve a relative import specifier to an absolute file path.
|
|
67
|
+
* Tries the specifier as-is, with extensions, and as a directory with index files.
|
|
68
|
+
*
|
|
69
|
+
* @param from - Absolute path to the importing file
|
|
70
|
+
* @param specifier - Relative module specifier (must start with '.')
|
|
71
|
+
* @returns Absolute POSIX path to the resolved file, or null if not found
|
|
72
|
+
*/
|
|
73
|
+
const resolveRelativeImportWithReferences = ({ filePath, specifier, references }) => {
|
|
74
|
+
const base = (0, node_path.resolve)((0, node_path.dirname)(filePath), specifier);
|
|
75
|
+
if (references.has(base)) {
|
|
76
|
+
return normalizePath(base);
|
|
77
|
+
}
|
|
78
|
+
for (const ext of MODULE_EXTENSION_CANDIDATES) {
|
|
79
|
+
const candidate = `${base}${ext}`;
|
|
80
|
+
if (references.has(candidate)) {
|
|
81
|
+
return normalizePath(candidate);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
for (const ext of MODULE_EXTENSION_CANDIDATES) {
|
|
85
|
+
const candidate = (0, node_path.join)(base, `index${ext}`);
|
|
86
|
+
if (references.has(candidate)) {
|
|
87
|
+
return normalizePath(candidate);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return null;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Check if a module specifier is relative (starts with '.' or '..')
|
|
94
|
+
*/
|
|
95
|
+
const isRelativeSpecifier = (specifier) => specifier.startsWith("./") || specifier.startsWith("../");
|
|
96
|
+
/**
|
|
97
|
+
* Check if a module specifier is external (package name, not relative)
|
|
98
|
+
*/
|
|
99
|
+
const isExternalSpecifier = (specifier) => !isRelativeSpecifier(specifier);
|
|
100
|
+
|
|
101
|
+
//#endregion
|
|
102
|
+
Object.defineProperty(exports, 'MODULE_EXTENSION_CANDIDATES', {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return MODULE_EXTENSION_CANDIDATES;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, 'cachedFn', {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return cachedFn;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, 'isExternalSpecifier', {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return isExternalSpecifier;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, 'isRelativeSpecifier', {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return isRelativeSpecifier;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, 'normalizePath', {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () {
|
|
129
|
+
return normalizePath;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
Object.defineProperty(exports, 'resolveRelativeImportWithExistenceCheck', {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () {
|
|
135
|
+
return resolveRelativeImportWithExistenceCheck;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, 'resolveRelativeImportWithReferences', {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return resolveRelativeImportWithReferences;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
zod = require_chunk.__toESM(zod);
|
|
4
|
+
|
|
5
|
+
//#region packages/common/src/zod/schema-helper.ts
|
|
6
|
+
function defineSchemaFor() {
|
|
7
|
+
return (shape) => zod.z.object(shape).strict();
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
Object.defineProperty(exports, 'defineSchemaFor', {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () {
|
|
14
|
+
return defineSchemaFor;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zod-BPbnZc6i.js","names":[],"sources":["../src/zod/schema-helper.ts"],"sourcesContent":["import { z } from \"zod\";\n\n// biome-ignore lint/suspicious/noExplicitAny: abstract type\nexport type SchemaFor<TOutput> = z.ZodType<TOutput, any, any>;\n\nexport type ShapeFor<TOutput extends object> = { [K in keyof TOutput]-?: SchemaFor<TOutput[K]> };\n\nexport function defineSchemaFor<TOutput extends object>() {\n return <TShape extends ShapeFor<NoInfer<TOutput>>>(shape: TShape & { [K in Exclude<keyof TShape, keyof TOutput>]: never }) =>\n z.object(shape).strict();\n}\n"],"mappings":";;;AAOA,SAAgB,kBAA0C;AACxD,SAAmD,UACjD,EAAE,OAAO,MAAM,CAAC,QAAQ"}
|
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@soda-gql/common",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"private": false,
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "Shota Hatada",
|
|
12
|
+
"email": "shota.hatada@whatasoda.me",
|
|
13
|
+
"url": "https://github.com/whatasoda"
|
|
14
|
+
},
|
|
15
|
+
"main": "./dist/index.js",
|
|
16
|
+
"module": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"development": "./src/index.ts",
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"import": "./dist/index.js",
|
|
23
|
+
"require": "./dist/index.cjs",
|
|
24
|
+
"default": "./dist/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./portable": {
|
|
27
|
+
"development": "./src/portable/index.ts",
|
|
28
|
+
"types": "./dist/portable/index.d.ts",
|
|
29
|
+
"import": "./dist/portable/index.js",
|
|
30
|
+
"require": "./dist/portable/index.cjs",
|
|
31
|
+
"default": "./dist/portable/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./canonical-id": {
|
|
34
|
+
"development": "./src/canonical-id/index.ts",
|
|
35
|
+
"types": "./dist/canonical-id/index.d.ts",
|
|
36
|
+
"import": "./dist/canonical-id/index.js",
|
|
37
|
+
"require": "./dist/canonical-id/index.cjs",
|
|
38
|
+
"default": "./dist/canonical-id/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./utils": {
|
|
41
|
+
"development": "./src/utils/index.ts",
|
|
42
|
+
"types": "./dist/utils/index.d.ts",
|
|
43
|
+
"import": "./dist/utils/index.js",
|
|
44
|
+
"require": "./dist/utils/index.cjs",
|
|
45
|
+
"default": "./dist/utils/index.js"
|
|
46
|
+
},
|
|
47
|
+
"./zod": {
|
|
48
|
+
"development": "./src/zod/index.ts",
|
|
49
|
+
"types": "./dist/zod/index.d.ts",
|
|
50
|
+
"import": "./dist/zod/index.js",
|
|
51
|
+
"require": "./dist/zod/index.cjs",
|
|
52
|
+
"default": "./dist/zod/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./package.json": "./package.json"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"zod": "^4.1.11"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {},
|
|
60
|
+
"peerDependencies": {}
|
|
61
|
+
}
|