@webiny/project 6.6.0-alpha.0 → 6.6.0-alpha.10
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/abstractions/features/DestroyApp.d.ts +2 -2
- package/abstractions/features/DestroyApp.js.map +1 -1
- package/abstractions/features/GetAppStackOutput.d.ts +3 -2
- package/abstractions/features/GetAppStackOutput.js.map +1 -1
- package/abstractions/features/Watch.d.ts +2 -0
- package/abstractions/features/Watch.js.map +1 -1
- package/abstractions/services/StackOutputCacheService.d.ts +10 -0
- package/abstractions/services/StackOutputCacheService.js +5 -0
- package/abstractions/services/StackOutputCacheService.js.map +1 -0
- package/abstractions/services/index.d.ts +1 -0
- package/abstractions/services/index.js +1 -0
- package/components/FeatureFlag.d.ts +48 -0
- package/components/FeatureFlag.js +59 -0
- package/components/FeatureFlag.js.map +1 -0
- package/createProjectSdkContainer.js +24 -10
- package/createProjectSdkContainer.js.map +1 -1
- package/decorators/DestroyAppClearStackOutputCache.d.ts +25 -0
- package/decorators/DestroyAppClearStackOutputCache.js +29 -0
- package/decorators/DestroyAppClearStackOutputCache.js.map +1 -0
- package/decorators/GetFeatureFlagsWithLicense.d.ts +0 -1
- package/decorators/GetFeatureFlagsWithLicense.js +28 -20
- package/decorators/GetFeatureFlagsWithLicense.js.map +1 -1
- package/decorators/index.d.ts +1 -0
- package/decorators/index.js +1 -0
- package/defineExtension/createExtensionReactComponent.js +9 -1
- package/defineExtension/createExtensionReactComponent.js.map +1 -1
- package/defineExtension/types.d.ts +6 -1
- package/extensions/AdminApiUrl.js +2 -1
- package/extensions/AdminApiUrl.js.map +1 -1
- package/extensions/AdminBuildParam.js +5 -5
- package/extensions/AdminBuildParam.js.map +1 -1
- package/extensions/AdminExtension.d.ts +1 -1
- package/extensions/AdminExtension.js +6 -5
- package/extensions/AdminExtension.js.map +1 -1
- package/extensions/AdminWebsocketsUrl.d.ts +1 -1
- package/extensions/AdminWebsocketsUrl.js +2 -1
- package/extensions/AdminWebsocketsUrl.js.map +1 -1
- package/extensions/ApiBuildParam.js +11 -10
- package/extensions/ApiBuildParam.js.map +1 -1
- package/extensions/ApiExtension.d.ts +1 -1
- package/extensions/ApiExtension.js +8 -5
- package/extensions/ApiExtension.js.map +1 -1
- package/extensions/BugReporter.d.ts +6 -0
- package/extensions/BugReporter.js +34 -0
- package/extensions/BugReporter.js.map +1 -0
- package/extensions/DatabaseSetup.js +2 -1
- package/extensions/DatabaseSetup.js.map +1 -1
- package/extensions/EnvVar.js +2 -1
- package/extensions/EnvVar.js.map +1 -1
- package/extensions/ExtensionDefinitions.js +2 -1
- package/extensions/ExtensionDefinitions.js.map +1 -1
- package/extensions/FeatureFlags.d.ts +22 -11
- package/extensions/FeatureFlags.js +33 -11
- package/extensions/FeatureFlags.js.map +1 -1
- package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.js +1 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.js.map +1 -1
- package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.js +1 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.js.map +1 -1
- package/extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.js +2 -1
- package/extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.js.map +1 -1
- package/extensions/Project/ShowConfigChangeInfoBeforeApiWatch.js +2 -1
- package/extensions/Project/ShowConfigChangeInfoBeforeApiWatch.js.map +1 -1
- package/extensions/Project/WcpInjectTelemetryClientAfterBuild.js +2 -1
- package/extensions/Project/WcpInjectTelemetryClientAfterBuild.js.map +1 -1
- package/extensions/Project/showConfigChangeNotice.d.ts +7 -0
- package/extensions/Project/showConfigChangeNotice.js +9 -0
- package/extensions/Project/showConfigChangeNotice.js.map +1 -0
- package/extensions/ProjectDecorator.js +2 -1
- package/extensions/ProjectDecorator.js.map +1 -1
- package/extensions/ProjectId.js +2 -1
- package/extensions/ProjectId.js.map +1 -1
- package/extensions/ProjectImplementation.js +2 -1
- package/extensions/ProjectImplementation.js.map +1 -1
- package/extensions/Telemetry.js +2 -1
- package/extensions/Telemetry.js.map +1 -1
- package/extensions/api/BackgroundTasks.d.ts +4 -0
- package/extensions/api/BackgroundTasks.js +25 -0
- package/extensions/api/BackgroundTasks.js.map +1 -0
- package/extensions/api/Cms/ModelFieldCompression.d.ts +4 -0
- package/extensions/api/Cms/ModelFieldCompression.js +25 -0
- package/extensions/api/Cms/ModelFieldCompression.js.map +1 -0
- package/extensions/api/Mailer/Smtp.d.ts +8 -0
- package/extensions/api/Mailer/Smtp.js +22 -0
- package/extensions/api/Mailer/Smtp.js.map +1 -0
- package/extensions/api/Mailer/Smtp.test.d.ts +1 -0
- package/extensions/api/Mailer/Smtp.test.js +127 -0
- package/extensions/api/Mailer/Smtp.test.js.map +1 -0
- package/extensions/api/Mailer/SmtpParamsSchema.d.ts +9 -0
- package/extensions/api/Mailer/SmtpParamsSchema.js +17 -0
- package/extensions/api/Mailer/SmtpParamsSchema.js.map +1 -0
- package/extensions/api/index.d.ts +4 -0
- package/extensions/api/index.js +4 -0
- package/extensions/hasDefaultExport.d.ts +2 -0
- package/extensions/hasDefaultExport.js +17 -0
- package/extensions/hasDefaultExport.js.map +1 -0
- package/extensions/hooks/AdminAfterBuild.js +2 -1
- package/extensions/hooks/AdminAfterBuild.js.map +1 -1
- package/extensions/hooks/AdminAfterDeploy.js +2 -1
- package/extensions/hooks/AdminAfterDeploy.js.map +1 -1
- package/extensions/hooks/AdminBeforeBuild.js +2 -1
- package/extensions/hooks/AdminBeforeBuild.js.map +1 -1
- package/extensions/hooks/AdminBeforeDeploy.js +2 -1
- package/extensions/hooks/AdminBeforeDeploy.js.map +1 -1
- package/extensions/hooks/AdminBeforeWatch.js +2 -1
- package/extensions/hooks/AdminBeforeWatch.js.map +1 -1
- package/extensions/hooks/AfterBuild.js +2 -1
- package/extensions/hooks/AfterBuild.js.map +1 -1
- package/extensions/hooks/AfterDeploy.js +2 -1
- package/extensions/hooks/AfterDeploy.js.map +1 -1
- package/extensions/hooks/ApiAfterBuild.js +2 -1
- package/extensions/hooks/ApiAfterBuild.js.map +1 -1
- package/extensions/hooks/ApiAfterDeploy.js +2 -1
- package/extensions/hooks/ApiAfterDeploy.js.map +1 -1
- package/extensions/hooks/ApiBeforeBuild.js +2 -1
- package/extensions/hooks/ApiBeforeBuild.js.map +1 -1
- package/extensions/hooks/ApiBeforeDeploy.js +2 -1
- package/extensions/hooks/ApiBeforeDeploy.js.map +1 -1
- package/extensions/hooks/ApiBeforeWatch.js +2 -1
- package/extensions/hooks/ApiBeforeWatch.js.map +1 -1
- package/extensions/hooks/BeforeBuild.js +2 -1
- package/extensions/hooks/BeforeBuild.js.map +1 -1
- package/extensions/hooks/BeforeDeploy.js +2 -1
- package/extensions/hooks/BeforeDeploy.js.map +1 -1
- package/extensions/hooks/BeforeWatch.js +2 -1
- package/extensions/hooks/BeforeWatch.js.map +1 -1
- package/extensions/hooks/CoreAfterBuild.js +2 -1
- package/extensions/hooks/CoreAfterBuild.js.map +1 -1
- package/extensions/hooks/CoreAfterDeploy.js +2 -1
- package/extensions/hooks/CoreAfterDeploy.js.map +1 -1
- package/extensions/hooks/CoreBeforeBuild.js +2 -1
- package/extensions/hooks/CoreBeforeBuild.js.map +1 -1
- package/extensions/hooks/CoreBeforeDeploy.js +2 -1
- package/extensions/hooks/CoreBeforeDeploy.js.map +1 -1
- package/extensions/hooks/CoreBeforeWatch.js +2 -1
- package/extensions/hooks/CoreBeforeWatch.js.map +1 -1
- package/extensions/hosting/assertHostingType.d.ts +13 -0
- package/extensions/hosting/assertHostingType.js +12 -0
- package/extensions/hosting/assertHostingType.js.map +1 -0
- package/extensions/hosting/extensionImplementations.d.ts +12 -0
- package/extensions/hosting/extensionImplementations.js +4 -0
- package/extensions/hosting/extensionImplementations.js.map +1 -0
- package/extensions/hosting/getExtensionImplementation.d.ts +1 -0
- package/extensions/hosting/getExtensionImplementation.js +9 -0
- package/extensions/hosting/getExtensionImplementation.js.map +1 -0
- package/extensions/hosting/hostingType.d.ts +2 -0
- package/extensions/hosting/hostingType.js +0 -0
- package/extensions/hosting/index.d.ts +4 -0
- package/extensions/hosting/index.js +4 -0
- package/extensions/hosting/registerExtensionImplementation.d.ts +12 -0
- package/extensions/hosting/registerExtensionImplementation.js +13 -0
- package/extensions/hosting/registerExtensionImplementation.js.map +1 -0
- package/extensions/index.d.ts +51 -48
- package/extensions/index.js +8 -11
- package/extensions/index.js.map +1 -1
- package/extensions/infra/Env.js +5 -0
- package/extensions/infra/Env.js.map +1 -1
- package/extensions/pulumi/ProductionEnvironments.js +2 -1
- package/extensions/pulumi/ProductionEnvironments.js.map +1 -1
- package/extensions/pulumi/PulumiResourceNamePrefix.js +2 -1
- package/extensions/pulumi/PulumiResourceNamePrefix.js.map +1 -1
- package/extensions/pulumi/index.d.ts +0 -3
- package/extensions/pulumi/index.js +0 -3
- package/features/Serve/Serve.d.ts +1 -1
- package/features/Serve/Serve.js.map +1 -1
- package/features/Watch/watchers/worker.js +3 -0
- package/features/Watch/watchers/worker.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/package.json +35 -31
- package/services/GetProjectConfigService/ConfigRenderErrorBoundary.d.ts +15 -0
- package/services/GetProjectConfigService/ConfigRenderErrorBoundary.js +23 -0
- package/services/GetProjectConfigService/ConfigRenderErrorBoundary.js.map +1 -0
- package/services/GetProjectConfigService/EnvContext.d.ts +3 -2
- package/services/GetProjectConfigService/EnvContext.js +4 -6
- package/services/GetProjectConfigService/EnvContext.js.map +1 -1
- package/services/GetProjectConfigService/FeatureFlagsContext.d.ts +26 -0
- package/services/GetProjectConfigService/FeatureFlagsContext.js +41 -0
- package/services/GetProjectConfigService/FeatureFlagsContext.js.map +1 -0
- package/services/GetProjectConfigService/GetProjectConfigService.js +14 -11
- package/services/GetProjectConfigService/GetProjectConfigService.js.map +1 -1
- package/services/GetProjectConfigService/LicenseDecoratedFeatureFlags.d.ts +8 -0
- package/services/GetProjectConfigService/LicenseDecoratedFeatureFlags.js +28 -0
- package/services/GetProjectConfigService/LicenseDecoratedFeatureFlags.js.map +1 -0
- package/services/GetProjectConfigService/WcpProjectLicenseContext.d.ts +1 -0
- package/services/GetProjectConfigService/WcpProjectLicenseContext.js +1 -0
- package/services/GetProjectConfigService/WcpProjectLicenseContext.js.map +1 -1
- package/services/GetProjectConfigService/getRenderCacheKey.d.ts +1 -0
- package/services/GetProjectConfigService/getRenderCacheKey.js +13 -0
- package/services/GetProjectConfigService/getRenderCacheKey.js.map +1 -0
- package/services/GetProjectConfigService/nullRenderer.d.ts +4 -0
- package/services/GetProjectConfigService/nullRenderer.js +83 -0
- package/services/GetProjectConfigService/nullRenderer.js.map +1 -0
- package/services/GetProjectConfigService/renderConfig.d.ts +3 -12
- package/services/GetProjectConfigService/renderConfig.js +10 -35
- package/services/GetProjectConfigService/renderConfig.js.map +1 -1
- package/services/GetProjectConfigService/renderExtensions.d.ts +8 -0
- package/services/GetProjectConfigService/renderExtensions.js +52 -0
- package/services/GetProjectConfigService/renderExtensions.js.map +1 -0
- package/services/InitProjectSdkService/InitProjectSdkService.js +12 -9
- package/services/InitProjectSdkService/InitProjectSdkService.js.map +1 -1
- package/services/InitProjectSdkService/applyWcpEnvVars.js +27 -9
- package/services/InitProjectSdkService/applyWcpEnvVars.js.map +1 -1
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.d.ts +3 -11
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js +7 -64
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js.map +1 -1
- package/services/StackOutputCacheService/StackOutputCacheService.d.ts +18 -0
- package/services/StackOutputCacheService/StackOutputCacheService.js +89 -0
- package/services/StackOutputCacheService/StackOutputCacheService.js.map +1 -0
- package/services/StackOutputCacheService/index.d.ts +1 -0
- package/services/StackOutputCacheService/index.js +1 -0
- package/services/UiService/UiService.d.ts +18 -0
- package/services/UiService/UiService.js +18 -2
- package/services/UiService/UiService.js.map +1 -1
- package/services/ValidateProjectConfigService/ValidateProjectConfigService.js +10 -7
- package/services/ValidateProjectConfigService/ValidateProjectConfigService.js.map +1 -1
- package/services/WcpService/GetProjectEnvironment.js +16 -5
- package/services/WcpService/GetProjectEnvironment.js.map +1 -1
- package/services/WcpService/WcpGqlClient.js +2 -2
- package/services/WcpService/WcpGqlClient.js.map +1 -1
- package/services/WcpService/fetchProjectEnvironmentByApiKey.d.ts +8 -0
- package/services/WcpService/fetchProjectEnvironmentByApiKey.js +21 -0
- package/services/WcpService/fetchProjectEnvironmentByApiKey.js.map +1 -0
- package/services/index.d.ts +1 -0
- package/services/index.js +1 -0
- package/utils/ExtensionSrcResolver.js +2 -2
- package/utils/ExtensionSrcResolver.js.map +1 -1
- package/utils/apiRuntimeEnv.d.ts +2 -2
- package/utils/apiRuntimeEnv.js.map +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/index.js +1 -0
- package/utils/trace/TraceRecorder.d.ts +17 -0
- package/utils/trace/TraceRecorder.js +51 -0
- package/utils/trace/TraceRecorder.js.map +1 -0
- package/utils/trace/formatTraceReport.d.ts +2 -0
- package/utils/trace/formatTraceReport.js +53 -0
- package/utils/trace/formatTraceReport.js.map +1 -0
- package/utils/trace/index.d.ts +6 -0
- package/utils/trace/index.js +6 -0
- package/utils/trace/isTraceRequested.d.ts +1 -0
- package/utils/trace/isTraceRequested.js +12 -0
- package/utils/trace/isTraceRequested.js.map +1 -0
- package/utils/trace/startTrace.d.ts +1 -0
- package/utils/trace/startTrace.js +19 -0
- package/utils/trace/startTrace.js.map +1 -0
- package/utils/trace/trace.d.ts +1 -0
- package/utils/trace/trace.js +13 -0
- package/utils/trace/trace.js.map +1 -0
- package/utils/trace/traceAsync.d.ts +1 -0
- package/utils/trace/traceAsync.js +13 -0
- package/utils/trace/traceAsync.js.map +1 -0
- package/components/Wcp.d.ts +0 -19
- package/components/Wcp.js +0 -37
- package/components/Wcp.js.map +0 -1
- package/extensions/ApiMaxBundleSize.d.ts +0 -4
- package/extensions/ApiMaxBundleSize.js +0 -23
- package/extensions/ApiMaxBundleSize.js.map +0 -1
- package/extensions/infra/Encryption.d.ts +0 -10
- package/extensions/infra/Encryption.js +0 -36
- package/extensions/infra/Encryption.js.map +0 -1
- package/extensions/infra/Hashing.d.ts +0 -5
- package/extensions/infra/Hashing.js +0 -27
- package/extensions/infra/Hashing.js.map +0 -1
- package/extensions/pulumi/AdminStackOutputValue.d.ts +0 -5
- package/extensions/pulumi/AdminStackOutputValue.js +0 -18
- package/extensions/pulumi/AdminStackOutputValue.js.map +0 -1
- package/extensions/pulumi/ApiStackOutputValue.d.ts +0 -5
- package/extensions/pulumi/ApiStackOutputValue.js +0 -18
- package/extensions/pulumi/ApiStackOutputValue.js.map +0 -1
- package/extensions/pulumi/CoreStackOutputValue.d.ts +0 -5
- package/extensions/pulumi/CoreStackOutputValue.js +0 -18
- package/extensions/pulumi/CoreStackOutputValue.js.map +0 -1
- package/rslib-runtime.js +0 -14
- package/rslib-runtime.js.map +0 -1
- package/services/GetProjectConfigService/renderConfigWorker.d.ts +0 -1
- package/services/GetProjectConfigService/renderConfigWorker.js +0 -57
- package/services/GetProjectConfigService/renderConfigWorker.js.map +0 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
class TraceRecorder {
|
|
2
|
+
get enabled() {
|
|
3
|
+
return this.isEnabled;
|
|
4
|
+
}
|
|
5
|
+
enable() {
|
|
6
|
+
this.isEnabled = true;
|
|
7
|
+
process.env.WEBINY_CLI_TRACE = "1";
|
|
8
|
+
}
|
|
9
|
+
start(label) {
|
|
10
|
+
if (!this.isEnabled) return ()=>{};
|
|
11
|
+
const entry = {
|
|
12
|
+
label,
|
|
13
|
+
start: performance.now(),
|
|
14
|
+
end: 0 / 0
|
|
15
|
+
};
|
|
16
|
+
this.entries.push(entry);
|
|
17
|
+
return ()=>{
|
|
18
|
+
entry.end = performance.now();
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
record(label, start, end) {
|
|
22
|
+
if (!this.isEnabled) return;
|
|
23
|
+
this.entries.push({
|
|
24
|
+
label,
|
|
25
|
+
start,
|
|
26
|
+
end
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
getEntries() {
|
|
30
|
+
const now = performance.now();
|
|
31
|
+
const entries = this.entries.map((entry)=>{
|
|
32
|
+
if (!Number.isNaN(entry.end)) return entry;
|
|
33
|
+
return {
|
|
34
|
+
...entry,
|
|
35
|
+
end: now,
|
|
36
|
+
unfinished: true
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
entries.sort((a, b)=>a.start - b.start);
|
|
40
|
+
return entries;
|
|
41
|
+
}
|
|
42
|
+
constructor(){
|
|
43
|
+
this.entries = [];
|
|
44
|
+
this.isEnabled = "1" === process.env.WEBINY_CLI_TRACE;
|
|
45
|
+
this.processLabel = "Webiny CLI";
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const traceRecorder = new TraceRecorder();
|
|
49
|
+
export { TraceRecorder, traceRecorder };
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=TraceRecorder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils/trace/TraceRecorder.js","sources":["../../../src/utils/trace/TraceRecorder.ts"],"sourcesContent":["export interface ITraceEntry {\n label: string;\n /* Milliseconds since this process started. */\n start: number;\n end: number;\n /* True when the process exited before the phase closed. `webiny --version` does this. */\n unfinished?: boolean;\n}\n\n/*\n * Collects the durations of named phases within a single process, so the CLI can print a timeline of\n * where a run spent its time. Timestamps are relative to process start, which means the report can\n * also account for the time spent before the first line of code ran (loading the module graph).\n *\n * Recording is off unless `WEBINY_CLI_TRACE` is set, and the `trace` helpers short-circuit when it is\n * off, so leaving the instrumentation in place costs a boolean check per phase.\n */\nexport class TraceRecorder {\n private readonly entries: ITraceEntry[] = [];\n\n private isEnabled: boolean = process.env.WEBINY_CLI_TRACE === \"1\";\n\n /* Distinguishes the reports of the main process and of the forked config render worker. */\n public processLabel = \"Webiny CLI\";\n\n public get enabled() {\n return this.isEnabled;\n }\n\n /*\n * Turns tracing on for the rest of the run. The environment variable is set as well, so that the\n * forked config render worker inherits it and reports its own timings.\n */\n public enable() {\n this.isEnabled = true;\n process.env.WEBINY_CLI_TRACE = \"1\";\n }\n\n /* Starts a phase and returns the function that closes it. */\n public start(label: string) {\n if (!this.isEnabled) {\n return () => {\n return;\n };\n }\n\n const entry: ITraceEntry = { label, start: performance.now(), end: NaN };\n this.entries.push(entry);\n\n return () => {\n entry.end = performance.now();\n };\n }\n\n /*\n * Records a phase that already finished. Used for time spent before tracing was installed, and\n * for phases whose label is only known once they are done.\n */\n public record(label: string, start: number, end: number) {\n if (!this.isEnabled) {\n return;\n }\n\n this.entries.push({ label, start, end });\n }\n\n /*\n * Phases still open when the report is built are closed at `now` and flagged. This happens on any\n * command that exits the process from inside its handler, `webiny --version` being the obvious one.\n */\n public getEntries(): ITraceEntry[] {\n const now = performance.now();\n\n const entries = this.entries.map(entry => {\n if (!Number.isNaN(entry.end)) {\n return entry;\n }\n\n return { ...entry, end: now, unfinished: true };\n });\n\n entries.sort((a, b) => a.start - b.start);\n\n return entries;\n }\n}\n\n/*\n * One recorder per process. The config render runs in a forked child process, which gets a recorder\n * and a report of its own. Kept next to the class because macOS filesystems are case-insensitive, so\n * a `traceRecorder.ts` module would collide with this file.\n */\nexport const traceRecorder = new TraceRecorder();\n"],"names":["TraceRecorder","process","label","entry","performance","NaN","start","end","now","entries","Number","a","b","traceRecorder"],"mappings":"AAiBO,MAAMA;IAQT,IAAW,UAAU;QACjB,OAAO,IAAI,CAAC,SAAS;IACzB;IAMO,SAAS;QACZ,IAAI,CAAC,SAAS,GAAG;QACjBC,QAAQ,GAAG,CAAC,gBAAgB,GAAG;IACnC;IAGO,MAAMC,KAAa,EAAE;QACxB,IAAI,CAAC,IAAI,CAAC,SAAS,EACf,OAAO,KAEP;QAGJ,MAAMC,QAAqB;YAAED;YAAO,OAAOE,YAAY,GAAG;YAAI,KAAKC,KAAG;QAAC;QACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAACF;QAElB,OAAO;YACHA,MAAM,GAAG,GAAGC,YAAY,GAAG;QAC/B;IACJ;IAMO,OAAOF,KAAa,EAAEI,KAAa,EAAEC,GAAW,EAAE;QACrD,IAAI,CAAC,IAAI,CAAC,SAAS,EACf;QAGJ,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;YAAEL;YAAOI;YAAOC;QAAI;IAC1C;IAMO,aAA4B;QAC/B,MAAMC,MAAMJ,YAAY,GAAG;QAE3B,MAAMK,UAAU,IAAI,CAAC,OAAO,CAAC,GAAG,CAACN,CAAAA;YAC7B,IAAI,CAACO,OAAO,KAAK,CAACP,MAAM,GAAG,GACvB,OAAOA;YAGX,OAAO;gBAAE,GAAGA,KAAK;gBAAE,KAAKK;gBAAK,YAAY;YAAK;QAClD;QAEAC,QAAQ,IAAI,CAAC,CAACE,GAAGC,IAAMD,EAAE,KAAK,GAAGC,EAAE,KAAK;QAExC,OAAOH;IACX;;aAlEiB,OAAO,GAAkB,EAAE;aAEpC,SAAS,GAAYR,AAAiC,QAAjCA,QAAQ,GAAG,CAAC,gBAAgB;QAEgC,KAClF,YAAY,GAAG;;AA8D1B;AAOO,MAAMY,gBAAgB,IAAIb"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
const toNestedNodes = (entries)=>{
|
|
2
|
+
const nodes = [];
|
|
3
|
+
const open = [];
|
|
4
|
+
for (const entry of entries){
|
|
5
|
+
while(open.length > 0 && open[open.length - 1].end < entry.end)open.pop();
|
|
6
|
+
nodes.push({
|
|
7
|
+
entry,
|
|
8
|
+
depth: open.length
|
|
9
|
+
});
|
|
10
|
+
open.push(entry);
|
|
11
|
+
}
|
|
12
|
+
return nodes;
|
|
13
|
+
};
|
|
14
|
+
const isWorthPrinting = (node, index, nodes)=>{
|
|
15
|
+
const duration = node.entry.end - node.entry.start;
|
|
16
|
+
if (Math.round(duration) > 0) return true;
|
|
17
|
+
const next = nodes[index + 1];
|
|
18
|
+
return void 0 !== next && next.depth > node.depth;
|
|
19
|
+
};
|
|
20
|
+
const formatRow = (label, duration, total, depth)=>{
|
|
21
|
+
const ms = `${Math.round(duration)} ms`.padStart(9);
|
|
22
|
+
const share = `${(duration / total * 100).toFixed(1)}%`.padStart(7);
|
|
23
|
+
const indent = " ".repeat(depth);
|
|
24
|
+
return `${ms} ${share} ${indent}${label}`;
|
|
25
|
+
};
|
|
26
|
+
const formatTraceReport = (processLabel, entries, total)=>{
|
|
27
|
+
if (0 === entries.length) return `${processLabel} trace: nothing was recorded.`;
|
|
28
|
+
const nodes = toNestedNodes(entries);
|
|
29
|
+
const printableNodes = nodes.filter(isWorthPrinting);
|
|
30
|
+
const hiddenCount = nodes.length - printableNodes.length;
|
|
31
|
+
const lines = [
|
|
32
|
+
`${processLabel} trace: ${Math.round(total)} ms total`,
|
|
33
|
+
""
|
|
34
|
+
];
|
|
35
|
+
for (const { entry, depth } of printableNodes){
|
|
36
|
+
const duration = entry.end - entry.start;
|
|
37
|
+
let label = entry.label;
|
|
38
|
+
if (entry.unfinished) label = `${label} (still running at exit)`;
|
|
39
|
+
lines.push(formatRow(label, duration, total, depth));
|
|
40
|
+
}
|
|
41
|
+
const topLevelNodes = nodes.filter((node)=>0 === node.depth);
|
|
42
|
+
const tracedTotal = topLevelNodes.reduce((sum, node)=>sum + (node.entry.end - node.entry.start), 0);
|
|
43
|
+
const untraced = total - tracedTotal;
|
|
44
|
+
if (untraced > 1) lines.push(formatRow("(untraced)", untraced, total, 0));
|
|
45
|
+
if (hiddenCount > 0) {
|
|
46
|
+
lines.push("");
|
|
47
|
+
lines.push(`${hiddenCount} phase(s) took under a millisecond and are not listed.`);
|
|
48
|
+
}
|
|
49
|
+
return lines.join("\n");
|
|
50
|
+
};
|
|
51
|
+
export { formatTraceReport };
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=formatTraceReport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils/trace/formatTraceReport.js","sources":["../../../src/utils/trace/formatTraceReport.ts"],"sourcesContent":["import { type ITraceEntry } from \"./TraceRecorder.js\";\n\ninterface ITraceNode {\n entry: ITraceEntry;\n depth: number;\n}\n\n/*\n * Phases are recorded flat, but they nest in practice (initializing the CLI contains rendering the\n * project config, which contains the child process fork). Rebuild the nesting from the timestamps: a\n * phase is a child of the closest still-open phase that fully contains it.\n */\nconst toNestedNodes = (entries: ITraceEntry[]): ITraceNode[] => {\n const nodes: ITraceNode[] = [];\n const open: ITraceEntry[] = [];\n\n for (const entry of entries) {\n while (open.length > 0 && open[open.length - 1].end < entry.end) {\n open.pop();\n }\n\n nodes.push({ entry, depth: open.length });\n open.push(entry);\n }\n\n return nodes;\n};\n\n/*\n * A run records a lot of phases that turn out to be instant: every command definition, every\n * extension type. Dropping the ones that round to zero and contain nothing keeps the report to the\n * handful of rows worth reading; a hidden phase is by definition not the bottleneck.\n *\n * The test is deliberately `Math.round`, matching how `formatRow` prints the duration, so that the\n * rows kept are exactly the rows that would show a non-zero figure. Comparing the raw duration\n * against 1 instead would hide a 0.6 ms phase that the report would have rendered as \"1 ms\".\n */\nconst isWorthPrinting = (node: ITraceNode, index: number, nodes: ITraceNode[]) => {\n const duration = node.entry.end - node.entry.start;\n if (Math.round(duration) > 0) {\n return true;\n }\n\n const next = nodes[index + 1];\n\n return next !== undefined && next.depth > node.depth;\n};\n\nconst formatRow = (label: string, duration: number, total: number, depth: number) => {\n const ms = `${Math.round(duration)} ms`.padStart(9);\n const share = `${((duration / total) * 100).toFixed(1)}%`.padStart(7);\n const indent = \" \".repeat(depth);\n\n return `${ms} ${share} ${indent}${label}`;\n};\n\nexport const formatTraceReport = (\n processLabel: string,\n entries: ITraceEntry[],\n total: number\n): string => {\n if (entries.length === 0) {\n return `${processLabel} trace: nothing was recorded.`;\n }\n\n const nodes = toNestedNodes(entries);\n const printableNodes = nodes.filter(isWorthPrinting);\n const hiddenCount = nodes.length - printableNodes.length;\n\n const lines = [`${processLabel} trace: ${Math.round(total)} ms total`, \"\"];\n\n for (const { entry, depth } of printableNodes) {\n const duration = entry.end - entry.start;\n let label = entry.label;\n if (entry.unfinished) {\n label = `${label} (still running at exit)`;\n }\n\n lines.push(formatRow(label, duration, total, depth));\n }\n\n const topLevelNodes = nodes.filter(node => node.depth === 0);\n const tracedTotal = topLevelNodes.reduce((sum, node) => {\n return sum + (node.entry.end - node.entry.start);\n }, 0);\n\n const untraced = total - tracedTotal;\n if (untraced > 1) {\n lines.push(formatRow(\"(untraced)\", untraced, total, 0));\n }\n\n if (hiddenCount > 0) {\n lines.push(\"\");\n lines.push(`${hiddenCount} phase(s) took under a millisecond and are not listed.`);\n }\n\n return lines.join(\"\\n\");\n};\n"],"names":["toNestedNodes","entries","nodes","open","entry","isWorthPrinting","node","index","duration","Math","next","undefined","formatRow","label","total","depth","ms","share","indent","formatTraceReport","processLabel","printableNodes","hiddenCount","lines","topLevelNodes","tracedTotal","sum","untraced"],"mappings":"AAYA,MAAMA,gBAAgB,CAACC;IACnB,MAAMC,QAAsB,EAAE;IAC9B,MAAMC,OAAsB,EAAE;IAE9B,KAAK,MAAMC,SAASH,QAAS;QACzB,MAAOE,KAAK,MAAM,GAAG,KAAKA,IAAI,CAACA,KAAK,MAAM,GAAG,EAAE,CAAC,GAAG,GAAGC,MAAM,GAAG,CAC3DD,KAAK,GAAG;QAGZD,MAAM,IAAI,CAAC;YAAEE;YAAO,OAAOD,KAAK,MAAM;QAAC;QACvCA,KAAK,IAAI,CAACC;IACd;IAEA,OAAOF;AACX;AAWA,MAAMG,kBAAkB,CAACC,MAAkBC,OAAeL;IACtD,MAAMM,WAAWF,KAAK,KAAK,CAAC,GAAG,GAAGA,KAAK,KAAK,CAAC,KAAK;IAClD,IAAIG,KAAK,KAAK,CAACD,YAAY,GACvB,OAAO;IAGX,MAAME,OAAOR,KAAK,CAACK,QAAQ,EAAE;IAE7B,OAAOG,AAASC,WAATD,QAAsBA,KAAK,KAAK,GAAGJ,KAAK,KAAK;AACxD;AAEA,MAAMM,YAAY,CAACC,OAAeL,UAAkBM,OAAeC;IAC/D,MAAMC,KAAK,GAAGP,KAAK,KAAK,CAACD,UAAU,GAAG,CAAC,CAAC,QAAQ,CAAC;IACjD,MAAMS,QAAQ,GAAI,AAACT,CAAAA,WAAWM,QAAS,GAAE,EAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC;IACnE,MAAMI,SAAS,KAAK,MAAM,CAACH;IAE3B,OAAO,GAAGC,GAAG,EAAE,EAAEC,MAAM,GAAG,EAAEC,SAASL,OAAO;AAChD;AAEO,MAAMM,oBAAoB,CAC7BC,cACAnB,SACAa;IAEA,IAAIb,AAAmB,MAAnBA,QAAQ,MAAM,EACd,OAAO,GAAGmB,aAAa,6BAA6B,CAAC;IAGzD,MAAMlB,QAAQF,cAAcC;IAC5B,MAAMoB,iBAAiBnB,MAAM,MAAM,CAACG;IACpC,MAAMiB,cAAcpB,MAAM,MAAM,GAAGmB,eAAe,MAAM;IAExD,MAAME,QAAQ;QAAC,GAAGH,aAAa,QAAQ,EAAEX,KAAK,KAAK,CAACK,OAAO,SAAS,CAAC;QAAE;KAAG;IAE1E,KAAK,MAAM,EAAEV,KAAK,EAAEW,KAAK,EAAE,IAAIM,eAAgB;QAC3C,MAAMb,WAAWJ,MAAM,GAAG,GAAGA,MAAM,KAAK;QACxC,IAAIS,QAAQT,MAAM,KAAK;QACvB,IAAIA,MAAM,UAAU,EAChBS,QAAQ,GAAGA,MAAM,wBAAwB,CAAC;QAG9CU,MAAM,IAAI,CAACX,UAAUC,OAAOL,UAAUM,OAAOC;IACjD;IAEA,MAAMS,gBAAgBtB,MAAM,MAAM,CAACI,CAAAA,OAAQA,AAAe,MAAfA,KAAK,KAAK;IACrD,MAAMmB,cAAcD,cAAc,MAAM,CAAC,CAACE,KAAKpB,OACpCoB,MAAOpB,CAAAA,KAAK,KAAK,CAAC,GAAG,GAAGA,KAAK,KAAK,CAAC,KAAI,GAC/C;IAEH,MAAMqB,WAAWb,QAAQW;IACzB,IAAIE,WAAW,GACXJ,MAAM,IAAI,CAACX,UAAU,cAAce,UAAUb,OAAO;IAGxD,IAAIQ,cAAc,GAAG;QACjBC,MAAM,IAAI,CAAC;QACXA,MAAM,IAAI,CAAC,GAAGD,YAAY,sDAAsD,CAAC;IACrF;IAEA,OAAOC,MAAM,IAAI,CAAC;AACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isTraceRequested: (argv: string[]) => boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const TRACE_FLAG = "--trace";
|
|
2
|
+
const TRACE_FLAG_ASSIGNMENT = `${TRACE_FLAG}=`;
|
|
3
|
+
const isTraceRequested = (argv)=>{
|
|
4
|
+
const index = argv.findIndex((arg)=>arg === TRACE_FLAG || arg.startsWith(TRACE_FLAG_ASSIGNMENT));
|
|
5
|
+
if (-1 === index) return false;
|
|
6
|
+
const flag = argv[index];
|
|
7
|
+
if (flag.startsWith(TRACE_FLAG_ASSIGNMENT)) return flag !== `${TRACE_FLAG_ASSIGNMENT}false`;
|
|
8
|
+
return "false" !== argv[index + 1];
|
|
9
|
+
};
|
|
10
|
+
export { isTraceRequested };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=isTraceRequested.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils/trace/isTraceRequested.js","sources":["../../../src/utils/trace/isTraceRequested.ts"],"sourcesContent":["const TRACE_FLAG = \"--trace\";\nconst TRACE_FLAG_ASSIGNMENT = `${TRACE_FLAG}=`;\n\n/*\n * Reads the `--trace` flag straight out of `process.argv`, because tracing has to be decided before\n * yargs exists: the phase it is most needed for is the module load that already happened by the time\n * the CLI entrypoint runs its first statement.\n *\n * That means matching what yargs would have concluded for a boolean option. It accepts a bare\n * `--trace`, the assignment form `--trace=true`, and a separated value `--trace false`, so all three\n * have to mean the same thing here as they do in `webiny --help`.\n */\nexport const isTraceRequested = (argv: string[]): boolean => {\n const index = argv.findIndex(arg => {\n return arg === TRACE_FLAG || arg.startsWith(TRACE_FLAG_ASSIGNMENT);\n });\n\n if (index === -1) {\n return false;\n }\n\n const flag = argv[index];\n if (flag.startsWith(TRACE_FLAG_ASSIGNMENT)) {\n return flag !== `${TRACE_FLAG_ASSIGNMENT}false`;\n }\n\n return argv[index + 1] !== \"false\";\n};\n"],"names":["TRACE_FLAG","TRACE_FLAG_ASSIGNMENT","isTraceRequested","argv","index","arg","flag"],"mappings":"AAAA,MAAMA,aAAa;AACnB,MAAMC,wBAAwB,GAAGD,WAAW,CAAC,CAAC;AAWvC,MAAME,mBAAmB,CAACC;IAC7B,MAAMC,QAAQD,KAAK,SAAS,CAACE,CAAAA,MAClBA,QAAQL,cAAcK,IAAI,UAAU,CAACJ;IAGhD,IAAIG,AAAU,OAAVA,OACA,OAAO;IAGX,MAAME,OAAOH,IAAI,CAACC,MAAM;IACxB,IAAIE,KAAK,UAAU,CAACL,wBAChB,OAAOK,SAAS,GAAGL,sBAAsB,KAAK,CAAC;IAGnD,OAAOE,AAAoB,YAApBA,IAAI,CAACC,QAAQ,EAAE;AAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const startTrace: (processLabel: string) => void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import fs from "fs";
|
|
2
|
+
import { traceRecorder } from "./TraceRecorder.js";
|
|
3
|
+
import { formatTraceReport } from "./formatTraceReport.js";
|
|
4
|
+
import { isTraceRequested } from "./isTraceRequested.js";
|
|
5
|
+
const startTrace = (processLabel)=>{
|
|
6
|
+
const requestedViaArgv = isTraceRequested(process.argv);
|
|
7
|
+
if (requestedViaArgv) traceRecorder.enable();
|
|
8
|
+
if (!traceRecorder.enabled) return;
|
|
9
|
+
traceRecorder.processLabel = processLabel;
|
|
10
|
+
traceRecorder.record("load modules", 0, performance.now());
|
|
11
|
+
process.on("exit", ()=>{
|
|
12
|
+
const entries = traceRecorder.getEntries();
|
|
13
|
+
const report = formatTraceReport(processLabel, entries, performance.now());
|
|
14
|
+
fs.writeSync(2, `\n${report}\n\n`);
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
export { startTrace };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=startTrace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils/trace/startTrace.js","sources":["../../../src/utils/trace/startTrace.ts"],"sourcesContent":["import fs from \"fs\";\nimport { traceRecorder } from \"./TraceRecorder.js\";\nimport { formatTraceReport } from \"./formatTraceReport.js\";\nimport { isTraceRequested } from \"./isTraceRequested.js\";\n\n/*\n * Call this as the very first statement of a CLI entrypoint. Everything that ran before it is\n * recorded as a single \"load modules\" phase: Node booting, then evaluating the entrypoint's import\n * graph. That phase is usually the largest one.\n *\n * None of this goes through `LoggerService`, and it is worth saying why, because that is the obvious\n * question. The logger needs `GetProjectService` and `ProjectSdkParamsService`, so it only exists\n * once the project SDK container has been built, and building that container is roughly two thirds\n * of what we are trying to measure. The phases before it (loading modules, the preflight checks) run\n * in `bin.ts` where there is no container at all, and the config render worker is a separate process\n * with no container either. Writing straight to stderr is also what lets the report survive an `exit`\n * handler, and keeping it off stdout means it can never corrupt the output of a piped command.\n */\nexport const startTrace = (processLabel: string) => {\n const requestedViaArgv = isTraceRequested(process.argv);\n if (requestedViaArgv) {\n traceRecorder.enable();\n }\n\n if (!traceRecorder.enabled) {\n return;\n }\n\n traceRecorder.processLabel = processLabel;\n traceRecorder.record(\"load modules\", 0, performance.now());\n\n process.on(\"exit\", () => {\n const entries = traceRecorder.getEntries();\n const report = formatTraceReport(processLabel, entries, performance.now());\n\n // `fs.writeSync` rather than `process.stderr.write`: when stderr is a pipe, which it is for\n // the forked render worker, a buffered write is dropped if the process exits first.\n fs.writeSync(2, `\\n${report}\\n\\n`);\n });\n};\n"],"names":["startTrace","processLabel","requestedViaArgv","isTraceRequested","process","traceRecorder","performance","entries","report","formatTraceReport","fs"],"mappings":";;;;AAkBO,MAAMA,aAAa,CAACC;IACvB,MAAMC,mBAAmBC,iBAAiBC,QAAQ,IAAI;IACtD,IAAIF,kBACAG,cAAc,MAAM;IAGxB,IAAI,CAACA,cAAc,OAAO,EACtB;IAGJA,cAAc,YAAY,GAAGJ;IAC7BI,cAAc,MAAM,CAAC,gBAAgB,GAAGC,YAAY,GAAG;IAEvDF,QAAQ,EAAE,CAAC,QAAQ;QACf,MAAMG,UAAUF,cAAc,UAAU;QACxC,MAAMG,SAASC,kBAAkBR,cAAcM,SAASD,YAAY,GAAG;QAIvEI,GAAG,SAAS,CAAC,GAAG,CAAC,EAAE,EAAEF,OAAO,IAAI,CAAC;IACrC;AACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function trace<T>(label: string, fn: () => T): T;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { traceRecorder } from "./TraceRecorder.js";
|
|
2
|
+
function trace(label, fn) {
|
|
3
|
+
if (!traceRecorder.enabled) return fn();
|
|
4
|
+
const stop = traceRecorder.start(label);
|
|
5
|
+
try {
|
|
6
|
+
return fn();
|
|
7
|
+
} finally{
|
|
8
|
+
stop();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export { trace };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=trace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils/trace/trace.js","sources":["../../../src/utils/trace/trace.ts"],"sourcesContent":["import { traceRecorder } from \"./TraceRecorder.js\";\n\n/* Times a synchronous phase of a CLI run. A no-op unless `WEBINY_CLI_TRACE` is set. */\nexport function trace<T>(label: string, fn: () => T): T {\n if (!traceRecorder.enabled) {\n return fn();\n }\n\n const stop = traceRecorder.start(label);\n\n try {\n return fn();\n } finally {\n stop();\n }\n}\n"],"names":["trace","label","fn","traceRecorder","stop"],"mappings":";AAGO,SAASA,MAASC,KAAa,EAAEC,EAAW;IAC/C,IAAI,CAACC,cAAc,OAAO,EACtB,OAAOD;IAGX,MAAME,OAAOD,cAAc,KAAK,CAACF;IAEjC,IAAI;QACA,OAAOC;IACX,SAAU;QACNE;IACJ;AACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function traceAsync<T>(label: string, fn: () => Promise<T>): Promise<T>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { traceRecorder } from "./TraceRecorder.js";
|
|
2
|
+
async function traceAsync(label, fn) {
|
|
3
|
+
if (!traceRecorder.enabled) return fn();
|
|
4
|
+
const stop = traceRecorder.start(label);
|
|
5
|
+
try {
|
|
6
|
+
return await fn();
|
|
7
|
+
} finally{
|
|
8
|
+
stop();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export { traceAsync };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=traceAsync.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils/trace/traceAsync.js","sources":["../../../src/utils/trace/traceAsync.ts"],"sourcesContent":["import { traceRecorder } from \"./TraceRecorder.js\";\n\n/* Times an asynchronous phase of a CLI run. A no-op unless `WEBINY_CLI_TRACE` is set. */\nexport async function traceAsync<T>(label: string, fn: () => Promise<T>): Promise<T> {\n if (!traceRecorder.enabled) {\n return fn();\n }\n\n const stop = traceRecorder.start(label);\n\n try {\n return await fn();\n } finally {\n stop();\n }\n}\n"],"names":["traceAsync","label","fn","traceRecorder","stop"],"mappings":";AAGO,eAAeA,WAAcC,KAAa,EAAEC,EAAoB;IACnE,IAAI,CAACC,cAAc,OAAO,EACtB,OAAOD;IAGX,MAAME,OAAOD,cAAc,KAAK,CAACF;IAEjC,IAAI;QACA,OAAO,MAAMC;IACjB,SAAU;QACNE;IACJ;AACJ"}
|
package/components/Wcp.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface ChildrenProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
}
|
|
5
|
-
declare function CanUseMultiTenancy({ children }: ChildrenProps): React.JSX.Element | null;
|
|
6
|
-
declare function CanUseTeams({ children }: ChildrenProps): React.JSX.Element | null;
|
|
7
|
-
declare function CanUsePrivateFiles({ children }: ChildrenProps): React.JSX.Element | null;
|
|
8
|
-
declare function CanUseFileManagerThreatDetection({ children }: ChildrenProps): React.JSX.Element | null;
|
|
9
|
-
declare function CanUseWorkflows({ children }: ChildrenProps): React.JSX.Element | null;
|
|
10
|
-
declare function CanUseHcmsFieldPermissions({ children }: ChildrenProps): React.JSX.Element | null;
|
|
11
|
-
export declare const Wcp: {
|
|
12
|
-
CanUseMultiTenancy: typeof CanUseMultiTenancy;
|
|
13
|
-
CanUseTeams: typeof CanUseTeams;
|
|
14
|
-
CanUsePrivateFiles: typeof CanUsePrivateFiles;
|
|
15
|
-
CanUseFileManagerThreatDetection: typeof CanUseFileManagerThreatDetection;
|
|
16
|
-
CanUseWorkflows: typeof CanUseWorkflows;
|
|
17
|
-
CanUseHcmsFieldPermissions: typeof CanUseHcmsFieldPermissions;
|
|
18
|
-
};
|
|
19
|
-
export {};
|
package/components/Wcp.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import react from "react";
|
|
2
|
-
import { useWcpProjectLicense } from "../services/GetProjectConfigService/WcpProjectLicenseContext.js";
|
|
3
|
-
function CanUseMultiTenancy({ children }) {
|
|
4
|
-
const wcp = useWcpProjectLicense();
|
|
5
|
-
return wcp.canUseMultiTenancy() ? /*#__PURE__*/ react.createElement(react.Fragment, null, children) : null;
|
|
6
|
-
}
|
|
7
|
-
function CanUseTeams({ children }) {
|
|
8
|
-
const wcp = useWcpProjectLicense();
|
|
9
|
-
return wcp.canUseTeams() ? /*#__PURE__*/ react.createElement(react.Fragment, null, children) : null;
|
|
10
|
-
}
|
|
11
|
-
function CanUsePrivateFiles({ children }) {
|
|
12
|
-
const wcp = useWcpProjectLicense();
|
|
13
|
-
return wcp.canUsePrivateFiles() ? /*#__PURE__*/ react.createElement(react.Fragment, null, children) : null;
|
|
14
|
-
}
|
|
15
|
-
function CanUseFileManagerThreatDetection({ children }) {
|
|
16
|
-
const wcp = useWcpProjectLicense();
|
|
17
|
-
return wcp.canUseFileManagerThreatDetection() ? /*#__PURE__*/ react.createElement(react.Fragment, null, children) : null;
|
|
18
|
-
}
|
|
19
|
-
function CanUseWorkflows({ children }) {
|
|
20
|
-
const wcp = useWcpProjectLicense();
|
|
21
|
-
return wcp.canUseWorkflows() ? /*#__PURE__*/ react.createElement(react.Fragment, null, children) : null;
|
|
22
|
-
}
|
|
23
|
-
function CanUseHcmsFieldPermissions({ children }) {
|
|
24
|
-
const wcp = useWcpProjectLicense();
|
|
25
|
-
return wcp.canUseHcmsFieldPermissions() ? /*#__PURE__*/ react.createElement(react.Fragment, null, children) : null;
|
|
26
|
-
}
|
|
27
|
-
const Wcp = {
|
|
28
|
-
CanUseMultiTenancy: CanUseMultiTenancy,
|
|
29
|
-
CanUseTeams: CanUseTeams,
|
|
30
|
-
CanUsePrivateFiles: CanUsePrivateFiles,
|
|
31
|
-
CanUseFileManagerThreatDetection: CanUseFileManagerThreatDetection,
|
|
32
|
-
CanUseWorkflows: CanUseWorkflows,
|
|
33
|
-
CanUseHcmsFieldPermissions: CanUseHcmsFieldPermissions
|
|
34
|
-
};
|
|
35
|
-
export { Wcp };
|
|
36
|
-
|
|
37
|
-
//# sourceMappingURL=Wcp.js.map
|
package/components/Wcp.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components/Wcp.js","sources":["../../src/components/Wcp.tsx"],"sourcesContent":["import React from \"react\";\nimport { useWcpProjectLicense } from \"~/services/GetProjectConfigService/WcpProjectLicenseContext.js\";\n\ninterface ChildrenProps {\n children: React.ReactNode;\n}\n\nfunction CanUseMultiTenancy({ children }: ChildrenProps) {\n const wcp = useWcpProjectLicense();\n\n return wcp.canUseMultiTenancy() ? <>{children}</> : null;\n}\n\nfunction CanUseTeams({ children }: ChildrenProps) {\n const wcp = useWcpProjectLicense();\n\n return wcp.canUseTeams() ? <>{children}</> : null;\n}\n\nfunction CanUsePrivateFiles({ children }: ChildrenProps) {\n const wcp = useWcpProjectLicense();\n\n return wcp.canUsePrivateFiles() ? <>{children}</> : null;\n}\n\nfunction CanUseFileManagerThreatDetection({ children }: ChildrenProps) {\n const wcp = useWcpProjectLicense();\n\n return wcp.canUseFileManagerThreatDetection() ? <>{children}</> : null;\n}\n\nfunction CanUseWorkflows({ children }: ChildrenProps) {\n const wcp = useWcpProjectLicense();\n\n return wcp.canUseWorkflows() ? <>{children}</> : null;\n}\n\nfunction CanUseHcmsFieldPermissions({ children }: ChildrenProps) {\n const wcp = useWcpProjectLicense();\n\n return wcp.canUseHcmsFieldPermissions() ? <>{children}</> : null;\n}\n\nexport const Wcp = {\n CanUseMultiTenancy,\n CanUseTeams,\n CanUsePrivateFiles,\n CanUseFileManagerThreatDetection,\n CanUseWorkflows,\n CanUseHcmsFieldPermissions\n};\n"],"names":["CanUseMultiTenancy","children","wcp","useWcpProjectLicense","CanUseTeams","CanUsePrivateFiles","CanUseFileManagerThreatDetection","CanUseWorkflows","CanUseHcmsFieldPermissions","Wcp"],"mappings":";;AAOA,SAASA,mBAAmB,EAAEC,QAAQ,EAAiB;IACnD,MAAMC,MAAMC;IAEZ,OAAOD,IAAI,kBAAkB,KAAK,WAAL,GAAK,0CAAGD,YAAe;AACxD;AAEA,SAASG,YAAY,EAAEH,QAAQ,EAAiB;IAC5C,MAAMC,MAAMC;IAEZ,OAAOD,IAAI,WAAW,KAAK,WAAL,GAAK,0CAAGD,YAAe;AACjD;AAEA,SAASI,mBAAmB,EAAEJ,QAAQ,EAAiB;IACnD,MAAMC,MAAMC;IAEZ,OAAOD,IAAI,kBAAkB,KAAK,WAAL,GAAK,0CAAGD,YAAe;AACxD;AAEA,SAASK,iCAAiC,EAAEL,QAAQ,EAAiB;IACjE,MAAMC,MAAMC;IAEZ,OAAOD,IAAI,gCAAgC,KAAK,WAAL,GAAK,0CAAGD,YAAe;AACtE;AAEA,SAASM,gBAAgB,EAAEN,QAAQ,EAAiB;IAChD,MAAMC,MAAMC;IAEZ,OAAOD,IAAI,eAAe,KAAK,WAAL,GAAK,0CAAGD,YAAe;AACrD;AAEA,SAASO,2BAA2B,EAAEP,QAAQ,EAAiB;IAC3D,MAAMC,MAAMC;IAEZ,OAAOD,IAAI,0BAA0B,KAAK,WAAL,GAAK,0CAAGD,YAAe;AAChE;AAEO,MAAMQ,MAAM;IACfT,oBAAAA;IACAI,aAAAA;IACAC,oBAAAA;IACAC,kCAAAA;IACAC,iBAAAA;IACAC,4BAAAA;AACJ"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import react from "react";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { defineExtension } from "../defineExtension/index.js";
|
|
4
|
-
import { EnvVar } from "./EnvVar.js";
|
|
5
|
-
const ApiMaxBundleSize = defineExtension({
|
|
6
|
-
type: "Infra/Api/MaxBundleSize",
|
|
7
|
-
tags: {
|
|
8
|
-
runtimeContext: "project"
|
|
9
|
-
},
|
|
10
|
-
description: "Set the maximum bundle size for the API build.",
|
|
11
|
-
paramsSchema: z.object({
|
|
12
|
-
size: z.number().int().positive().describe("Maximum bundle size in bytes.")
|
|
13
|
-
}),
|
|
14
|
-
render ({ size }) {
|
|
15
|
-
return /*#__PURE__*/ react.createElement(EnvVar, {
|
|
16
|
-
varName: "WEBINY_INFRA_API_MAX_BUNDLE_SIZE",
|
|
17
|
-
value: String(size)
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
export { ApiMaxBundleSize };
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=ApiMaxBundleSize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/ApiMaxBundleSize.js","sources":["../../src/extensions/ApiMaxBundleSize.tsx"],"sourcesContent":["import React from \"react\";\nimport { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\nimport { EnvVar } from \"~/extensions/EnvVar.js\";\n\nexport const ApiMaxBundleSize = defineExtension({\n type: \"Infra/Api/MaxBundleSize\",\n tags: { runtimeContext: \"project\" },\n description: \"Set the maximum bundle size for the API build.\",\n paramsSchema: z.object({\n size: z.number().int().positive().describe(\"Maximum bundle size in bytes.\")\n }),\n render({ size }) {\n return <EnvVar varName=\"WEBINY_INFRA_API_MAX_BUNDLE_SIZE\" value={String(size)} />;\n }\n});\n"],"names":["ApiMaxBundleSize","defineExtension","z","size","EnvVar","String"],"mappings":";;;;AAKO,MAAMA,mBAAmBC,gBAAgB;IAC5C,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,MAAMA,EAAE,MAAM,GAAG,GAAG,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC/C;IACA,QAAO,EAAEC,IAAI,EAAE;QACX,OAAO,WAAP,GAAO,oBAACC,QAAMA;YAAC,SAAQ;YAAmC,OAAOC,OAAOF;;IAC5E;AACJ"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const Encryption: import("~/defineExtension/index.js").ExtensionComponent<z.ZodObject<{
|
|
3
|
-
passphrase: z.ZodString;
|
|
4
|
-
salt: z.ZodOptional<z.ZodString>;
|
|
5
|
-
algorithm: z.ZodOptional<z.ZodEnum<{
|
|
6
|
-
"aes-128-gcm": "aes-128-gcm";
|
|
7
|
-
"aes-192-gcm": "aes-192-gcm";
|
|
8
|
-
"aes-256-gcm": "aes-256-gcm";
|
|
9
|
-
}>>;
|
|
10
|
-
}, z.core.$strip>>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import react from "react";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
4
|
-
import { BuildParam } from "../ApiBuildParam.js";
|
|
5
|
-
const SUPPORTED_ALGORITHMS = [
|
|
6
|
-
"aes-128-gcm",
|
|
7
|
-
"aes-192-gcm",
|
|
8
|
-
"aes-256-gcm"
|
|
9
|
-
];
|
|
10
|
-
const Encryption = defineExtension({
|
|
11
|
-
type: "Infra/Encryption",
|
|
12
|
-
tags: {
|
|
13
|
-
runtimeContext: "project"
|
|
14
|
-
},
|
|
15
|
-
description: "Configure the API's EncryptionService.",
|
|
16
|
-
paramsSchema: z.object({
|
|
17
|
-
passphrase: z.string().min(1).describe("The passphrase used to derive the AES encryption key via scrypt."),
|
|
18
|
-
salt: z.string().min(1).optional().describe("Optional scrypt salt. Ensures two projects using the same passphrase derive different encryption keys."),
|
|
19
|
-
algorithm: z["enum"](SUPPORTED_ALGORITHMS).optional().describe("AES-GCM algorithm. Defaults to aes-256-gcm.")
|
|
20
|
-
}),
|
|
21
|
-
render ({ passphrase, salt, algorithm }) {
|
|
22
|
-
return /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(BuildParam, {
|
|
23
|
-
paramName: "EncryptionPassphrase",
|
|
24
|
-
value: passphrase
|
|
25
|
-
}), salt && /*#__PURE__*/ react.createElement(BuildParam, {
|
|
26
|
-
paramName: "EncryptionSalt",
|
|
27
|
-
value: salt
|
|
28
|
-
}), algorithm && /*#__PURE__*/ react.createElement(BuildParam, {
|
|
29
|
-
paramName: "EncryptionAlgorithm",
|
|
30
|
-
value: algorithm
|
|
31
|
-
}));
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
export { Encryption };
|
|
35
|
-
|
|
36
|
-
//# sourceMappingURL=Encryption.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/infra/Encryption.js","sources":["../../../src/extensions/infra/Encryption.tsx"],"sourcesContent":["import React from \"react\";\nimport { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\nimport { BuildParam } from \"~/extensions/ApiBuildParam.js\";\n\nconst SUPPORTED_ALGORITHMS = [\"aes-128-gcm\", \"aes-192-gcm\", \"aes-256-gcm\"] as const;\n\nexport const Encryption = defineExtension({\n type: \"Infra/Encryption\",\n tags: { runtimeContext: \"project\" },\n description: \"Configure the API's EncryptionService.\",\n paramsSchema: z.object({\n passphrase: z\n .string()\n .min(1)\n .describe(\"The passphrase used to derive the AES encryption key via scrypt.\"),\n salt: z\n .string()\n .min(1)\n .optional()\n .describe(\n \"Optional scrypt salt. Ensures two projects using the same passphrase derive different encryption keys.\"\n ),\n algorithm: z\n .enum(SUPPORTED_ALGORITHMS)\n .optional()\n .describe(\"AES-GCM algorithm. Defaults to aes-256-gcm.\")\n }),\n render({ passphrase, salt, algorithm }) {\n return (\n <>\n <BuildParam paramName=\"EncryptionPassphrase\" value={passphrase} />\n {salt && <BuildParam paramName=\"EncryptionSalt\" value={salt} />}\n {algorithm && <BuildParam paramName=\"EncryptionAlgorithm\" value={algorithm} />}\n </>\n );\n }\n});\n"],"names":["SUPPORTED_ALGORITHMS","Encryption","defineExtension","z","passphrase","salt","algorithm","BuildParam"],"mappings":";;;;AAKA,MAAMA,uBAAuB;IAAC;IAAe;IAAe;CAAc;AAEnE,MAAMC,aAAaC,gBAAgB;IACtC,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,YAAYA,EAAAA,MACD,GACN,GAAG,CAAC,GACJ,QAAQ,CAAC;QACd,MAAMA,EAAAA,MACK,GACN,GAAG,CAAC,GACJ,QAAQ,GACR,QAAQ,CACL;QAER,WAAWA,CAAC,CAADA,OACF,CAACH,sBACL,QAAQ,GACR,QAAQ,CAAC;IAClB;IACA,QAAO,EAAEI,UAAU,EAAEC,IAAI,EAAEC,SAAS,EAAE;QAClC,OAAO,WAAP,GACI,wDACI,oBAACC,YAAUA;YAAC,WAAU;YAAuB,OAAOH;YACnDC,QAAQ,WAARA,GAAQ,oBAACE,YAAUA;YAAC,WAAU;YAAiB,OAAOF;YACtDC,aAAa,WAAbA,GAAa,oBAACC,YAAUA;YAAC,WAAU;YAAsB,OAAOD;;IAG7E;AACJ"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import react from "react";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
4
|
-
import { BuildParam } from "../ApiBuildParam.js";
|
|
5
|
-
const Hashing = defineExtension({
|
|
6
|
-
type: "Infra/Hashing",
|
|
7
|
-
tags: {
|
|
8
|
-
runtimeContext: "project"
|
|
9
|
-
},
|
|
10
|
-
description: "Configure the API's hashing service (scrypt).",
|
|
11
|
-
paramsSchema: z.object({
|
|
12
|
-
pepper: z.string().min(1).optional().describe("Server-side secret folded into every hash (a 'pepper'). It is NOT stored with the hash, so a stolen database alone cannot be brute-forced without it. Changing it invalidates existing hashes."),
|
|
13
|
-
cost: z.number().int().positive().optional().describe("scrypt CPU/memory cost parameter N (a power of two). Defaults to 16384.")
|
|
14
|
-
}),
|
|
15
|
-
render ({ pepper, cost }) {
|
|
16
|
-
return /*#__PURE__*/ react.createElement(react.Fragment, null, pepper && /*#__PURE__*/ react.createElement(BuildParam, {
|
|
17
|
-
paramName: "HashingPepper",
|
|
18
|
-
value: pepper
|
|
19
|
-
}), cost && /*#__PURE__*/ react.createElement(BuildParam, {
|
|
20
|
-
paramName: "HashingCost",
|
|
21
|
-
value: cost
|
|
22
|
-
}));
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
export { Hashing };
|
|
26
|
-
|
|
27
|
-
//# sourceMappingURL=Hashing.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/infra/Hashing.js","sources":["../../../src/extensions/infra/Hashing.tsx"],"sourcesContent":["import React from \"react\";\nimport { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\nimport { BuildParam } from \"~/extensions/ApiBuildParam.js\";\n\nexport const Hashing = defineExtension({\n type: \"Infra/Hashing\",\n tags: { runtimeContext: \"project\" },\n description: \"Configure the API's hashing service (scrypt).\",\n paramsSchema: z.object({\n pepper: z\n .string()\n .min(1)\n .optional()\n .describe(\n \"Server-side secret folded into every hash (a 'pepper'). It is NOT stored with the \" +\n \"hash, so a stolen database alone cannot be brute-forced without it. Changing it \" +\n \"invalidates existing hashes.\"\n ),\n cost: z\n .number()\n .int()\n .positive()\n .optional()\n .describe(\"scrypt CPU/memory cost parameter N (a power of two). Defaults to 16384.\")\n }),\n render({ pepper, cost }) {\n return (\n <>\n {pepper && <BuildParam paramName=\"HashingPepper\" value={pepper} />}\n {cost && <BuildParam paramName=\"HashingCost\" value={cost} />}\n </>\n );\n }\n});\n"],"names":["Hashing","defineExtension","z","pepper","cost","BuildParam"],"mappings":";;;;AAKO,MAAMA,UAAUC,gBAAgB;IACnC,MAAM;IACN,MAAM;QAAE,gBAAgB;IAAU;IAClC,aAAa;IACb,cAAcC,EAAE,MAAM,CAAC;QACnB,QAAQA,EAAAA,MACG,GACN,GAAG,CAAC,GACJ,QAAQ,GACR,QAAQ,CACL;QAIR,MAAMA,EAAAA,MACK,GACN,GAAG,GACH,QAAQ,GACR,QAAQ,GACR,QAAQ,CAAC;IAClB;IACA,QAAO,EAAEC,MAAM,EAAEC,IAAI,EAAE;QACnB,OAAO,WAAP,GACI,0CACKD,UAAU,WAAVA,GAAU,oBAACE,YAAUA;YAAC,WAAU;YAAgB,OAAOF;YACvDC,QAAQ,WAARA,GAAQ,oBAACC,YAAUA;YAAC,WAAU;YAAc,OAAOD;;IAGhE;AACJ"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
3
|
-
const AdminStackOutputValue = defineExtension({
|
|
4
|
-
type: "Admin/StackOutputValue",
|
|
5
|
-
tags: {
|
|
6
|
-
runtimeContext: "project",
|
|
7
|
-
appName: "admin"
|
|
8
|
-
},
|
|
9
|
-
description: "Add custom output values to the Admin stack.",
|
|
10
|
-
multiple: true,
|
|
11
|
-
paramsSchema: z.object({
|
|
12
|
-
key: z.string().describe("The key for the output value"),
|
|
13
|
-
value: z.any().describe("The value to output")
|
|
14
|
-
})
|
|
15
|
-
});
|
|
16
|
-
export { AdminStackOutputValue };
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=AdminStackOutputValue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/pulumi/AdminStackOutputValue.js","sources":["../../../src/extensions/pulumi/AdminStackOutputValue.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\n\nexport const AdminStackOutputValue = defineExtension({\n type: \"Admin/StackOutputValue\",\n tags: { runtimeContext: \"project\", appName: \"admin\" },\n description: \"Add custom output values to the Admin stack.\",\n multiple: true,\n paramsSchema: z.object({\n key: z.string().describe(\"The key for the output value\"),\n value: z.any().describe(\"The value to output\")\n })\n});\n"],"names":["AdminStackOutputValue","defineExtension","z"],"mappings":";;AAGO,MAAMA,wBAAwBC,gBAAgB;IACjD,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,SAAS;IAAQ;IACpD,aAAa;IACb,UAAU;IACV,cAAcC,EAAE,MAAM,CAAC;QACnB,KAAKA,EAAE,MAAM,GAAG,QAAQ,CAAC;QACzB,OAAOA,EAAE,GAAG,GAAG,QAAQ,CAAC;IAC5B;AACJ"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
3
|
-
const ApiStackOutputValue = defineExtension({
|
|
4
|
-
type: "Api/StackOutputValue",
|
|
5
|
-
tags: {
|
|
6
|
-
runtimeContext: "project",
|
|
7
|
-
appName: "api"
|
|
8
|
-
},
|
|
9
|
-
description: "Add custom output values to the Api stack.",
|
|
10
|
-
multiple: true,
|
|
11
|
-
paramsSchema: z.object({
|
|
12
|
-
key: z.string().describe("The key for the output value"),
|
|
13
|
-
value: z.any().describe("The value to output")
|
|
14
|
-
})
|
|
15
|
-
});
|
|
16
|
-
export { ApiStackOutputValue };
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=ApiStackOutputValue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/pulumi/ApiStackOutputValue.js","sources":["../../../src/extensions/pulumi/ApiStackOutputValue.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\n\nexport const ApiStackOutputValue = defineExtension({\n type: \"Api/StackOutputValue\",\n tags: { runtimeContext: \"project\", appName: \"api\" },\n description: \"Add custom output values to the Api stack.\",\n multiple: true,\n paramsSchema: z.object({\n key: z.string().describe(\"The key for the output value\"),\n value: z.any().describe(\"The value to output\")\n })\n});\n"],"names":["ApiStackOutputValue","defineExtension","z"],"mappings":";;AAGO,MAAMA,sBAAsBC,gBAAgB;IAC/C,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,SAAS;IAAM;IAClD,aAAa;IACb,UAAU;IACV,cAAcC,EAAE,MAAM,CAAC;QACnB,KAAKA,EAAE,MAAM,GAAG,QAAQ,CAAC;QACzB,OAAOA,EAAE,GAAG,GAAG,QAAQ,CAAC;IAC5B;AACJ"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { defineExtension } from "../../defineExtension/index.js";
|
|
3
|
-
const CoreStackOutputValue = defineExtension({
|
|
4
|
-
type: "Core/StackOutputValue",
|
|
5
|
-
tags: {
|
|
6
|
-
runtimeContext: "project",
|
|
7
|
-
appName: "core"
|
|
8
|
-
},
|
|
9
|
-
description: "Add custom output values to the Core stack.",
|
|
10
|
-
multiple: true,
|
|
11
|
-
paramsSchema: z.object({
|
|
12
|
-
key: z.string().describe("The key for the output value"),
|
|
13
|
-
value: z.any().describe("The value to output")
|
|
14
|
-
})
|
|
15
|
-
});
|
|
16
|
-
export { CoreStackOutputValue };
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=CoreStackOutputValue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions/pulumi/CoreStackOutputValue.js","sources":["../../../src/extensions/pulumi/CoreStackOutputValue.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { defineExtension } from \"~/defineExtension/index.js\";\n\nexport const CoreStackOutputValue = defineExtension({\n type: \"Core/StackOutputValue\",\n tags: { runtimeContext: \"project\", appName: \"core\" },\n description: \"Add custom output values to the Core stack.\",\n multiple: true,\n paramsSchema: z.object({\n key: z.string().describe(\"The key for the output value\"),\n value: z.any().describe(\"The value to output\")\n })\n});\n"],"names":["CoreStackOutputValue","defineExtension","z"],"mappings":";;AAGO,MAAMA,uBAAuBC,gBAAgB;IAChD,MAAM;IACN,MAAM;QAAE,gBAAgB;QAAW,SAAS;IAAO;IACnD,aAAa;IACb,UAAU;IACV,cAAcC,EAAE,MAAM,CAAC;QACnB,KAAKA,EAAE,MAAM,GAAG,QAAQ,CAAC;QACzB,OAAOA,EAAE,GAAG,GAAG,QAAQ,CAAC;IAC5B;AACJ"}
|
package/rslib-runtime.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
var __webpack_require__ = {};
|
|
2
|
-
(()=>{
|
|
3
|
-
__webpack_require__.g = (()=>{
|
|
4
|
-
if ('object' == typeof globalThis) return globalThis;
|
|
5
|
-
try {
|
|
6
|
-
return this || new Function('return this')();
|
|
7
|
-
} catch (e) {
|
|
8
|
-
if ('object' == typeof window) return window;
|
|
9
|
-
}
|
|
10
|
-
})();
|
|
11
|
-
})();
|
|
12
|
-
export { __webpack_require__ };
|
|
13
|
-
|
|
14
|
-
//# sourceMappingURL=rslib-runtime.js.map
|
package/rslib-runtime.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rslib-runtime.js","sources":["webpack://webpack/runtime/global"],"sourcesContent":["__webpack_require__.g = (() => {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();"],"names":["__webpack_require__","globalThis","Function","e","window"],"mappings":";;IAAAA,oBAAoB,CAAC,GAAG,AAAC;QACxB,IAAI,AAAsB,YAAtB,OAAOC,YAAyB,OAAOA;QAC3C,IAAI;YACH,OAAO,IAAI,IAAI,IAAIC,SAAS;QAC7B,EAAE,OAAOC,GAAG;YACX,IAAI,AAAkB,YAAlB,OAAOC,QAAqB,OAAOA;QACxC;IACD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "tsx/esm";
|