@ms-cloudpack/api-server 0.60.0 → 0.60.2
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/apis/addPackageOverride.d.ts +3 -38
- package/lib/apis/addPackageOverride.d.ts.map +1 -1
- package/lib/apis/addPackageOverride.js +2 -13
- package/lib/apis/addPackageOverride.js.map +1 -1
- package/lib/apis/openConfigEditor.d.ts.map +1 -1
- package/lib/apis/openConfigEditor.js +5 -2
- package/lib/apis/openConfigEditor.js.map +1 -1
- package/lib/apis/validatePackageOverride.d.ts +6 -31
- package/lib/apis/validatePackageOverride.d.ts.map +1 -1
- package/lib/apis/validatePackageOverride.js +3 -2
- package/lib/apis/validatePackageOverride.js.map +1 -1
- package/lib/data/busSources.d.ts +18 -292
- package/lib/data/busSources.d.ts.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/types/TaskDescription.d.ts +14 -224
- package/lib/types/TaskDescription.d.ts.map +1 -1
- package/lib/types/TaskDescription.js +2 -2
- package/lib/types/TaskDescription.js.map +1 -1
- package/lib/types/TaskEndDescription.d.ts +14 -224
- package/lib/types/TaskEndDescription.d.ts.map +1 -1
- package/lib/types/TaskList.d.ts +18 -292
- package/lib/types/TaskList.d.ts.map +1 -1
- package/lib/types/TaskMessage.d.ts +11 -108
- package/lib/types/TaskMessage.d.ts.map +1 -1
- package/lib/types/TaskMessage.js +3 -2
- package/lib/types/TaskMessage.js.map +1 -1
- package/lib/types/TaskMessageLocation.d.ts +6 -13
- package/lib/types/TaskMessageLocation.d.ts.map +1 -1
- package/lib/types/TaskMessageLocation.js +2 -1
- package/lib/types/TaskMessageLocation.js.map +1 -1
- package/lib/utilities/TaskRunner.d.ts.map +1 -1
- package/lib/utilities/TaskRunner.js +7 -1
- package/lib/utilities/TaskRunner.js.map +1 -1
- package/lib/utilities/matchingZodObject.d.ts +4 -0
- package/lib/utilities/matchingZodObject.d.ts.map +1 -1
- package/lib/utilities/matchingZodObject.js +4 -0
- package/lib/utilities/matchingZodObject.js.map +1 -1
- package/lib/utilities/writeStubForDensityEntries.d.ts.map +1 -1
- package/lib/utilities/writeStubForDensityEntries.js +2 -1
- package/lib/utilities/writeStubForDensityEntries.js.map +1 -1
- package/package.json +1 -1
- package/lib/types/TaskResponse.d.ts +0 -337
- package/lib/types/TaskResponse.d.ts.map +0 -1
- package/lib/types/TaskResponse.js +0 -8
- package/lib/types/TaskResponse.js.map +0 -1
- package/lib/types/TaskResult.d.ts +0 -233
- package/lib/types/TaskResult.d.ts.map +0 -1
- package/lib/types/TaskResult.js +0 -7
- package/lib/types/TaskResult.js.map +0 -1
- package/lib/types/Timings.d.ts +0 -20
- package/lib/types/Timings.d.ts.map +0 -1
- package/lib/types/Timings.js +0 -5
- package/lib/types/Timings.js.map +0 -1
- package/lib/utilities/editCloudpackConfig.d.ts +0 -5
- package/lib/utilities/editCloudpackConfig.d.ts.map +0 -1
- package/lib/utilities/editCloudpackConfig.js +0 -10
- package/lib/utilities/editCloudpackConfig.js.map +0 -1
- package/lib/utilities/getDefaultTaskStats.d.ts +0 -3
- package/lib/utilities/getDefaultTaskStats.d.ts.map +0 -1
- package/lib/utilities/getDefaultTaskStats.js +0 -8
- package/lib/utilities/getDefaultTaskStats.js.map +0 -1
|
@@ -1,48 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { OverrideOptions } from '../types/OverrideOptions.js';
|
|
2
2
|
import type { ApiParams } from '../types/ApiParams.js';
|
|
3
|
-
declare const ZodAddPackageOverrideInput: z.ZodObject<{
|
|
4
|
-
/**
|
|
5
|
-
* The package name to override.
|
|
6
|
-
*/
|
|
7
|
-
packageName: z.ZodString;
|
|
8
|
-
/**
|
|
9
|
-
* The import path to add for the package.
|
|
10
|
-
*/
|
|
11
|
-
importPath: z.ZodString;
|
|
12
|
-
/**
|
|
13
|
-
* The version of the package to override.
|
|
14
|
-
*/
|
|
15
|
-
version: z.ZodOptional<z.ZodString>;
|
|
16
|
-
/**
|
|
17
|
-
* URL that issued the import.
|
|
18
|
-
*/
|
|
19
|
-
issuerUrl: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
packageName: string;
|
|
22
|
-
importPath: string;
|
|
23
|
-
version?: string | undefined;
|
|
24
|
-
issuerUrl?: string | undefined;
|
|
25
|
-
}, {
|
|
26
|
-
packageName: string;
|
|
27
|
-
importPath: string;
|
|
28
|
-
version?: string | undefined;
|
|
29
|
-
issuerUrl?: string | undefined;
|
|
30
|
-
}>;
|
|
31
|
-
export type AddPackageOverrideInput = z.infer<typeof ZodAddPackageOverrideInput>;
|
|
32
3
|
/**
|
|
33
4
|
* Adds an override to the Cloudpack config.
|
|
34
5
|
*/
|
|
35
|
-
export declare function addPackageOverride(params: ApiParams<
|
|
6
|
+
export declare function addPackageOverride(params: ApiParams<OverrideOptions, 'bus' | 'taskRunner' | 'packages' | 'session' | 'packageHashes' | 'telemetryClient'>): Promise<boolean>;
|
|
36
7
|
export declare namespace addPackageOverride {
|
|
37
8
|
var procedure: import("@trpc/server").TRPCMutationProcedure<{
|
|
38
|
-
input:
|
|
39
|
-
packageName: string;
|
|
40
|
-
importPath: string;
|
|
41
|
-
version?: string | undefined;
|
|
42
|
-
issuerUrl?: string | undefined;
|
|
43
|
-
};
|
|
9
|
+
input: OverrideOptions;
|
|
44
10
|
output: boolean;
|
|
45
11
|
}>;
|
|
46
12
|
}
|
|
47
|
-
export {};
|
|
48
13
|
//# sourceMappingURL=addPackageOverride.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addPackageOverride.d.ts","sourceRoot":"","sources":["../../src/apis/addPackageOverride.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addPackageOverride.d.ts","sourceRoot":"","sources":["../../src/apis/addPackageOverride.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAWvD;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,SAAS,CACf,eAAe,EACf,KAAK,GAAG,YAAY,GAAG,UAAU,GAAG,SAAS,GAAG,eAAe,GAAG,iBAAiB,CACpF,GACA,OAAO,CAAC,OAAO,CAAC,CAqBlB;yBA1BqB,kBAAkB"}
|
|
@@ -3,22 +3,11 @@ import { publicProcedure } from '../trpc/common.js';
|
|
|
3
3
|
import { addOverride } from '../utilities/addOverride.js';
|
|
4
4
|
import { notifyReload } from '../utilities/notifyReload.js';
|
|
5
5
|
import { errorEntrySource } from '../data/busSources.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* The package name to override.
|
|
9
|
-
*/
|
|
6
|
+
import { matchingZodObject } from '../utilities/matchingZodObject.js';
|
|
7
|
+
const ZodAddPackageOverrideInput = matchingZodObject({
|
|
10
8
|
packageName: z.string(),
|
|
11
|
-
/**
|
|
12
|
-
* The import path to add for the package.
|
|
13
|
-
*/
|
|
14
9
|
importPath: z.string(),
|
|
15
|
-
/**
|
|
16
|
-
* The version of the package to override.
|
|
17
|
-
*/
|
|
18
10
|
version: z.string().optional(),
|
|
19
|
-
/**
|
|
20
|
-
* URL that issued the import.
|
|
21
|
-
*/
|
|
22
11
|
issuerUrl: z.string().optional(),
|
|
23
12
|
});
|
|
24
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addPackageOverride.js","sourceRoot":"","sources":["../../src/apis/addPackageOverride.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"addPackageOverride.js","sourceRoot":"","sources":["../../src/apis/addPackageOverride.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAG5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,MAAM,0BAA0B,GAAG,iBAAiB,CAAkB;IACpE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,MAGC;IAED,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;IAC9B,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,GAAG,CAAC;IACnF,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,MAAM,WAAW,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;IACjF,IAAI,KAAK,IAAI,aAAa,EAAE,CAAC;QAC3B,wFAAwF;QACxF,MAAM,aAAa,CAAC,GAAG,CAAC;YACtB,WAAW,EAAE,KAAK,CAAC,IAAI;YACvB,sBAAsB,EAAE,KAAK;YAC7B,iBAAiB,EAAE,IAAI;SACxB,CAAC,CAAC;QACH,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC9B,gFAAgF;QAChF,OAAO,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;YAC/C,uEAAuE;YACvE,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;QACpC,CAAC;QACD,MAAM,YAAY,CAAC,EAAE,MAAM,EAAE,sBAAsB,EAAE,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC;IAC5F,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC;AAED,kBAAkB,CAAC,SAAS,GAAG,eAAe,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { publicProcedure } from '../trpc/common.js';\nimport { addOverride } from '../utilities/addOverride.js';\nimport { notifyReload } from '../utilities/notifyReload.js';\nimport type { OverrideOptions } from '../types/OverrideOptions.js';\nimport type { ApiParams } from '../types/ApiParams.js';\nimport { errorEntrySource } from '../data/busSources.js';\nimport { matchingZodObject } from '../utilities/matchingZodObject.js';\n\nconst ZodAddPackageOverrideInput = matchingZodObject<OverrideOptions>({\n packageName: z.string(),\n importPath: z.string(),\n version: z.string().optional(),\n issuerUrl: z.string().optional(),\n});\n\n/**\n * Adds an override to the Cloudpack config.\n */\nexport async function addPackageOverride(\n params: ApiParams<\n OverrideOptions,\n 'bus' | 'taskRunner' | 'packages' | 'session' | 'packageHashes' | 'telemetryClient'\n >,\n): Promise<boolean> {\n const { input, ctx } = params;\n const { session, bus, packages, taskRunner, packageHashes, telemetryClient } = ctx;\n const { addedOverride, entry } = await addOverride(input, { session, packages });\n if (entry && addedOverride) {\n // The import map hash needs to be recalculated to ensure that the client is up to date.\n await packageHashes.get({\n packagePath: entry.path,\n isSourceHashingEnabled: false,\n shouldRecalculate: true,\n });\n taskRunner.remove(entry.path);\n // Incrementing the target version will cause the import map to be recalculated.\n session.incrementTargetVersion(entry.path);\n if (session.config.features?.autoUpdateEntries) {\n // We can clear the error message now that the override has been added.\n bus.publish(errorEntrySource, '');\n }\n await notifyReload({ reason: 'add-package-override' }, { bus, session, telemetryClient });\n }\n return addedOverride;\n}\n\naddPackageOverride.procedure = publicProcedure.input(ZodAddPackageOverrideInput).mutation(addPackageOverride);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openConfigEditor.d.ts","sourceRoot":"","sources":["../../src/apis/openConfigEditor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"openConfigEditor.d.ts","sourceRoot":"","sources":["../../src/apis/openConfigEditor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAKxF;yBALqB,gBAAgB"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { ensureAppConfig } from '@ms-cloudpack/config';
|
|
2
|
+
import { execSync } from 'child_process';
|
|
1
3
|
import { publicProcedure } from '../trpc/common.js';
|
|
2
|
-
import { editCloudpackConfig } from '../utilities/editCloudpackConfig.js';
|
|
3
4
|
export async function openConfigEditor(params) {
|
|
4
|
-
|
|
5
|
+
const cwd = params.ctx.session.config.appPath;
|
|
6
|
+
const appConfigPath = await ensureAppConfig(cwd);
|
|
7
|
+
execSync(`code --goto ${JSON.stringify(appConfigPath)}`, { cwd });
|
|
5
8
|
}
|
|
6
9
|
// Attach a trpc procedure to the function.
|
|
7
10
|
openConfigEditor.procedure = publicProcedure.mutation(openConfigEditor);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openConfigEditor.js","sourceRoot":"","sources":["../../src/apis/openConfigEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"openConfigEditor.js","sourceRoot":"","sources":["../../src/apis/openConfigEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,MAAkC;IACvE,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC;IAC9C,MAAM,aAAa,GAAG,MAAM,eAAe,CAAC,GAAG,CAAC,CAAC;IAEjD,QAAQ,CAAC,eAAe,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;AACpE,CAAC;AAED,2CAA2C;AAC3C,gBAAgB,CAAC,SAAS,GAAG,eAAe,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC","sourcesContent":["import { ensureAppConfig } from '@ms-cloudpack/config';\nimport { execSync } from 'child_process';\nimport { publicProcedure } from '../trpc/common.js';\nimport type { ApiParams } from '../types/ApiParams.js';\n\nexport async function openConfigEditor(params: ApiParams<void, 'session'>): Promise<void> {\n const cwd = params.ctx.session.config.appPath;\n const appConfigPath = await ensureAppConfig(cwd);\n\n execSync(`code --goto ${JSON.stringify(appConfigPath)}`, { cwd });\n}\n\n// Attach a trpc procedure to the function.\nopenConfigEditor.procedure = publicProcedure.mutation(openConfigEditor);\n"]}
|
|
@@ -1,39 +1,14 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import type { ApiParams } from '../types/ApiParams.js';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
issuerUrl: z.ZodOptional<z.ZodString>;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
packageName: string;
|
|
9
|
-
importPath: string;
|
|
10
|
-
issuerUrl?: string | undefined;
|
|
11
|
-
}, {
|
|
12
|
-
packageName: string;
|
|
13
|
-
importPath: string;
|
|
14
|
-
issuerUrl?: string | undefined;
|
|
15
|
-
}>;
|
|
16
|
-
export type ValidatePackageOverrideInput = z.infer<typeof ZodValidatePackageOverrideInput>;
|
|
17
|
-
declare const ZodValidatePackageOverrideOutput: z.ZodObject<{
|
|
18
|
-
fixable: z.ZodBoolean;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
2
|
+
import type { OverrideOptions } from '../types/OverrideOptions.js';
|
|
3
|
+
export type ValidatePackageOverrideInput = Omit<OverrideOptions, 'version'>;
|
|
4
|
+
export interface ValidatePackageOverrideOutput {
|
|
20
5
|
fixable: boolean;
|
|
21
|
-
}
|
|
22
|
-
fixable: boolean;
|
|
23
|
-
}>;
|
|
24
|
-
export type ValidatePackageOverrideOutput = z.infer<typeof ZodValidatePackageOverrideOutput>;
|
|
6
|
+
}
|
|
25
7
|
export declare function validatePackageOverride(params: ApiParams<ValidatePackageOverrideInput, 'session' | 'packages' | 'bus'>): Promise<ValidatePackageOverrideOutput>;
|
|
26
8
|
export declare namespace validatePackageOverride {
|
|
27
9
|
var procedure: import("@trpc/server").TRPCQueryProcedure<{
|
|
28
|
-
input:
|
|
29
|
-
|
|
30
|
-
importPath: string;
|
|
31
|
-
issuerUrl?: string | undefined;
|
|
32
|
-
};
|
|
33
|
-
output: {
|
|
34
|
-
fixable: boolean;
|
|
35
|
-
};
|
|
10
|
+
input: ValidatePackageOverrideInput;
|
|
11
|
+
output: ValidatePackageOverrideOutput;
|
|
36
12
|
}>;
|
|
37
13
|
}
|
|
38
|
-
export {};
|
|
39
14
|
//# sourceMappingURL=validatePackageOverride.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validatePackageOverride.d.ts","sourceRoot":"","sources":["../../src/apis/validatePackageOverride.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validatePackageOverride.d.ts","sourceRoot":"","sources":["../../src/apis/validatePackageOverride.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;AAQ5E,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,OAAO,CAAC;CAClB;AAMD,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,SAAS,CAAC,4BAA4B,EAAE,SAAS,GAAG,UAAU,GAAG,KAAK,CAAC,GAC9E,OAAO,CAAC,6BAA6B,CAAC,CAUxC;yBAZqB,uBAAuB"}
|
|
@@ -2,12 +2,13 @@ import { z } from 'zod';
|
|
|
2
2
|
import { publicProcedure } from '../trpc/common.js';
|
|
3
3
|
import { validateOverride } from '../utilities/validateOverride.js';
|
|
4
4
|
import { errorEntrySource } from '../index.browser.js';
|
|
5
|
-
|
|
5
|
+
import { matchingZodObject } from '../utilities/matchingZodObject.js';
|
|
6
|
+
const ZodValidatePackageOverrideInput = matchingZodObject({
|
|
6
7
|
packageName: z.string(),
|
|
7
8
|
importPath: z.string(),
|
|
8
9
|
issuerUrl: z.string().optional(),
|
|
9
10
|
});
|
|
10
|
-
const ZodValidatePackageOverrideOutput =
|
|
11
|
+
const ZodValidatePackageOverrideOutput = matchingZodObject({
|
|
11
12
|
fixable: z.boolean(),
|
|
12
13
|
});
|
|
13
14
|
export async function validatePackageOverride(params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validatePackageOverride.js","sourceRoot":"","sources":["../../src/apis/validatePackageOverride.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"validatePackageOverride.js","sourceRoot":"","sources":["../../src/apis/validatePackageOverride.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAKtE,MAAM,+BAA+B,GAAG,iBAAiB,CAA+B;IACtF,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAMH,MAAM,gCAAgC,GAAG,iBAAiB,CAAgC;IACxF,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CACrB,CAAC,CAAC;AAEH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,MAA+E;IAE/E,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;IAC9B,IAAI,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;QACnD,4GAA4G;QAC5G,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;IACxC,CAAC;IAED,OAAO;QACL,OAAO,EAAE,MAAM,gBAAgB,CAAC,KAAK,EAAE,GAAG,CAAC;KAC5C,CAAC;AACJ,CAAC;AAED,uBAAuB,CAAC,SAAS,GAAG,eAAe;KAChD,KAAK,CAAC,+BAA+B,CAAC;KACtC,MAAM,CAAC,gCAAgC,CAAC;KACxC,KAAK,CAAC,uBAAuB,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { publicProcedure } from '../trpc/common.js';\nimport { validateOverride } from '../utilities/validateOverride.js';\nimport type { ApiParams } from '../types/ApiParams.js';\nimport { errorEntrySource } from '../index.browser.js';\nimport { matchingZodObject } from '../utilities/matchingZodObject.js';\nimport type { OverrideOptions } from '../types/OverrideOptions.js';\n\nexport type ValidatePackageOverrideInput = Omit<OverrideOptions, 'version'>;\n\nconst ZodValidatePackageOverrideInput = matchingZodObject<ValidatePackageOverrideInput>({\n packageName: z.string(),\n importPath: z.string(),\n issuerUrl: z.string().optional(),\n});\n\nexport interface ValidatePackageOverrideOutput {\n fixable: boolean;\n}\n\nconst ZodValidatePackageOverrideOutput = matchingZodObject<ValidatePackageOverrideOutput>({\n fixable: z.boolean(),\n});\n\nexport async function validatePackageOverride(\n params: ApiParams<ValidatePackageOverrideInput, 'session' | 'packages' | 'bus'>,\n): Promise<ValidatePackageOverrideOutput> {\n const { input, ctx } = params;\n if (ctx.session.config.features?.autoUpdateEntries) {\n // We need to publish an empty string to the errorEntrySource as the error has been received on the overlay.\n ctx.bus.publish(errorEntrySource, '');\n }\n\n return {\n fixable: await validateOverride(input, ctx),\n };\n}\n\nvalidatePackageOverride.procedure = publicProcedure\n .input(ZodValidatePackageOverrideInput)\n .output(ZodValidatePackageOverrideOutput)\n .query(validatePackageOverride);\n"]}
|
package/lib/data/busSources.d.ts
CHANGED
|
@@ -59,163 +59,17 @@ export declare const taskListSource: DataBusPath<z.ZodObject<{
|
|
|
59
59
|
}>, {
|
|
60
60
|
id: z.ZodString;
|
|
61
61
|
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
62
|
-
text: z.
|
|
63
|
-
source: z.
|
|
64
|
-
location: z.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
column: z.ZodOptional<z.ZodNumber>;
|
|
68
|
-
}, "strip", z.ZodTypeAny, {
|
|
69
|
-
file: string;
|
|
70
|
-
line?: number | undefined;
|
|
71
|
-
column?: number | undefined;
|
|
72
|
-
}, {
|
|
73
|
-
file: string;
|
|
74
|
-
line?: number | undefined;
|
|
75
|
-
column?: number | undefined;
|
|
76
|
-
}>>;
|
|
77
|
-
notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
78
|
-
text: z.ZodString;
|
|
79
|
-
location: z.ZodOptional<z.ZodObject<{
|
|
80
|
-
file: z.ZodString;
|
|
81
|
-
line: z.ZodOptional<z.ZodNumber>;
|
|
82
|
-
column: z.ZodOptional<z.ZodNumber>;
|
|
83
|
-
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
file: string;
|
|
85
|
-
line?: number | undefined;
|
|
86
|
-
column?: number | undefined;
|
|
87
|
-
}, {
|
|
88
|
-
file: string;
|
|
89
|
-
line?: number | undefined;
|
|
90
|
-
column?: number | undefined;
|
|
91
|
-
}>>;
|
|
92
|
-
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
text: string;
|
|
94
|
-
location?: {
|
|
95
|
-
file: string;
|
|
96
|
-
line?: number | undefined;
|
|
97
|
-
column?: number | undefined;
|
|
98
|
-
} | undefined;
|
|
99
|
-
}, {
|
|
100
|
-
text: string;
|
|
101
|
-
location?: {
|
|
102
|
-
file: string;
|
|
103
|
-
line?: number | undefined;
|
|
104
|
-
column?: number | undefined;
|
|
105
|
-
} | undefined;
|
|
106
|
-
}>, "many">>;
|
|
107
|
-
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
text: string;
|
|
109
|
-
source: string;
|
|
110
|
-
location?: {
|
|
111
|
-
file: string;
|
|
112
|
-
line?: number | undefined;
|
|
113
|
-
column?: number | undefined;
|
|
114
|
-
} | undefined;
|
|
115
|
-
notes?: {
|
|
116
|
-
text: string;
|
|
117
|
-
location?: {
|
|
118
|
-
file: string;
|
|
119
|
-
line?: number | undefined;
|
|
120
|
-
column?: number | undefined;
|
|
121
|
-
} | undefined;
|
|
122
|
-
}[] | undefined;
|
|
123
|
-
}, {
|
|
124
|
-
text: string;
|
|
125
|
-
source: string;
|
|
126
|
-
location?: {
|
|
127
|
-
file: string;
|
|
128
|
-
line?: number | undefined;
|
|
129
|
-
column?: number | undefined;
|
|
130
|
-
} | undefined;
|
|
131
|
-
notes?: {
|
|
132
|
-
text: string;
|
|
133
|
-
location?: {
|
|
134
|
-
file: string;
|
|
135
|
-
line?: number | undefined;
|
|
136
|
-
column?: number | undefined;
|
|
137
|
-
} | undefined;
|
|
138
|
-
}[] | undefined;
|
|
139
|
-
}>, "many">>;
|
|
62
|
+
text: z.ZodType<string, z.ZodTypeDef, string>;
|
|
63
|
+
source: z.ZodType<string, z.ZodTypeDef, string>;
|
|
64
|
+
location: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageLocation | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageLocation | undefined>;
|
|
65
|
+
notes: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageNote[] | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageNote[] | undefined>;
|
|
66
|
+
}, "strict", z.ZodTypeAny, import("@ms-cloudpack/common-types").BundleMessage, import("@ms-cloudpack/common-types").BundleMessage>, "many">>;
|
|
140
67
|
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
141
|
-
text: z.
|
|
142
|
-
source: z.
|
|
143
|
-
location: z.
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
column: z.ZodOptional<z.ZodNumber>;
|
|
147
|
-
}, "strip", z.ZodTypeAny, {
|
|
148
|
-
file: string;
|
|
149
|
-
line?: number | undefined;
|
|
150
|
-
column?: number | undefined;
|
|
151
|
-
}, {
|
|
152
|
-
file: string;
|
|
153
|
-
line?: number | undefined;
|
|
154
|
-
column?: number | undefined;
|
|
155
|
-
}>>;
|
|
156
|
-
notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
157
|
-
text: z.ZodString;
|
|
158
|
-
location: z.ZodOptional<z.ZodObject<{
|
|
159
|
-
file: z.ZodString;
|
|
160
|
-
line: z.ZodOptional<z.ZodNumber>;
|
|
161
|
-
column: z.ZodOptional<z.ZodNumber>;
|
|
162
|
-
}, "strip", z.ZodTypeAny, {
|
|
163
|
-
file: string;
|
|
164
|
-
line?: number | undefined;
|
|
165
|
-
column?: number | undefined;
|
|
166
|
-
}, {
|
|
167
|
-
file: string;
|
|
168
|
-
line?: number | undefined;
|
|
169
|
-
column?: number | undefined;
|
|
170
|
-
}>>;
|
|
171
|
-
}, "strip", z.ZodTypeAny, {
|
|
172
|
-
text: string;
|
|
173
|
-
location?: {
|
|
174
|
-
file: string;
|
|
175
|
-
line?: number | undefined;
|
|
176
|
-
column?: number | undefined;
|
|
177
|
-
} | undefined;
|
|
178
|
-
}, {
|
|
179
|
-
text: string;
|
|
180
|
-
location?: {
|
|
181
|
-
file: string;
|
|
182
|
-
line?: number | undefined;
|
|
183
|
-
column?: number | undefined;
|
|
184
|
-
} | undefined;
|
|
185
|
-
}>, "many">>;
|
|
186
|
-
}, "strip", z.ZodTypeAny, {
|
|
187
|
-
text: string;
|
|
188
|
-
source: string;
|
|
189
|
-
location?: {
|
|
190
|
-
file: string;
|
|
191
|
-
line?: number | undefined;
|
|
192
|
-
column?: number | undefined;
|
|
193
|
-
} | undefined;
|
|
194
|
-
notes?: {
|
|
195
|
-
text: string;
|
|
196
|
-
location?: {
|
|
197
|
-
file: string;
|
|
198
|
-
line?: number | undefined;
|
|
199
|
-
column?: number | undefined;
|
|
200
|
-
} | undefined;
|
|
201
|
-
}[] | undefined;
|
|
202
|
-
}, {
|
|
203
|
-
text: string;
|
|
204
|
-
source: string;
|
|
205
|
-
location?: {
|
|
206
|
-
file: string;
|
|
207
|
-
line?: number | undefined;
|
|
208
|
-
column?: number | undefined;
|
|
209
|
-
} | undefined;
|
|
210
|
-
notes?: {
|
|
211
|
-
text: string;
|
|
212
|
-
location?: {
|
|
213
|
-
file: string;
|
|
214
|
-
line?: number | undefined;
|
|
215
|
-
column?: number | undefined;
|
|
216
|
-
} | undefined;
|
|
217
|
-
}[] | undefined;
|
|
218
|
-
}>, "many">>;
|
|
68
|
+
text: z.ZodType<string, z.ZodTypeDef, string>;
|
|
69
|
+
source: z.ZodType<string, z.ZodTypeDef, string>;
|
|
70
|
+
location: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageLocation | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageLocation | undefined>;
|
|
71
|
+
notes: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageNote[] | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageNote[] | undefined>;
|
|
72
|
+
}, "strict", z.ZodTypeAny, import("@ms-cloudpack/common-types").BundleMessage, import("@ms-cloudpack/common-types").BundleMessage>, "many">>;
|
|
219
73
|
}>, "strip", z.ZodTypeAny, {
|
|
220
74
|
id: string;
|
|
221
75
|
startTime: number;
|
|
@@ -223,40 +77,8 @@ export declare const taskListSource: DataBusPath<z.ZodObject<{
|
|
|
223
77
|
name?: string | undefined;
|
|
224
78
|
inputPath?: string | undefined;
|
|
225
79
|
outputPath?: string | undefined;
|
|
226
|
-
errors?:
|
|
227
|
-
|
|
228
|
-
source: string;
|
|
229
|
-
location?: {
|
|
230
|
-
file: string;
|
|
231
|
-
line?: number | undefined;
|
|
232
|
-
column?: number | undefined;
|
|
233
|
-
} | undefined;
|
|
234
|
-
notes?: {
|
|
235
|
-
text: string;
|
|
236
|
-
location?: {
|
|
237
|
-
file: string;
|
|
238
|
-
line?: number | undefined;
|
|
239
|
-
column?: number | undefined;
|
|
240
|
-
} | undefined;
|
|
241
|
-
}[] | undefined;
|
|
242
|
-
}[] | undefined;
|
|
243
|
-
warnings?: {
|
|
244
|
-
text: string;
|
|
245
|
-
source: string;
|
|
246
|
-
location?: {
|
|
247
|
-
file: string;
|
|
248
|
-
line?: number | undefined;
|
|
249
|
-
column?: number | undefined;
|
|
250
|
-
} | undefined;
|
|
251
|
-
notes?: {
|
|
252
|
-
text: string;
|
|
253
|
-
location?: {
|
|
254
|
-
file: string;
|
|
255
|
-
line?: number | undefined;
|
|
256
|
-
column?: number | undefined;
|
|
257
|
-
} | undefined;
|
|
258
|
-
}[] | undefined;
|
|
259
|
-
}[] | undefined;
|
|
80
|
+
errors?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
|
|
81
|
+
warnings?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
|
|
260
82
|
timings?: {
|
|
261
83
|
name: string;
|
|
262
84
|
start: number;
|
|
@@ -272,40 +94,8 @@ export declare const taskListSource: DataBusPath<z.ZodObject<{
|
|
|
272
94
|
name?: string | undefined;
|
|
273
95
|
inputPath?: string | undefined;
|
|
274
96
|
outputPath?: string | undefined;
|
|
275
|
-
errors?:
|
|
276
|
-
|
|
277
|
-
source: string;
|
|
278
|
-
location?: {
|
|
279
|
-
file: string;
|
|
280
|
-
line?: number | undefined;
|
|
281
|
-
column?: number | undefined;
|
|
282
|
-
} | undefined;
|
|
283
|
-
notes?: {
|
|
284
|
-
text: string;
|
|
285
|
-
location?: {
|
|
286
|
-
file: string;
|
|
287
|
-
line?: number | undefined;
|
|
288
|
-
column?: number | undefined;
|
|
289
|
-
} | undefined;
|
|
290
|
-
}[] | undefined;
|
|
291
|
-
}[] | undefined;
|
|
292
|
-
warnings?: {
|
|
293
|
-
text: string;
|
|
294
|
-
source: string;
|
|
295
|
-
location?: {
|
|
296
|
-
file: string;
|
|
297
|
-
line?: number | undefined;
|
|
298
|
-
column?: number | undefined;
|
|
299
|
-
} | undefined;
|
|
300
|
-
notes?: {
|
|
301
|
-
text: string;
|
|
302
|
-
location?: {
|
|
303
|
-
file: string;
|
|
304
|
-
line?: number | undefined;
|
|
305
|
-
column?: number | undefined;
|
|
306
|
-
} | undefined;
|
|
307
|
-
}[] | undefined;
|
|
308
|
-
}[] | undefined;
|
|
97
|
+
errors?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
|
|
98
|
+
warnings?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
|
|
309
99
|
timings?: {
|
|
310
100
|
name: string;
|
|
311
101
|
start: number;
|
|
@@ -323,40 +113,8 @@ export declare const taskListSource: DataBusPath<z.ZodObject<{
|
|
|
323
113
|
name?: string | undefined;
|
|
324
114
|
inputPath?: string | undefined;
|
|
325
115
|
outputPath?: string | undefined;
|
|
326
|
-
errors?:
|
|
327
|
-
|
|
328
|
-
source: string;
|
|
329
|
-
location?: {
|
|
330
|
-
file: string;
|
|
331
|
-
line?: number | undefined;
|
|
332
|
-
column?: number | undefined;
|
|
333
|
-
} | undefined;
|
|
334
|
-
notes?: {
|
|
335
|
-
text: string;
|
|
336
|
-
location?: {
|
|
337
|
-
file: string;
|
|
338
|
-
line?: number | undefined;
|
|
339
|
-
column?: number | undefined;
|
|
340
|
-
} | undefined;
|
|
341
|
-
}[] | undefined;
|
|
342
|
-
}[] | undefined;
|
|
343
|
-
warnings?: {
|
|
344
|
-
text: string;
|
|
345
|
-
source: string;
|
|
346
|
-
location?: {
|
|
347
|
-
file: string;
|
|
348
|
-
line?: number | undefined;
|
|
349
|
-
column?: number | undefined;
|
|
350
|
-
} | undefined;
|
|
351
|
-
notes?: {
|
|
352
|
-
text: string;
|
|
353
|
-
location?: {
|
|
354
|
-
file: string;
|
|
355
|
-
line?: number | undefined;
|
|
356
|
-
column?: number | undefined;
|
|
357
|
-
} | undefined;
|
|
358
|
-
}[] | undefined;
|
|
359
|
-
}[] | undefined;
|
|
116
|
+
errors?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
|
|
117
|
+
warnings?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
|
|
360
118
|
timings?: {
|
|
361
119
|
name: string;
|
|
362
120
|
start: number;
|
|
@@ -374,40 +132,8 @@ export declare const taskListSource: DataBusPath<z.ZodObject<{
|
|
|
374
132
|
name?: string | undefined;
|
|
375
133
|
inputPath?: string | undefined;
|
|
376
134
|
outputPath?: string | undefined;
|
|
377
|
-
errors?:
|
|
378
|
-
|
|
379
|
-
source: string;
|
|
380
|
-
location?: {
|
|
381
|
-
file: string;
|
|
382
|
-
line?: number | undefined;
|
|
383
|
-
column?: number | undefined;
|
|
384
|
-
} | undefined;
|
|
385
|
-
notes?: {
|
|
386
|
-
text: string;
|
|
387
|
-
location?: {
|
|
388
|
-
file: string;
|
|
389
|
-
line?: number | undefined;
|
|
390
|
-
column?: number | undefined;
|
|
391
|
-
} | undefined;
|
|
392
|
-
}[] | undefined;
|
|
393
|
-
}[] | undefined;
|
|
394
|
-
warnings?: {
|
|
395
|
-
text: string;
|
|
396
|
-
source: string;
|
|
397
|
-
location?: {
|
|
398
|
-
file: string;
|
|
399
|
-
line?: number | undefined;
|
|
400
|
-
column?: number | undefined;
|
|
401
|
-
} | undefined;
|
|
402
|
-
notes?: {
|
|
403
|
-
text: string;
|
|
404
|
-
location?: {
|
|
405
|
-
file: string;
|
|
406
|
-
line?: number | undefined;
|
|
407
|
-
column?: number | undefined;
|
|
408
|
-
} | undefined;
|
|
409
|
-
}[] | undefined;
|
|
410
|
-
}[] | undefined;
|
|
135
|
+
errors?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
|
|
136
|
+
warnings?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
|
|
411
137
|
timings?: {
|
|
412
138
|
name: string;
|
|
413
139
|
start: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"busSources.d.ts","sourceRoot":"","sources":["../../src/data/busSources.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,iBAAiB,0BAG5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;GAG1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"busSources.d.ts","sourceRoot":"","sources":["../../src/data/busSources.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,iBAAiB,0BAG5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;GAG1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGzB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,CAAC,CAAC,SAAS,CAGpD,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export type { Context, PartialContext } from './types/Context.js';
|
|
2
2
|
export type { BundleInfo, BundleEntryInfo, BundleEntryConsumes } from './types/BundleInfo.js';
|
|
3
|
-
export type { Session } from '@ms-cloudpack/common-types';
|
|
4
3
|
export type { TaskStats } from './types/TaskStats.js';
|
|
5
4
|
export type { Task } from './types/Task.js';
|
|
6
5
|
export type { TaskDescription } from './types/TaskDescription.js';
|
|
7
6
|
export type { TaskEndDescription } from './types/TaskEndDescription.js';
|
|
7
|
+
export type { TaskList } from './types/TaskList.js';
|
|
8
8
|
export type { TaskMessage } from './types/TaskMessage.js';
|
|
9
9
|
export type { TaskStartDescription } from './types/TaskStartDescription.js';
|
|
10
10
|
export type { EnsurePackageBundledContext, EnsurePackageBundledResult } from './apis/ensurePackageBundled.js';
|
|
11
11
|
export { TaskRunner } from './utilities/TaskRunner.js';
|
|
12
|
-
export { errorEntrySource } from './data/busSources.js';
|
|
12
|
+
export { taskListSource, taskStatsSource, errorEntrySource } from './data/busSources.js';
|
|
13
13
|
export { createCloudpackClient, type CloudpackClient } from './trpc/createCloudpackClient.js';
|
|
14
14
|
export { createCloudpackServer, type CloudpackServer } from './trpc/createCloudpackServer.js';
|
|
15
15
|
export { getActiveSessionsPath } from './utilities/getActiveSessionsPath.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,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAClE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC9F,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAClE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC9F,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,YAAY,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,YAAY,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,YAAY,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,YAAY,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAE9G,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACzF,OAAO,EAAE,qBAAqB,EAAE,KAAK,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAC9F,OAAO,EAAE,qBAAqB,EAAE,KAAK,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAC9F,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAGnE,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,KAAK,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAGvH,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { TaskRunner } from './utilities/TaskRunner.js';
|
|
2
|
-
export { errorEntrySource } from './data/busSources.js';
|
|
2
|
+
export { taskListSource, taskStatsSource, errorEntrySource } from './data/busSources.js';
|
|
3
3
|
export { createCloudpackClient } from './trpc/createCloudpackClient.js';
|
|
4
4
|
export { createCloudpackServer } from './trpc/createCloudpackServer.js';
|
|
5
5
|
export { getActiveSessionsPath } from './utilities/getActiveSessionsPath.js';
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACzF,OAAO,EAAE,qBAAqB,EAAwB,MAAM,iCAAiC,CAAC;AAC9F,OAAO,EAAE,qBAAqB,EAAwB,MAAM,iCAAiC,CAAC;AAC9F,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,YAAY;AACZ,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAgC,MAAM,8BAA8B,CAAC;AAEvH,iDAAiD;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC","sourcesContent":["export type { Context, PartialContext } from './types/Context.js';\nexport type { BundleInfo, BundleEntryInfo, BundleEntryConsumes } from './types/BundleInfo.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 { TaskList } from './types/TaskList.js';\nexport type { TaskMessage } from './types/TaskMessage.js';\nexport type { TaskStartDescription } from './types/TaskStartDescription.js';\nexport type { EnsurePackageBundledContext, EnsurePackageBundledResult } from './apis/ensurePackageBundled.js';\n\nexport { TaskRunner } from './utilities/TaskRunner.js';\nexport { taskListSource, taskStatsSource, errorEntrySource } from './data/busSources.js';\nexport { createCloudpackClient, type CloudpackClient } from './trpc/createCloudpackClient.js';\nexport { createCloudpackServer, type CloudpackServer } from './trpc/createCloudpackServer.js';\nexport { getActiveSessionsPath } from './utilities/getActiveSessionsPath.js';\nexport { getConsumedDependencies } from './utilities/getConsumedDependencies.js';\nexport { getConsumedPaths } from './utilities/getConsumedPaths.js';\n\n// Utilities\nexport { createApiContext, createPartialApiContext, type CreateApiContextOptions } from './common/createApiContext.js';\n\n// API methods directly used outside this package\nexport { addPackageOverride } from './apis/addPackageOverride.js';\nexport { ensurePackageBundled } from './apis/ensurePackageBundled.js';\nexport { syncDownload } from './apis/syncDownload.js';\nexport { syncUpload } from './apis/syncUpload.js';\nexport type { SyncResult } from './types/SyncResult.js';\n"]}
|