@go-to-k/cdkd 0.281.4 → 0.281.6
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/dist/{asg-provider-B1QR4dCd.js → asg-provider-bIEhcjVs.js} +2 -2
- package/dist/{asg-provider-B1QR4dCd.js.map → asg-provider-bIEhcjVs.js.map} +1 -1
- package/dist/cli.js +93 -6
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-Di4-1RJP.js → deploy-engine-BadwP9FL.js} +19 -7
- package/dist/deploy-engine-BadwP9FL.js.map +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-Di4-1RJP.js.map +0 -1
|
@@ -1127,6 +1127,15 @@ const CDK_ASM_VERSION = "38.0.0";
|
|
|
1127
1127
|
/** Maximum context size before overflow to temp file (32KB) */
|
|
1128
1128
|
const CONTEXT_OVERFLOW_LIMIT = 32 * 1024;
|
|
1129
1129
|
/**
|
|
1130
|
+
* Remove one matched pair of surrounding quotes from a shell token, so a quoted
|
|
1131
|
+
* entrypoint (`"bin/app.js"`) is recognized as a .js file and re-quoted cleanly.
|
|
1132
|
+
*/
|
|
1133
|
+
function stripSurroundingQuotes(token) {
|
|
1134
|
+
const quote = token[0];
|
|
1135
|
+
if (token.length >= 2 && (quote === "\"" || quote === "'") && token.endsWith(quote)) return token.slice(1, -1);
|
|
1136
|
+
return token;
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1130
1139
|
* Executes CDK app as subprocess to produce a cloud assembly
|
|
1131
1140
|
*/
|
|
1132
1141
|
var AppExecutor = class {
|
|
@@ -1171,14 +1180,17 @@ var AppExecutor = class {
|
|
|
1171
1180
|
}
|
|
1172
1181
|
/**
|
|
1173
1182
|
* Determine how to execute the app command
|
|
1174
|
-
* - If
|
|
1183
|
+
* - If the command's FIRST token is a bare .js file, prepend node
|
|
1175
1184
|
* - Otherwise execute as shell command
|
|
1176
1185
|
*/
|
|
1177
1186
|
guessExecutable(app) {
|
|
1178
1187
|
const trimmed = app.trim();
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1188
|
+
const parts = trimmed.split(/\s+/);
|
|
1189
|
+
const first = parts[0];
|
|
1190
|
+
if (first === void 0 || first === "") return trimmed;
|
|
1191
|
+
const entrypoint = stripSurroundingQuotes(first);
|
|
1192
|
+
if (entrypoint.endsWith(".js")) {
|
|
1193
|
+
parts[0] = `"${process.execPath}" "${entrypoint}"`;
|
|
1182
1194
|
return parts.join(" ");
|
|
1183
1195
|
}
|
|
1184
1196
|
return trimmed;
|
|
@@ -13064,7 +13076,7 @@ var CloudControlProvider = class {
|
|
|
13064
13076
|
if (context?.finalSnapshotIdentifier !== void 0) throw new ProvisioningError(`${logicalId} (${resourceType}) requires a final snapshot (DeletionPolicy: Snapshot), but the Cloud Control API delete route has no final-snapshot parameter. Re-run with --skip-final-snapshot after snapshotting manually, or retain the resource.`, resourceType, logicalId, physicalId);
|
|
13065
13077
|
if (context?.removeProtection === true && resourceType === "AWS::AutoScaling::AutoScalingGroup") {
|
|
13066
13078
|
this.logger.debug(`Delegating protected AutoScalingGroup ${logicalId} delete to the SDK ASGProvider (Cloud Control cannot force-delete a protected ASG)`);
|
|
13067
|
-
const { ASGProvider } = await import("./asg-provider-
|
|
13079
|
+
const { ASGProvider } = await import("./asg-provider-bIEhcjVs.js").then((n) => n.n);
|
|
13068
13080
|
await new ASGProvider().delete(logicalId, physicalId, resourceType, _properties, context);
|
|
13069
13081
|
return;
|
|
13070
13082
|
}
|
|
@@ -19938,7 +19950,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
19938
19950
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
19939
19951
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
19940
19952
|
function getCdkdVersion() {
|
|
19941
|
-
return "0.281.
|
|
19953
|
+
return "0.281.6";
|
|
19942
19954
|
}
|
|
19943
19955
|
/**
|
|
19944
19956
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -22107,4 +22119,4 @@ var DeployEngine = class {
|
|
|
22107
22119
|
|
|
22108
22120
|
//#endregion
|
|
22109
22121
|
export { requireConfigArray as $, expectedOwnerParam as $t, green as A, withErrorHandling as An, getDockerCmd as At, slowCcOperationTimeoutMs as B, resolveAutoAssetStorage as Bt, MULTI_REGION_RECREATE_BLOCKED_TYPES as C, StackHasActiveImportsError as Cn, ensureAssetStorage as Ct, bold as D, formatError as Dn, validateContainerRepoName as Dt, formatResourceLine as E, SynthesisError as En, validateAssetBucketName as Et, clearOnUpdateRemoval as F, Synthesizer as Ft, refStateLookupFromResource as G, resolveUseCdkBootstrapAssets as Gt, isTerminationProtectionPropagationError as H, resolveSkipPrefix as Ht, ProviderRegistry as I, synthesisStatusMessage as It, resolveExplicitPhysicalId as J, CFN_TEMPLATE_BODY_LIMIT as Jt, WAFv2WebACLProvider as K, stateBucketExistenceConfirmed as Kt, findActionableSilentDrops as L, getDefaultStateBucketName as Lt, yellow as M, runDockerStreaming as Mt, IAMRoleProvider as N, AssetManifestLoader as Nt, cyan as O, isCdkdError as On, buildDockerImage as Ot, collectInlinePolicyNamesManagedBySiblings as P, getDockerImageBySourceHash as Pt, replayWarn as Q, uploadCfnTemplate as Qt, findSilentDropProperties as R, getLegacyStateBucketName as Rt, extractDeploymentEventError as S, ResourceUpdateNotSupportedError as Sn, BOOTSTRAP_MARKER_PREFIX as St, renderStatefulReason as T, StateError as Tn, parseBootstrapMarker as Tt, IntrinsicFunctionResolver as U, resolveStateBucketWithDefault as Ut, disableInstanceApiTermination as V, resolveCaptureObservedState as Vt, cfnRefValueFromPhysicalId as W, resolveStateBucketWithDefaultAndSource as Wt, configStringRefusal as X, MIGRATE_TMP_PREFIX as Xt, assertRegionMatch as Y, CFN_TEMPLATE_URL_LIMIT as Yt, readConfigString as Z, findLargeInlineResources as Zt, createPreDeleteFinalSnapshot as _, MissingCdkCliError as _n, buildAssetRedirectMap as _t, DeploymentEventsStore as a, getAwsClients as an, withRetry as at, unsupportedFinalSnapshotError as b, ProvisioningError as bn, rewriteTemplateAssetReferences as bt, replayFailedOperations as c, AssetError as cn, DagBuilder as ct, IMPLICIT_DELETE_DEPENDENCIES as d, DependencyError as dn, S3StateBackend as dt, AssemblyReader as en, requireConfigObject as et, computeImplicitDeleteEdges as f, DeployCancelledError as fn, rebuildClientForBucketRegion as ft, ccRoutedFinalSnapshotError as g, LockError as gn, WorkGraph as gt, buildFinalSnapshotIdentifier as h, LocalStartServiceError as hn, stringifyValue as ht, DeploymentEventsReader as i, AwsClients as in, describeTypeWithThrottleRetry as it, red as j, __exportAll as jn, runDockerForeground as jt, gray as k, normalizeAwsError as kn, formatDockerLoginError as kt, replayRollback as l, CdkdError as ln, TemplateParser as lt, PRE_DELETE_SNAPSHOT_TYPES as m, LocalMigrateError as mn, AssetPublisher as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, clearBucketRegionCache as nn, applyRoleArnIfSet as nt, planFailedOps as o, resetAwsClients as on, isRetryableTransientError as ot, ATOMIC_FINAL_SNAPSHOT_TYPES as p, LocalInvokeBuildError as pn, shouldRetainResource as pt, normalizeAwsTagsToCfn as q, warnDeprecatedNoPrefixCliFlag as qt, DeployEngine as r, resolveBucketRegion as rn, DiffCalculator as rt, planRollback as s, setAwsClients as sn, isThrottlingError as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, processStackMessages as tn, requireConfigString as tt, withResourceDeadline as u, ConfigError as un, LockManager as ut, isFinalSnapshotError as v, NestedStackChildDirectDestroyError as vn, createAssetRedirectResolver as vt, isStatefulRecreateTargetSync as w, StackTerminationProtectionError as wn, getBootstrapMarkerKey as wt, makeCanonicalizePropertiesFn as x, ResourceTimeoutError as xn, AssetModeResolver as xt, refusesFinalSnapshot as y, PartialFailureError as yn, loadPublishableAssetManifest as yt, CloudControlProvider as z, resolveApp as zt };
|
|
22110
|
-
//# sourceMappingURL=deploy-engine-
|
|
22122
|
+
//# sourceMappingURL=deploy-engine-BadwP9FL.js.map
|