@cdk8s/awscdk-resolver 0.0.699 → 0.0.700

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/.jsii CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://aws.amazon.com"
8
8
  },
9
9
  "bundled": {
10
- "@aws-sdk/client-cloudformation": "^3.1143.0"
10
+ "@aws-sdk/client-cloudformation": "^3.1144.0"
11
11
  },
12
12
  "dependencies": {
13
13
  "aws-cdk-lib": "^2.195.0",
@@ -4083,6 +4083,6 @@
4083
4083
  "symbolId": "src/resolve:AwsCdkResolver"
4084
4084
  }
4085
4085
  },
4086
- "version": "0.0.699",
4087
- "fingerprint": "AHxS99P5jPdptx8+EdETjngx7BOnZxaLNLVdGAbv4iQ="
4086
+ "version": "0.0.700",
4087
+ "fingerprint": "uQTOECyzb5bORy8+2JO2fgu1iJhVNMopmkWcvpm7hbs="
4088
4088
  }
package/lib/resolve.js CHANGED
@@ -39,7 +39,7 @@ const child_process_1 = require("child_process");
39
39
  const path = __importStar(require("path"));
40
40
  const aws_cdk_lib_1 = require("aws-cdk-lib");
41
41
  class AwsCdkResolver {
42
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdk8s/awscdk-resolver.AwsCdkResolver", version: "0.0.699" };
42
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdk8s/awscdk-resolver.AwsCdkResolver", version: "0.0.700" };
43
43
  resolve(context) {
44
44
  if (!aws_cdk_lib_1.Token.isUnresolved(context.value)) {
45
45
  return;
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1142.0";
72
+ var version = "3.1143.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudformation",
3
- "version": "3.1143.0",
3
+ "version": "3.1144.0",
4
4
  "description": "AWS SDK for JavaScript Cloudformation Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudformation",
6
6
  "license": "Apache-2.0",
@@ -765,6 +765,7 @@ const createAggregatedClient = (commands, Client, options) => {
765
765
  };
766
766
 
767
767
  class ServiceException extends Error {
768
+ static shapeId = "smithy.ts.sdk.synthetic.nonamespace.client#ServiceException";
768
769
  $fault;
769
770
  $response;
770
771
  $retryable;
@@ -796,22 +797,43 @@ class ServiceException extends Error {
796
797
  if (this.prototype.isPrototypeOf(instance)) {
797
798
  return true;
798
799
  }
799
- const targetName = this.name;
800
- if (!targetName || !candidate.name) {
801
- return false;
800
+ const targetId = Object.prototype.hasOwnProperty.call(this, "shapeId")
801
+ ? this.shapeId
802
+ : undefined;
803
+ let candidateHasShapeId = false;
804
+ if (targetId) {
805
+ let proto = Object.getPrototypeOf(candidate);
806
+ while (proto && proto !== Object.prototype) {
807
+ const ctor = proto.constructor;
808
+ const candidateId = ctor !== ServiceException && Object.prototype.hasOwnProperty.call(ctor, "shapeId")
809
+ ? ctor?.shapeId
810
+ : undefined;
811
+ if (candidateId) {
812
+ candidateHasShapeId = true;
813
+ if (candidateId === targetId) {
814
+ return true;
815
+ }
816
+ }
817
+ proto = Object.getPrototypeOf(proto);
818
+ }
802
819
  }
803
- if (candidate.name === targetName) {
804
- return true;
820
+ if (targetId && candidateHasShapeId) {
821
+ return false;
805
822
  }
806
- let proto = Object.getPrototypeOf(candidate);
807
- while (proto && proto !== Object.prototype) {
808
- const ctorName = proto.constructor?.name;
809
- if (ctorName && ctorName !== "Error" && ctorName === targetName) {
823
+ const targetName = this.name;
824
+ if (targetName && targetName.length >= 6) {
825
+ if (candidate.name === targetName) {
810
826
  return true;
811
827
  }
812
- proto = Object.getPrototypeOf(proto);
828
+ let proto = Object.getPrototypeOf(candidate);
829
+ while (proto && proto !== Object.prototype) {
830
+ const ctorName = proto.constructor?.name;
831
+ if (ctorName && ctorName !== "Error" && ctorName === targetName) {
832
+ return true;
833
+ }
834
+ proto = Object.getPrototypeOf(proto);
835
+ }
813
836
  }
814
- return false;
815
837
  }
816
838
  return false;
817
839
  }
@@ -630,6 +630,9 @@ class TypeRegistry {
630
630
  const $error = es;
631
631
  const ns = $error[1];
632
632
  const qualifiedName = ns + "#" + $error[2];
633
+ if (!ctor.hasOwnProperty?.("shapeId")) {
634
+ ctor.shapeId = qualifiedName;
635
+ }
633
636
  for (const r of [this, TypeRegistry.for(ns)]) {
634
637
  if (!r.schemas.has(qualifiedName) && !r.exceptions.has($error)) {
635
638
  r.schemas.set(qualifiedName, $error);
@@ -1,4 +1,5 @@
1
1
  export class ServiceException extends Error {
2
+ static shapeId = "smithy.ts.sdk.synthetic.nonamespace.client#ServiceException";
2
3
  $fault;
3
4
  $response;
4
5
  $retryable;
@@ -30,22 +31,43 @@ export class ServiceException extends Error {
30
31
  if (this.prototype.isPrototypeOf(instance)) {
31
32
  return true;
32
33
  }
33
- const targetName = this.name;
34
- if (!targetName || !candidate.name) {
35
- return false;
34
+ const targetId = Object.prototype.hasOwnProperty.call(this, "shapeId")
35
+ ? this.shapeId
36
+ : undefined;
37
+ let candidateHasShapeId = false;
38
+ if (targetId) {
39
+ let proto = Object.getPrototypeOf(candidate);
40
+ while (proto && proto !== Object.prototype) {
41
+ const ctor = proto.constructor;
42
+ const candidateId = ctor !== ServiceException && Object.prototype.hasOwnProperty.call(ctor, "shapeId")
43
+ ? ctor?.shapeId
44
+ : undefined;
45
+ if (candidateId) {
46
+ candidateHasShapeId = true;
47
+ if (candidateId === targetId) {
48
+ return true;
49
+ }
50
+ }
51
+ proto = Object.getPrototypeOf(proto);
52
+ }
36
53
  }
37
- if (candidate.name === targetName) {
38
- return true;
54
+ if (targetId && candidateHasShapeId) {
55
+ return false;
39
56
  }
40
- let proto = Object.getPrototypeOf(candidate);
41
- while (proto && proto !== Object.prototype) {
42
- const ctorName = proto.constructor?.name;
43
- if (ctorName && ctorName !== "Error" && ctorName === targetName) {
57
+ const targetName = this.name;
58
+ if (targetName && targetName.length >= 6) {
59
+ if (candidate.name === targetName) {
44
60
  return true;
45
61
  }
46
- proto = Object.getPrototypeOf(proto);
62
+ let proto = Object.getPrototypeOf(candidate);
63
+ while (proto && proto !== Object.prototype) {
64
+ const ctorName = proto.constructor?.name;
65
+ if (ctorName && ctorName !== "Error" && ctorName === targetName) {
66
+ return true;
67
+ }
68
+ proto = Object.getPrototypeOf(proto);
69
+ }
47
70
  }
48
- return false;
49
71
  }
50
72
  return false;
51
73
  }
@@ -58,6 +58,9 @@ export class TypeRegistry {
58
58
  const $error = es;
59
59
  const ns = $error[1];
60
60
  const qualifiedName = ns + "#" + $error[2];
61
+ if (!ctor.hasOwnProperty?.("shapeId")) {
62
+ ctor.shapeId = qualifiedName;
63
+ }
61
64
  for (const r of [this, TypeRegistry.for(ns)]) {
62
65
  if (!r.schemas.has(qualifiedName) && !r.exceptions.has($error)) {
63
66
  r.schemas.set(qualifiedName, $error);
@@ -18,6 +18,7 @@ export interface ServiceExceptionOptions extends SmithyException, MetadataBearer
18
18
  * @public
19
19
  */
20
20
  export declare class ServiceException extends Error implements SmithyException, MetadataBearer {
21
+ static readonly shapeId: string;
21
22
  readonly $fault: "client" | "server";
22
23
  $response?: HttpResponse;
23
24
  $retryable?: RetryableTrait;
@@ -18,6 +18,7 @@ export interface ServiceExceptionOptions extends SmithyException, MetadataBearer
18
18
  * @public
19
19
  */
20
20
  export declare class ServiceException extends Error implements SmithyException, MetadataBearer {
21
+ static readonly shapeId: string;
21
22
  readonly $fault: "client" | "server";
22
23
  $response?: HttpResponse;
23
24
  $retryable?: RetryableTrait;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.35.0",
3
+ "version": "3.35.1",
4
4
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/core",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
package/package.json CHANGED
@@ -50,16 +50,16 @@
50
50
  "@types/node": "^18",
51
51
  "@typescript-eslint/eslint-plugin": "^8",
52
52
  "@typescript-eslint/parser": "^8",
53
- "aws-cdk": "^2.1142.0",
53
+ "aws-cdk": "^2.1143.0",
54
54
  "aws-cdk-lib": "2.195.0",
55
55
  "cdk8s": "2.68.91",
56
- "cdk8s-cli": "^2.207.58",
56
+ "cdk8s-cli": "^2.207.63",
57
57
  "commit-and-tag-version": "^13",
58
58
  "constructs": "10.3.0",
59
59
  "eslint": "^9",
60
60
  "eslint-import-resolver-typescript": "^3.10.1",
61
61
  "eslint-plugin-import": "^2.32.0",
62
- "fs-extra": "^11.4.0",
62
+ "fs-extra": "^11.4.1",
63
63
  "jest": "^27",
64
64
  "jest-junit": "^17",
65
65
  "jsii": "^5",
@@ -78,7 +78,7 @@
78
78
  "constructs": "^10.3.0"
79
79
  },
80
80
  "dependencies": {
81
- "@aws-sdk/client-cloudformation": "^3.1143.0"
81
+ "@aws-sdk/client-cloudformation": "^3.1144.0"
82
82
  },
83
83
  "bundledDependencies": [
84
84
  "@aws-sdk/client-cloudformation"
@@ -92,7 +92,7 @@
92
92
  "publishConfig": {
93
93
  "access": "public"
94
94
  },
95
- "version": "0.0.699",
95
+ "version": "0.0.700",
96
96
  "jest": {
97
97
  "coverageProvider": "v8",
98
98
  "testMatch": [