@ms-cloudpack/api-server 0.63.9 → 0.63.11

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.
@@ -13,7 +13,7 @@
13
13
  * ```
14
14
  */
15
15
  export type BundleInfo = {
16
- [entryPath: string]: BundleEntryInfo;
16
+ [entryPath: string]: BundleEntryInfo | undefined;
17
17
  };
18
18
  /**
19
19
  * Info about a bundled file's produced export names, and the import names it consumes
@@ -1 +1 @@
1
- {"version":3,"file":"BundleInfo.d.ts","sourceRoot":"","sources":["../../src/types/BundleInfo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,SAAS,EAAE,MAAM,GAAG,eAAe,CAAC;CACtC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,uDAAuD;IACvD,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,6EAA6E;IAC7E,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,0BAA0B;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,0EAA0E;IAC1E,UAAU,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,0EAA0E;IAC1E,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,oGAAoG;IACpG,WAAW,EAAE,MAAM,CAAC;IACpB,qDAAqD;IACrD,eAAe,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
1
+ {"version":3,"file":"BundleInfo.d.ts","sourceRoot":"","sources":["../../src/types/BundleInfo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,SAAS,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAAC;CAClD,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,uDAAuD;IACvD,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,6EAA6E;IAC7E,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,0BAA0B;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,0EAA0E;IAC1E,UAAU,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,0EAA0E;IAC1E,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,oGAAoG;IACpG,WAAW,EAAE,MAAM,CAAC;IACpB,qDAAqD;IACrD,eAAe,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BundleInfo.js","sourceRoot":"","sources":["../../src/types/BundleInfo.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * BundleInfo is a map of entry file paths to produce/consume information.\n * The keys are paths from the exports map.\n * e.g.:\n * ```json\n * {\n * \".\": {\n * \"bundlePath\": \"./index.js\",\n * \"produces\": [\"bar\"],\n * \"consumes\": [{ \"packageName\": \"foo\", \"importPath\": \"foo\", \"names\": [ \"foo\" ] }],\n * },\n * }\n * ```\n */\nexport type BundleInfo = {\n [entryPath: string]: BundleEntryInfo;\n};\n\n/**\n * Info about a bundled file's produced export names, and the import names it consumes\n * from other packages.\n */\nexport type BundleEntryInfo = {\n /** Relative path to the bundled file from the output root. */\n bundlePath: string;\n /** Export names produced by this path. */\n produces: string[];\n /** Names from other packages consumed by this path. */\n consumes: BundleEntryConsumes[];\n /** Dynamic (async) imports with non-literal paths consumed by this entry. */\n dynamicImports?: DynamicImport[];\n};\n\n/**\n * Info about imports consumed from a path in another package.\n */\nexport type BundleEntryConsumes = {\n /** Name of the package */\n packageName: string;\n /** Path consumed within the package (this will be the exports map key) */\n importPath: string;\n /** Export names consumed */\n names: string[];\n};\n\nexport type ConsumedImport = {\n /** Package name the import comes from, or '.' for the current package. */\n packageName: string;\n importPath: string;\n names: string[];\n};\n\n/**\n * Represents a dynamic (async) import statement with a non-literal path.\n */\nexport type DynamicImport = {\n /** Package name the import comes from (if it can be determined), or '.' for the current package. */\n packageName: string;\n /** Full import specifier, including any backticks */\n importSpecifier: string;\n /**\n * Relative path from package path to file with import.\n * Will be original source file if it could be determined from a sourcemap.\n */\n importOrigin: string;\n};\n"]}
1
+ {"version":3,"file":"BundleInfo.js","sourceRoot":"","sources":["../../src/types/BundleInfo.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * BundleInfo is a map of entry file paths to produce/consume information.\n * The keys are paths from the exports map.\n * e.g.:\n * ```json\n * {\n * \".\": {\n * \"bundlePath\": \"./index.js\",\n * \"produces\": [\"bar\"],\n * \"consumes\": [{ \"packageName\": \"foo\", \"importPath\": \"foo\", \"names\": [ \"foo\" ] }],\n * },\n * }\n * ```\n */\nexport type BundleInfo = {\n [entryPath: string]: BundleEntryInfo | undefined;\n};\n\n/**\n * Info about a bundled file's produced export names, and the import names it consumes\n * from other packages.\n */\nexport type BundleEntryInfo = {\n /** Relative path to the bundled file from the output root. */\n bundlePath: string;\n /** Export names produced by this path. */\n produces: string[];\n /** Names from other packages consumed by this path. */\n consumes: BundleEntryConsumes[];\n /** Dynamic (async) imports with non-literal paths consumed by this entry. */\n dynamicImports?: DynamicImport[];\n};\n\n/**\n * Info about imports consumed from a path in another package.\n */\nexport type BundleEntryConsumes = {\n /** Name of the package */\n packageName: string;\n /** Path consumed within the package (this will be the exports map key) */\n importPath: string;\n /** Export names consumed */\n names: string[];\n};\n\nexport type ConsumedImport = {\n /** Package name the import comes from, or '.' for the current package. */\n packageName: string;\n importPath: string;\n names: string[];\n};\n\n/**\n * Represents a dynamic (async) import statement with a non-literal path.\n */\nexport type DynamicImport = {\n /** Package name the import comes from (if it can be determined), or '.' for the current package. */\n packageName: string;\n /** Full import specifier, including any backticks */\n importSpecifier: string;\n /**\n * Relative path from package path to file with import.\n * Will be original source file if it could be determined from a sourcemap.\n */\n importOrigin: string;\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"getConsumedDependencies.d.ts","sourceRoot":"","sources":["../../src/utilities/getConsumedDependencies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,CAWrE"}
1
+ {"version":3,"file":"getConsumedDependencies.d.ts","sourceRoot":"","sources":["../../src/utilities/getConsumedDependencies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,CAcrE"}
@@ -7,6 +7,9 @@ export function getConsumedDependencies(info) {
7
7
  const consumedDependencies = new Set();
8
8
  // Iterate through imports and find their path from the resolve map.
9
9
  for (const entryInfo of Object.values(info)) {
10
+ if (!entryInfo) {
11
+ continue; // This is to make type-checking happy
12
+ }
10
13
  // iterate through all package names of result.info.consumes
11
14
  for (const consume of entryInfo.consumes) {
12
15
  consumedDependencies.add(consume.packageName);
@@ -1 +1 @@
1
- {"version":3,"file":"getConsumedDependencies.js","sourceRoot":"","sources":["../../src/utilities/getConsumedDependencies.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAAgB;IACtD,MAAM,oBAAoB,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/C,oEAAoE;IACpE,KAAK,MAAM,SAAS,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5C,4DAA4D;QAC5D,KAAK,MAAM,OAAO,IAAI,SAAS,CAAC,QAAQ,EAAE,CAAC;YACzC,oBAAoB,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAChD,CAAC;IACH,CAAC;IAED,OAAO,oBAAoB,CAAC;AAC9B,CAAC","sourcesContent":["import type { BundleInfo } from '../types/BundleInfo.js';\n\n/**\n * Get the set of dependencies consumed by the given bundle info.\n * @param info - The bundle info.\n * @returns The deduplicated set of dependencies consumed by the given bundle info.\n */\nexport function getConsumedDependencies(info: BundleInfo): Set<string> {\n const consumedDependencies = new Set<string>();\n // Iterate through imports and find their path from the resolve map.\n for (const entryInfo of Object.values(info)) {\n // iterate through all package names of result.info.consumes\n for (const consume of entryInfo.consumes) {\n consumedDependencies.add(consume.packageName);\n }\n }\n\n return consumedDependencies;\n}\n"]}
1
+ {"version":3,"file":"getConsumedDependencies.js","sourceRoot":"","sources":["../../src/utilities/getConsumedDependencies.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAAgB;IACtD,MAAM,oBAAoB,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/C,oEAAoE;IACpE,KAAK,MAAM,SAAS,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5C,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,SAAS,CAAC,sCAAsC;QAClD,CAAC;QACD,4DAA4D;QAC5D,KAAK,MAAM,OAAO,IAAI,SAAS,CAAC,QAAQ,EAAE,CAAC;YACzC,oBAAoB,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAChD,CAAC;IACH,CAAC;IAED,OAAO,oBAAoB,CAAC;AAC9B,CAAC","sourcesContent":["import type { BundleInfo } from '../types/BundleInfo.js';\n\n/**\n * Get the set of dependencies consumed by the given bundle info.\n * @param info - The bundle info.\n * @returns The deduplicated set of dependencies consumed by the given bundle info.\n */\nexport function getConsumedDependencies(info: BundleInfo): Set<string> {\n const consumedDependencies = new Set<string>();\n // Iterate through imports and find their path from the resolve map.\n for (const entryInfo of Object.values(info)) {\n if (!entryInfo) {\n continue; // This is to make type-checking happy\n }\n // iterate through all package names of result.info.consumes\n for (const consume of entryInfo.consumes) {\n consumedDependencies.add(consume.packageName);\n }\n }\n\n return consumedDependencies;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"getConsumedPaths.d.ts","sourceRoot":"","sources":["../../src/utilities/getConsumedPaths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAY9E"}
1
+ {"version":3,"file":"getConsumedPaths.d.ts","sourceRoot":"","sources":["../../src/utilities/getConsumedPaths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAe9E"}
@@ -7,6 +7,9 @@ export function getConsumedPaths(info) {
7
7
  const consumedPaths = {};
8
8
  // Iterate through imports and find their path from the resolve map.
9
9
  for (const entryInfo of Object.values(info)) {
10
+ if (!entryInfo) {
11
+ continue; // This is to make type-checking happy
12
+ }
10
13
  // iterate through all package names of result.info.consumes
11
14
  for (const consume of entryInfo.consumes) {
12
15
  consumedPaths[consume.packageName] ??= new Set();
@@ -1 +1 @@
1
- {"version":3,"file":"getConsumedPaths.js","sourceRoot":"","sources":["../../src/utilities/getConsumedPaths.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAgB;IAC/C,MAAM,aAAa,GAAgC,EAAE,CAAC;IACtD,oEAAoE;IACpE,KAAK,MAAM,SAAS,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5C,4DAA4D;QAC5D,KAAK,MAAM,OAAO,IAAI,SAAS,CAAC,QAAQ,EAAE,CAAC;YACzC,aAAa,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,IAAI,GAAG,EAAE,CAAC;YACjD,aAAa,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAC7D,CAAC;IACH,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["import type { BundleInfo } from '../types/BundleInfo.js';\n\n/**\n * Get a record of the consumed dependencies and their import paths by the given bundle info.\n * @param info - The bundle info.\n * @returns The record of consumed dependencies and their import paths.\n */\nexport function getConsumedPaths(info: BundleInfo): Record<string, Set<string>> {\n const consumedPaths: Record<string, Set<string>> = {};\n // Iterate through imports and find their path from the resolve map.\n for (const entryInfo of Object.values(info)) {\n // iterate through all package names of result.info.consumes\n for (const consume of entryInfo.consumes) {\n consumedPaths[consume.packageName] ??= new Set();\n consumedPaths[consume.packageName].add(consume.importPath);\n }\n }\n\n return consumedPaths;\n}\n"]}
1
+ {"version":3,"file":"getConsumedPaths.js","sourceRoot":"","sources":["../../src/utilities/getConsumedPaths.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAgB;IAC/C,MAAM,aAAa,GAAgC,EAAE,CAAC;IACtD,oEAAoE;IACpE,KAAK,MAAM,SAAS,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5C,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,SAAS,CAAC,sCAAsC;QAClD,CAAC;QACD,4DAA4D;QAC5D,KAAK,MAAM,OAAO,IAAI,SAAS,CAAC,QAAQ,EAAE,CAAC;YACzC,aAAa,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,IAAI,GAAG,EAAE,CAAC;YACjD,aAAa,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAC7D,CAAC;IACH,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["import type { BundleInfo } from '../types/BundleInfo.js';\n\n/**\n * Get a record of the consumed dependencies and their import paths by the given bundle info.\n * @param info - The bundle info.\n * @returns The record of consumed dependencies and their import paths.\n */\nexport function getConsumedPaths(info: BundleInfo): Record<string, Set<string>> {\n const consumedPaths: Record<string, Set<string>> = {};\n // Iterate through imports and find their path from the resolve map.\n for (const entryInfo of Object.values(info)) {\n if (!entryInfo) {\n continue; // This is to make type-checking happy\n }\n // iterate through all package names of result.info.consumes\n for (const consume of entryInfo.consumes) {\n consumedPaths[consume.packageName] ??= new Set();\n consumedPaths[consume.packageName].add(consume.importPath);\n }\n }\n\n return consumedPaths;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/api-server",
3
- "version": "0.63.9",
3
+ "version": "0.63.11",
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,23 +23,23 @@
23
23
  }
24
24
  },
25
25
  "dependencies": {
26
- "@ms-cloudpack/bundler": "^0.25.11",
26
+ "@ms-cloudpack/bundler": "^0.25.13",
27
27
  "@ms-cloudpack/common-types": "^0.24.20",
28
- "@ms-cloudpack/config": "^0.35.8",
29
- "@ms-cloudpack/create-express-app": "^1.10.34",
28
+ "@ms-cloudpack/config": "^0.35.10",
29
+ "@ms-cloudpack/create-express-app": "^1.10.35",
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.35",
33
- "@ms-cloudpack/file-watcher": "^0.3.5",
34
- "@ms-cloudpack/import-map": "^0.10.26",
32
+ "@ms-cloudpack/esm-stub-utilities": "^0.14.37",
33
+ "@ms-cloudpack/file-watcher": "^0.3.6",
34
+ "@ms-cloudpack/import-map": "^0.10.28",
35
35
  "@ms-cloudpack/json-utilities": "^0.1.10",
36
- "@ms-cloudpack/package-hashes": "^0.8.9",
37
- "@ms-cloudpack/package-utilities": "^12.3.10",
36
+ "@ms-cloudpack/package-hashes": "^0.8.11",
37
+ "@ms-cloudpack/package-utilities": "^12.3.12",
38
38
  "@ms-cloudpack/path-string-parsing": "^1.2.7",
39
- "@ms-cloudpack/path-utilities": "^3.1.5",
40
- "@ms-cloudpack/remote-cache": "^0.11.20",
41
- "@ms-cloudpack/task-reporter": "^0.16.3",
42
- "@ms-cloudpack/telemetry": "^0.11.22",
39
+ "@ms-cloudpack/path-utilities": "^3.1.6",
40
+ "@ms-cloudpack/remote-cache": "^0.11.22",
41
+ "@ms-cloudpack/task-reporter": "^0.17.0",
42
+ "@ms-cloudpack/telemetry": "^0.11.24",
43
43
  "@trpc/client": "^11.1.1",
44
44
  "@trpc/server": "^11.1.1",
45
45
  "cors": "^2.8.5",