@ms-cloudpack/api-server 0.61.27 → 0.61.28
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/lib/types/LinkPath.d.ts +46 -0
- package/lib/types/LinkPath.d.ts.map +1 -1
- package/lib/types/LinkPath.js +22 -0
- package/lib/types/LinkPath.js.map +1 -1
- package/package.json +14 -14
package/lib/types/LinkPath.d.ts
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { LinkedPath } from '@ms-cloudpack/common-types';
|
|
3
|
+
export declare const ZodLinkPackageDefinition: z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
version: z.ZodString;
|
|
6
|
+
exports: z.ZodAny;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
name: string;
|
|
9
|
+
version: string;
|
|
10
|
+
exports?: any;
|
|
11
|
+
}, {
|
|
12
|
+
name: string;
|
|
13
|
+
version: string;
|
|
14
|
+
exports?: any;
|
|
15
|
+
}>;
|
|
3
16
|
export declare const ZodLinkedPath: z.ZodObject<{
|
|
4
17
|
path: z.ZodType<string, z.ZodTypeDef, string>;
|
|
5
18
|
rootPath: z.ZodType<string | undefined, z.ZodTypeDef, string | undefined>;
|
|
@@ -7,6 +20,17 @@ export declare const ZodLinkedPath: z.ZodObject<{
|
|
|
7
20
|
ignoredPackages: z.ZodType<string[] | undefined, z.ZodTypeDef, string[] | undefined>;
|
|
8
21
|
ignoreResolutions: z.ZodType<boolean | undefined, z.ZodTypeDef, boolean | undefined>;
|
|
9
22
|
resolveStrategy: z.ZodType<"dedupe" | "duplicate" | undefined, z.ZodTypeDef, "dedupe" | "duplicate" | undefined>;
|
|
23
|
+
remote: z.ZodType<{
|
|
24
|
+
resolveMap: import("@ms-cloudpack/common-types").ResolveMap;
|
|
25
|
+
hostUrl: string;
|
|
26
|
+
packages: import("@ms-cloudpack/common-types").SerializablePackageDefinitionsCache;
|
|
27
|
+
packageHashes: import("@ms-cloudpack/common-types").SerializablePackageHashesCache;
|
|
28
|
+
} | undefined, z.ZodTypeDef, {
|
|
29
|
+
resolveMap: import("@ms-cloudpack/common-types").ResolveMap;
|
|
30
|
+
hostUrl: string;
|
|
31
|
+
packages: import("@ms-cloudpack/common-types").SerializablePackageDefinitionsCache;
|
|
32
|
+
packageHashes: import("@ms-cloudpack/common-types").SerializablePackageHashesCache;
|
|
33
|
+
} | undefined>;
|
|
10
34
|
}, "strict", z.ZodTypeAny, LinkedPath, LinkedPath>;
|
|
11
35
|
export declare const ZodLinkPathInput: z.ZodObject<{
|
|
12
36
|
linkedPath: z.ZodObject<{
|
|
@@ -16,6 +40,17 @@ export declare const ZodLinkPathInput: z.ZodObject<{
|
|
|
16
40
|
ignoredPackages: z.ZodType<string[] | undefined, z.ZodTypeDef, string[] | undefined>;
|
|
17
41
|
ignoreResolutions: z.ZodType<boolean | undefined, z.ZodTypeDef, boolean | undefined>;
|
|
18
42
|
resolveStrategy: z.ZodType<"dedupe" | "duplicate" | undefined, z.ZodTypeDef, "dedupe" | "duplicate" | undefined>;
|
|
43
|
+
remote: z.ZodType<{
|
|
44
|
+
resolveMap: import("@ms-cloudpack/common-types").ResolveMap;
|
|
45
|
+
hostUrl: string;
|
|
46
|
+
packages: import("@ms-cloudpack/common-types").SerializablePackageDefinitionsCache;
|
|
47
|
+
packageHashes: import("@ms-cloudpack/common-types").SerializablePackageHashesCache;
|
|
48
|
+
} | undefined, z.ZodTypeDef, {
|
|
49
|
+
resolveMap: import("@ms-cloudpack/common-types").ResolveMap;
|
|
50
|
+
hostUrl: string;
|
|
51
|
+
packages: import("@ms-cloudpack/common-types").SerializablePackageDefinitionsCache;
|
|
52
|
+
packageHashes: import("@ms-cloudpack/common-types").SerializablePackageHashesCache;
|
|
53
|
+
} | undefined>;
|
|
19
54
|
}, "strict", z.ZodTypeAny, LinkedPath, LinkedPath>;
|
|
20
55
|
}, "strip", z.ZodTypeAny, {
|
|
21
56
|
linkedPath: LinkedPath;
|
|
@@ -32,6 +67,17 @@ export declare const ZodLinkPathOutput: z.ZodObject<{
|
|
|
32
67
|
ignoredPackages: z.ZodType<string[] | undefined, z.ZodTypeDef, string[] | undefined>;
|
|
33
68
|
ignoreResolutions: z.ZodType<boolean | undefined, z.ZodTypeDef, boolean | undefined>;
|
|
34
69
|
resolveStrategy: z.ZodType<"dedupe" | "duplicate" | undefined, z.ZodTypeDef, "dedupe" | "duplicate" | undefined>;
|
|
70
|
+
remote: z.ZodType<{
|
|
71
|
+
resolveMap: import("@ms-cloudpack/common-types").ResolveMap;
|
|
72
|
+
hostUrl: string;
|
|
73
|
+
packages: import("@ms-cloudpack/common-types").SerializablePackageDefinitionsCache;
|
|
74
|
+
packageHashes: import("@ms-cloudpack/common-types").SerializablePackageHashesCache;
|
|
75
|
+
} | undefined, z.ZodTypeDef, {
|
|
76
|
+
resolveMap: import("@ms-cloudpack/common-types").ResolveMap;
|
|
77
|
+
hostUrl: string;
|
|
78
|
+
packages: import("@ms-cloudpack/common-types").SerializablePackageDefinitionsCache;
|
|
79
|
+
packageHashes: import("@ms-cloudpack/common-types").SerializablePackageHashesCache;
|
|
80
|
+
} | undefined>;
|
|
35
81
|
}, "strict", z.ZodTypeAny, LinkedPath, LinkedPath>, "many">;
|
|
36
82
|
}, "strip", z.ZodTypeAny, {
|
|
37
83
|
resolveMap: import("@ms-cloudpack/common-types").ResolveMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkPath.d.ts","sourceRoot":"","sources":["../../src/types/LinkPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"LinkPath.d.ts","sourceRoot":"","sources":["../../src/types/LinkPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAmB,MAAM,KAAK,CAAC;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAU7D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAAwE,CAAC;AAE9G,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;kDAuBxB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;EAA0C,CAAC;AAExE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE7D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
package/lib/types/LinkPath.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { matchingZodObject } from '../utilities/matchingZodObject.js';
|
|
3
3
|
import { ZodResolveMap } from '../types/ZodResolveMap.js';
|
|
4
|
+
const ZodPackageRecord = (ZodPackageJson) => z.record(z.union([ZodPackageJson, z.undefined()]));
|
|
5
|
+
const ZodPackageHashesEntry = z.object({
|
|
6
|
+
browser: z.record(z.string()),
|
|
7
|
+
node: z.record(z.string()),
|
|
8
|
+
});
|
|
9
|
+
export const ZodLinkPackageDefinition = z.object({ name: z.string(), version: z.string(), exports: z.any() });
|
|
4
10
|
export const ZodLinkedPath = matchingZodObject({
|
|
5
11
|
path: z.string(),
|
|
6
12
|
rootPath: z.string().optional(),
|
|
@@ -8,6 +14,22 @@ export const ZodLinkedPath = matchingZodObject({
|
|
|
8
14
|
ignoredPackages: z.string().array().optional(),
|
|
9
15
|
ignoreResolutions: z.boolean().optional(),
|
|
10
16
|
resolveStrategy: z.enum(['dedupe', 'duplicate']).optional(),
|
|
17
|
+
remote: z
|
|
18
|
+
.object({
|
|
19
|
+
resolveMap: ZodResolveMap,
|
|
20
|
+
hostUrl: z.string(),
|
|
21
|
+
packages: z.object({
|
|
22
|
+
// Dummy package json as start should not require any non transformed package definitions
|
|
23
|
+
definitions: ZodPackageRecord(z.object({})),
|
|
24
|
+
// For linked packages, we need name and version across Cloudpack, and the exports for the import map.
|
|
25
|
+
transformedDefinitions: ZodPackageRecord(ZodLinkPackageDefinition),
|
|
26
|
+
}),
|
|
27
|
+
packageHashes: z.object({
|
|
28
|
+
hashesWithSource: ZodPackageHashesEntry,
|
|
29
|
+
hashesWithNoSource: ZodPackageHashesEntry,
|
|
30
|
+
}),
|
|
31
|
+
})
|
|
32
|
+
.optional(),
|
|
11
33
|
});
|
|
12
34
|
export const ZodLinkPathInput = z.object({ linkedPath: ZodLinkedPath });
|
|
13
35
|
export const ZodLinkPathOutput = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkPath.js","sourceRoot":"","sources":["../../src/types/LinkPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"LinkPath.js","sourceRoot":"","sources":["../../src/types/LinkPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAmB,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,MAAM,gBAAgB,GAAG,CAAC,cAA0B,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;AAE5G,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC3B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,IA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M,CAAC;IACxC,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC;CACpC,CAAC,CAAC","sourcesContent":["import { z, type ZodTypeAny } from 'zod';\nimport { matchingZodObject } from '../utilities/matchingZodObject.js';\nimport type { LinkedPath } from '@ms-cloudpack/common-types';\nimport { ZodResolveMap } from '../types/ZodResolveMap.js';\n\nconst ZodPackageRecord = (ZodPackageJson: ZodTypeAny) => z.record(z.union([ZodPackageJson, z.undefined()]));\n\nconst ZodPackageHashesEntry = z.object({\n browser: z.record(z.string()),\n node: z.record(z.string()),\n});\n\nexport const ZodLinkPackageDefinition = z.object({ name: z.string(), version: z.string(), exports: z.any() });\n\nexport const ZodLinkedPath = matchingZodObject<LinkedPath>({\n path: z.string(),\n rootPath: z.string().optional(),\n includeAll: z.boolean().optional(),\n ignoredPackages: z.string().array().optional(),\n ignoreResolutions: z.boolean().optional(),\n resolveStrategy: z.enum(['dedupe', 'duplicate']).optional(),\n remote: z\n .object({\n resolveMap: ZodResolveMap,\n hostUrl: z.string(),\n packages: z.object({\n // Dummy package json as start should not require any non transformed package definitions\n definitions: ZodPackageRecord(z.object({})),\n // For linked packages, we need name and version across Cloudpack, and the exports for the import map.\n transformedDefinitions: ZodPackageRecord(ZodLinkPackageDefinition),\n }),\n packageHashes: z.object({\n hashesWithSource: ZodPackageHashesEntry,\n hashesWithNoSource: ZodPackageHashesEntry,\n }),\n })\n .optional(),\n});\n\nexport const ZodLinkPathInput = z.object({ linkedPath: ZodLinkedPath });\n\nexport type LinkPathInput = z.infer<typeof ZodLinkPathInput>;\n\nexport const ZodLinkPathOutput = z.object({\n resolveMap: ZodResolveMap,\n linkedPaths: z.array(ZodLinkedPath),\n});\n\nexport type LinkPathOutput = z.infer<typeof ZodLinkPathOutput>;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/api-server",
|
|
3
|
-
"version": "0.61.
|
|
3
|
+
"version": "0.61.28",
|
|
4
4
|
"description": "An implementation of the API server that does interacts with a task scheduler.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -23,25 +23,25 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ms-cloudpack/bundler": "^0.24.
|
|
27
|
-
"@ms-cloudpack/common-types": "^0.24.
|
|
28
|
-
"@ms-cloudpack/config": "^0.33.
|
|
29
|
-
"@ms-cloudpack/create-express-app": "^1.10.
|
|
26
|
+
"@ms-cloudpack/bundler": "^0.24.23",
|
|
27
|
+
"@ms-cloudpack/common-types": "^0.24.15",
|
|
28
|
+
"@ms-cloudpack/config": "^0.33.31",
|
|
29
|
+
"@ms-cloudpack/create-express-app": "^1.10.27",
|
|
30
30
|
"@ms-cloudpack/data-bus": "^0.4.3",
|
|
31
31
|
"@ms-cloudpack/environment": "^0.1.1",
|
|
32
|
-
"@ms-cloudpack/esm-stub-utilities": "^0.14.
|
|
32
|
+
"@ms-cloudpack/esm-stub-utilities": "^0.14.21",
|
|
33
33
|
"@ms-cloudpack/file-watcher": "^0.2.0",
|
|
34
|
-
"@ms-cloudpack/import-map": "^0.10.
|
|
34
|
+
"@ms-cloudpack/import-map": "^0.10.13",
|
|
35
35
|
"@ms-cloudpack/json-utilities": "^0.1.10",
|
|
36
|
-
"@ms-cloudpack/package-hashes": "^0.7.
|
|
37
|
-
"@ms-cloudpack/package-utilities": "^12.2.
|
|
36
|
+
"@ms-cloudpack/package-hashes": "^0.7.43",
|
|
37
|
+
"@ms-cloudpack/package-utilities": "^12.2.3",
|
|
38
38
|
"@ms-cloudpack/path-string-parsing": "^1.2.7",
|
|
39
|
-
"@ms-cloudpack/path-utilities": "^3.0.
|
|
40
|
-
"@ms-cloudpack/remote-cache": "^0.11.
|
|
39
|
+
"@ms-cloudpack/path-utilities": "^3.0.12",
|
|
40
|
+
"@ms-cloudpack/remote-cache": "^0.11.6",
|
|
41
41
|
"@ms-cloudpack/task-reporter": "^0.16.1",
|
|
42
|
-
"@ms-cloudpack/telemetry": "^0.11.
|
|
43
|
-
"@trpc/client": "^11.
|
|
44
|
-
"@trpc/server": "^11.
|
|
42
|
+
"@ms-cloudpack/telemetry": "^0.11.10",
|
|
43
|
+
"@trpc/client": "^11.1.1",
|
|
44
|
+
"@trpc/server": "^11.1.1",
|
|
45
45
|
"cors": "^2.8.5",
|
|
46
46
|
"es-module-lexer": "^1.4.1",
|
|
47
47
|
"filenamify": "^6.0.0",
|