@ms-cloudpack/api-server 0.20.3 → 0.21.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/lib/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export type { TaskStartDescription } from './types/TaskStartDescription.js';
|
|
|
11
11
|
export type { CloudpackServer } from './trpc/createCloudpackServer.js';
|
|
12
12
|
export type { CreateHtmlFunction } from './types/CreateHtmlFunction.js';
|
|
13
13
|
export type { CreateHtmlOptions } from './types/CreateHtmlOptions.js';
|
|
14
|
-
export type { CreateHtmlResult
|
|
14
|
+
export type { CreateHtmlResult } from './types/CreateHtmlResult.js';
|
|
15
15
|
export type { CreateHtmlScript } from './types/CreateHtmlScript.js';
|
|
16
16
|
export { TaskRunner } from './utilities/TaskRunner.js';
|
|
17
17
|
export { reloadCountSource, taskListSource, taskStatsSource } from './data/busSources.js';
|
|
@@ -22,7 +22,7 @@ export { ZodTaskDescription } from './types/TaskDescription.js';
|
|
|
22
22
|
export { ZodTaskEndDescription } from './types/TaskEndDescription.js';
|
|
23
23
|
export { ZodTaskMessage } from './types/TaskMessage.js';
|
|
24
24
|
export { ZodTaskStartDescription } from './types/TaskStartDescription.js';
|
|
25
|
-
export { getLocalCachePath } from './utilities/getCachePath.js';
|
|
25
|
+
export { getCachePath, getLocalCachePath } from './utilities/getCachePath.js';
|
|
26
26
|
export type { AddPackageOverrideInput } from './apis/addPackageOverride.js';
|
|
27
27
|
export type { OpenCodeEditorInput } from './apis/openCodeEditor.js';
|
|
28
28
|
export type { OpenFilePathInput } from './apis/openFilePath.js';
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,YAAY,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,YAAY,EA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A6B,EAAE,MAAM,8CAA8C,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAInE,YAAY,EACV,yBAAyB,EACzB,0BAA0B,EAC1B,gCAAgC,GACjC,MAAM,gCAAgC,CAAC;AACxC,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,YAAY,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,YAAY,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -7,7 +7,7 @@ export { ZodTaskDescription } from './types/TaskDescription.js';
|
|
|
7
7
|
export { ZodTaskEndDescription } from './types/TaskEndDescription.js';
|
|
8
8
|
export { ZodTaskMessage } from './types/TaskMessage.js';
|
|
9
9
|
export { ZodTaskStartDescription } from './types/TaskStartDescription.js';
|
|
10
|
-
export { getLocalCachePath } from './utilities/getCachePath.js';
|
|
10
|
+
export { getCachePath, getLocalCachePath } from './utilities/getCachePath.js';
|
|
11
11
|
// Exporting below modules temporarily until we start using ensurePackageBundled api for all bundle operations
|
|
12
12
|
export { getBundleDetails } from './utilities/getBundleDetails.js';
|
|
13
13
|
export { bundleTask } from './utilities/bundleTask.js';
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,E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aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC","sourcesContent":["export type { ApiServer } from './types/ApiServer.js';\nexport type { Context } from './types/Context.js';\nexport type { Session } from './types/Session.js';\nexport type { TaskStats } from './types/TaskStats.js';\nexport type { Task } from './types/Task.js';\nexport type { TaskDescription } from './types/TaskDescription.js';\nexport type { TaskEndDescription } from './types/TaskEndDescription.js';\nexport type { TaskMessage } from './types/TaskMessage.js';\nexport type { TaskOptions } from './types/TaskOptions.js';\nexport type { TaskStartDescription } from './types/TaskStartDescription.js';\nexport type { CloudpackServer } from './trpc/createCloudpackServer.js';\n\nexport type { CreateHtmlFunction } from './types/CreateHtmlFunction.js';\nexport type { CreateHtmlOptions } from './types/CreateHtmlOptions.js';\nexport type { CreateHtmlResult } from './types/CreateHtmlResult.js';\nexport type { CreateHtmlScript } from './types/CreateHtmlScript.js';\n\nexport { TaskRunner } from './utilities/TaskRunner.js';\nexport { reloadCountSource, taskListSource, taskStatsSource } from './data/busSources.js';\nexport { startApiServer } from './startApiServer.js';\nexport { createCloudpackClient } from './trpc/createCloudpackClient.js';\nexport { createCloudpackServer } from './trpc/createCloudpackServer.js';\nexport { ZodTaskDescription } from './types/TaskDescription.js';\nexport { ZodTaskEndDescription } from './types/TaskEndDescription.js';\nexport { ZodTaskMessage } from './types/TaskMessage.js';\nexport { ZodTaskStartDescription } from './types/TaskStartDescription.js';\nexport { getCachePath, getLocalCachePath } from './utilities/getCachePath.js';\n\n// API types\nexport type { AddPackageOverrideInput } from './apis/addPackageOverride.js';\nexport type { OpenCodeEditorInput } from './apis/openCodeEditor.js';\nexport type { OpenFilePathInput } from './apis/openFilePath.js';\nexport type { ReportMetricInput } from './apis/reportMetric.js';\nexport type { ValidatePackageOverrideInput, ValidatePackageOverrideOutput } from './apis/validatePackageOverride.js';\n\n// Exporting below modules temporarily until we start using ensurePackageBundled api for all bundle operations\nexport { getBundleDetails } from './utilities/getBundleDetails.js';\nexport { bundleTask } from './utilities/bundleTask.js';\nexport { createBundleTask } from './utilities/createBundleTask.js';\nexport { createBundleRequestForPackage } from './utilities/createBundleRequestForPackage.js';\nexport { findImports } from './utilities/findImports.js';\n\nexport { createSession } from './common/createSession.js';\nexport { parseRequestInfo } from './utilities/parseRequestInfo.js';\n\n// TODO: delete these type exports once API reporting of \"forgotten\" exports is enabled\n// (they're not used and don't really need to be visible in the API)\nexport type {\n EnsurePackageBundledInput,\n EnsurePackageBundledOutput,\n EnsurePackageBundledOutputResult,\n} from './apis/ensurePackageBundled.js';\nexport type { BundleRequest } from './types/BundleRequest.js';\nexport type { BundleTaskOptions } from './types/BundleTaskOptions.js';\nexport type { OverrideOptions } from './types/OverrideOptions.js';\n"]}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a custom HtmlResult object returned from running the renderScript for a Route
|
|
3
|
-
*/
|
|
4
|
-
export type CustomHtmlResult = {
|
|
5
|
-
type: 'static-html' | 'js' | 'json';
|
|
6
|
-
content: string;
|
|
7
|
-
};
|
|
8
1
|
/**
|
|
9
2
|
* The expected result of the createHtml custom server render function.
|
|
10
3
|
*/
|
|
11
4
|
export type CreateHtmlResult = string | {
|
|
12
|
-
|
|
13
|
-
statusCode
|
|
14
|
-
|
|
5
|
+
content: string;
|
|
6
|
+
statusCode?: number;
|
|
7
|
+
contentType?: string;
|
|
8
|
+
};
|
|
15
9
|
//# sourceMappingURL=CreateHtmlResult.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateHtmlResult.d.ts","sourceRoot":"","sources":["../../src/types/CreateHtmlResult.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"CreateHtmlResult.d.ts","sourceRoot":"","sources":["../../src/types/CreateHtmlResult.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN;IACE,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateHtmlResult.js","sourceRoot":"","sources":["../../src/types/CreateHtmlResult.ts"],"names":[],"mappings":"","sourcesContent":["/**\n *
|
|
1
|
+
{"version":3,"file":"CreateHtmlResult.js","sourceRoot":"","sources":["../../src/types/CreateHtmlResult.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * The expected result of the createHtml custom server render function.\n */\nexport type CreateHtmlResult =\n | string\n | {\n content: string;\n statusCode?: number;\n contentType?: string;\n };\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/api-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"description": "An implementation of the API server that does interacts with a task scheduler.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"@lage-run/scheduler": "^1.1.9",
|
|
26
26
|
"@lage-run/target-graph": "^0.8.7",
|
|
27
27
|
"@lage-run/hasher": "^1.0.5",
|
|
28
|
-
"@ms-cloudpack/bundler": "^0.14.
|
|
28
|
+
"@ms-cloudpack/bundler": "^0.14.19",
|
|
29
29
|
"@ms-cloudpack/bundler-types": "^0.19.1",
|
|
30
|
-
"@ms-cloudpack/config": "^0.
|
|
30
|
+
"@ms-cloudpack/config": "^0.13.0",
|
|
31
31
|
"@ms-cloudpack/create-express-app": "^1.3.11",
|
|
32
32
|
"@ms-cloudpack/data-bus": "^0.4.0",
|
|
33
33
|
"@ms-cloudpack/file-watcher": "^0.1.0",
|