@go-to-k/cdkd 0.94.12 → 0.94.14

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.
@@ -6673,6 +6673,7 @@ var CustomResourceProvider = class CustomResourceProvider {
6673
6673
  this.logger.debug(`Creating custom resource ${logicalId} (${resourceType})`);
6674
6674
  const serviceToken = properties["ServiceToken"];
6675
6675
  if (!serviceToken) throw new ProvisioningError(`ServiceToken is required for custom resource ${logicalId}`, resourceType, logicalId);
6676
+ if (typeof serviceToken !== "string") throw new ProvisioningError(`Custom Resource ${logicalId}: ServiceToken is not a resolved string ARN (got ${typeof serviceToken}). This usually indicates state was written by a pre-fix cdkd import; re-run \`cdkd import\` or \`cdkd state orphan <stack>\` to recover.`, resourceType, logicalId);
6676
6677
  try {
6677
6678
  const invocation = await this.prepareInvocation();
6678
6679
  const request = {
@@ -6706,6 +6707,7 @@ var CustomResourceProvider = class CustomResourceProvider {
6706
6707
  this.logger.debug(`Updating custom resource ${logicalId}: ${physicalId} (${resourceType})`);
6707
6708
  const serviceToken = properties["ServiceToken"];
6708
6709
  if (!serviceToken) throw new ProvisioningError(`ServiceToken is required for custom resource ${logicalId}`, resourceType, logicalId, physicalId);
6710
+ if (typeof serviceToken !== "string") throw new ProvisioningError(`Custom Resource ${logicalId}: ServiceToken is not a resolved string ARN (got ${typeof serviceToken}). This usually indicates state was written by a pre-fix cdkd import; re-run \`cdkd import\` or \`cdkd state orphan <stack>\` to recover.`, resourceType, logicalId, physicalId);
6709
6711
  try {
6710
6712
  const invocation = await this.prepareInvocation();
6711
6713
  const request = {
@@ -6750,6 +6752,7 @@ var CustomResourceProvider = class CustomResourceProvider {
6750
6752
  this.logger.warn(`No ServiceToken found for custom resource ${logicalId}, skipping deletion`);
6751
6753
  return;
6752
6754
  }
6755
+ if (typeof serviceToken !== "string") throw new ProvisioningError(`Custom Resource ${logicalId}: ServiceToken is not a resolved string ARN (got ${typeof serviceToken}). This usually indicates state was written by a pre-fix cdkd import; re-run \`cdkd import\` or \`cdkd state orphan <stack>\` to recover.`, resourceType, logicalId, physicalId);
6753
6756
  try {
6754
6757
  const invocation = await this.prepareInvocation();
6755
6758
  const request = {
@@ -9237,4 +9240,4 @@ var DeployEngine = class {
9237
9240
 
9238
9241
  //#endregion
9239
9242
  export { isCdkdError as $, resolveCaptureObservedState as A, ConfigError as B, stringifyValue as C, getDefaultStateBucketName as D, Synthesizer as E, AssemblyReader as F, ProvisioningError as G, LocalInvokeBuildError as H, clearBucketRegionCache as I, RouteDiscoveryError as J, ResourceTimeoutError as K, resolveBucketRegion as L, resolveStateBucketWithDefault as M, resolveStateBucketWithDefaultAndSource as N, getLegacyStateBucketName as O, warnDeprecatedNoPrefixCliFlag as P, formatError as Q, AssetError as R, AssetPublisher as S, buildDockerImage as T, LockError as U, DependencyError as V, PartialFailureError as W, StateError as X, StackTerminationProtectionError as Y, SynthesisError as Z, DiffCalculator as _, withRetry as a, runStackBuffered as at, LockManager as b, collectInlinePolicyNamesManagedBySiblings as c, PATTERN_B_RESOURCE_TYPES as ct, normalizeAwsTagsToCfn as d, withSkipPrefix as dt, normalizeAwsError as et, resolveExplicitPhysicalId as f, withStackName as ft, IntrinsicFunctionResolver as g, assertRegionMatch as h, withResourceDeadline as i, setLogger as it, resolveSkipPrefix as j, resolveApp as k, CDK_PATH_TAG as l, generateResourceName as lt, CloudControlProvider as m, DEFAULT_RESOURCE_WARN_AFTER_MS as n, ConsoleLogger as nt, IMPLICIT_DELETE_DEPENDENCIES as o, getLiveRenderer as ot, ProviderRegistry as p, ResourceUpdateNotSupportedError as q, DeployEngine as r, getLogger as rt, IAMRoleProvider as s, PATTERN_B_NAME_PROPERTIES as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, withErrorHandling as tt, matchesCdkPath as u, generateResourceNameWithFallback as ut, DagBuilder as v, WorkGraph as w, S3StateBackend as x, TemplateParser as y, CdkdError as z };
9240
- //# sourceMappingURL=deploy-engine-SarGY6-L.js.map
9243
+ //# sourceMappingURL=deploy-engine-Cl7v7Ml5.js.map