@cdklabs/cdk-ecs-codedeploy 0.0.256 → 0.0.257

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.
Files changed (72) hide show
  1. package/.jsii +2 -2
  2. package/lib/api-canary/index.js +1 -1
  3. package/lib/ecs-appspec/index.js +1 -1
  4. package/lib/ecs-deployment/index.js +1 -1
  5. package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
  6. package/node_modules/@smithy/abort-controller/package.json +2 -2
  7. package/node_modules/@smithy/config-resolver/package.json +4 -4
  8. package/node_modules/@smithy/core/package.json +8 -8
  9. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +11 -1
  10. package/node_modules/@smithy/credential-provider-imds/dist-es/index.js +1 -0
  11. package/node_modules/@smithy/credential-provider-imds/dist-es/utils/getExtendedInstanceMetadataCredentials.js +1 -1
  12. package/node_modules/@smithy/credential-provider-imds/dist-types/index.d.ts +4 -0
  13. package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/index.d.ts +4 -0
  14. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  15. package/node_modules/@smithy/eventstream-codec/package.json +3 -3
  16. package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
  17. package/node_modules/@smithy/hash-node/package.json +3 -3
  18. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  19. package/node_modules/@smithy/middleware-content-length/package.json +4 -4
  20. package/node_modules/@smithy/middleware-endpoint/package.json +7 -7
  21. package/node_modules/@smithy/middleware-retry/package.json +9 -9
  22. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +5 -0
  23. package/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js +5 -0
  24. package/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts +7 -2
  25. package/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts +7 -2
  26. package/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts +7 -2
  27. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts +7 -2
  28. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts +7 -2
  29. package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts +7 -2
  30. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  31. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  32. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  33. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  34. package/node_modules/@smithy/property-provider/package.json +2 -2
  35. package/node_modules/@smithy/protocol-http/package.json +2 -2
  36. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  37. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  38. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  39. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  40. package/node_modules/@smithy/signature-v4/package.json +6 -6
  41. package/node_modules/@smithy/smithy-client/package.json +6 -6
  42. package/node_modules/@smithy/types/dist-types/serde.d.ts +10 -3
  43. package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +10 -3
  44. package/node_modules/@smithy/types/dist-types/ts3.4/util.d.ts +15 -7
  45. package/node_modules/@smithy/types/dist-types/util.d.ts +15 -7
  46. package/node_modules/@smithy/types/package.json +1 -1
  47. package/node_modules/@smithy/url-parser/package.json +3 -3
  48. package/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js +12 -1
  49. package/node_modules/@smithy/util-base64/dist-cjs/toBase64.js +14 -1
  50. package/node_modules/@smithy/util-base64/dist-es/toBase64.browser.js +12 -1
  51. package/node_modules/@smithy/util-base64/dist-es/toBase64.js +14 -1
  52. package/node_modules/@smithy/util-base64/dist-types/toBase64.browser.d.ts +4 -3
  53. package/node_modules/@smithy/util-base64/dist-types/toBase64.d.ts +4 -3
  54. package/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.browser.d.ts +4 -3
  55. package/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.d.ts +4 -3
  56. package/node_modules/@smithy/util-base64/package.json +2 -1
  57. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  58. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  59. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  60. package/node_modules/@smithy/util-middleware/package.json +2 -2
  61. package/node_modules/@smithy/util-retry/package.json +3 -3
  62. package/node_modules/@smithy/util-stream/package.json +7 -7
  63. package/node_modules/@smithy/util-utf8/dist-cjs/index.js +9 -1
  64. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +9 -1
  65. package/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +9 -1
  66. package/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +7 -1
  67. package/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +7 -1
  68. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +7 -1
  69. package/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +7 -1
  70. package/node_modules/@smithy/util-utf8/package.json +1 -1
  71. package/node_modules/@smithy/util-waiter/package.json +3 -3
  72. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-middleware",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "Shared utilities for to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@smithy/types": "^2.10.1",
29
+ "@smithy/types": "^2.11.0",
30
30
  "tslib": "^2.5.0"
31
31
  },
32
32
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-retry",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "Shared retry utilities to be used in middleware packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,8 +27,8 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@smithy/service-error-classification": "^2.1.3",
31
- "@smithy/types": "^2.10.1",
30
+ "@smithy/service-error-classification": "^2.1.4",
31
+ "@smithy/types": "^2.11.0",
32
32
  "tslib": "^2.5.0"
33
33
  },
34
34
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-stream",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-stream",
@@ -24,17 +24,17 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@smithy/fetch-http-handler": "^2.4.3",
28
- "@smithy/node-http-handler": "^2.4.1",
29
- "@smithy/types": "^2.10.1",
30
- "@smithy/util-base64": "^2.1.1",
27
+ "@smithy/fetch-http-handler": "^2.4.4",
28
+ "@smithy/node-http-handler": "^2.4.2",
29
+ "@smithy/types": "^2.11.0",
30
+ "@smithy/util-base64": "^2.2.0",
31
31
  "@smithy/util-buffer-from": "^2.1.1",
32
32
  "@smithy/util-hex-encoding": "^2.1.1",
33
- "@smithy/util-utf8": "^2.1.1",
33
+ "@smithy/util-utf8": "^2.2.0",
34
34
  "tslib": "^2.5.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@smithy/util-test": "^0.1.16",
37
+ "@smithy/util-test": "^0.1.17",
38
38
  "@types/chai-as-promised": "^7.1.2",
39
39
  "@types/node": "^14.14.31",
40
40
  "chai": "^4.2.0",
@@ -46,7 +46,15 @@ var toUint8Array = /* @__PURE__ */ __name((data) => {
46
46
 
47
47
  // src/toUtf8.ts
48
48
 
49
- var toUtf8 = /* @__PURE__ */ __name((input) => (0, import_util_buffer_from.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8"), "toUtf8");
49
+ var toUtf8 = /* @__PURE__ */ __name((input) => {
50
+ if (typeof input === "string") {
51
+ return input;
52
+ }
53
+ if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
54
+ throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
55
+ }
56
+ return (0, import_util_buffer_from.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
57
+ }, "toUtf8");
50
58
  // Annotate the CommonJS export names for ESM import in node:
51
59
 
52
60
  0 && (module.exports = {
@@ -1 +1,9 @@
1
- export const toUtf8 = (input) => new TextDecoder("utf-8").decode(input);
1
+ export const toUtf8 = (input) => {
2
+ if (typeof input === "string") {
3
+ return input;
4
+ }
5
+ if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
6
+ throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
7
+ }
8
+ return new TextDecoder("utf-8").decode(input);
9
+ };
@@ -1,2 +1,10 @@
1
1
  import { fromArrayBuffer } from "@smithy/util-buffer-from";
2
- export const toUtf8 = (input) => fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
2
+ export const toUtf8 = (input) => {
3
+ if (typeof input === "string") {
4
+ return input;
5
+ }
6
+ if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
7
+ throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
8
+ }
9
+ return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
10
+ };
@@ -1 +1,7 @@
1
- export declare const toUtf8: (input: Uint8Array) => string;
1
+ /**
2
+ *
3
+ * This does not convert non-utf8 strings to utf8, it only passes through strings if
4
+ * a string is received instead of a Uint8Array.
5
+ *
6
+ */
7
+ export declare const toUtf8: (input: Uint8Array | string) => string;
@@ -1 +1,7 @@
1
- export declare const toUtf8: (input: Uint8Array) => string;
1
+ /**
2
+ *
3
+ * This does not convert non-utf8 strings to utf8, it only passes through strings if
4
+ * a string is received instead of a Uint8Array.
5
+ *
6
+ */
7
+ export declare const toUtf8: (input: Uint8Array | string) => string;
@@ -1 +1,7 @@
1
- export declare const toUtf8: (input: Uint8Array) => string;
1
+ /**
2
+ *
3
+ * This does not convert non-utf8 strings to utf8, it only passes through strings if
4
+ * a string is received instead of a Uint8Array.
5
+ *
6
+ */
7
+ export declare const toUtf8: (input: Uint8Array | string) => string;
@@ -1 +1,7 @@
1
- export declare const toUtf8: (input: Uint8Array) => string;
1
+ /**
2
+ *
3
+ * This does not convert non-utf8 strings to utf8, it only passes through strings if
4
+ * a string is received instead of a Uint8Array.
5
+ *
6
+ */
7
+ export declare const toUtf8: (input: Uint8Array | string) => string;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-utf8",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "A UTF-8 string <-> UInt8Array converter",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@smithy/util-waiter",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "Shared utilities for client waiters for the AWS SDK",
5
5
  "dependencies": {
6
- "@smithy/abort-controller": "^2.1.3",
7
- "@smithy/types": "^2.10.1",
6
+ "@smithy/abort-controller": "^2.1.4",
7
+ "@smithy/types": "^2.11.0",
8
8
  "tslib": "^2.5.0"
9
9
  },
10
10
  "scripts": {
package/package.json CHANGED
@@ -127,7 +127,7 @@
127
127
  "publishConfig": {
128
128
  "access": "public"
129
129
  },
130
- "version": "0.0.256",
130
+ "version": "0.0.257",
131
131
  "jest": {
132
132
  "testMatch": [
133
133
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",