@cdk8s/awscdk-resolver 0.0.131 → 0.0.133

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 (58) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +20 -20
  4. package/node_modules/@aws-sdk/client-sso/package.json +17 -17
  5. package/node_modules/@aws-sdk/client-sso-oidc/package.json +21 -21
  6. package/node_modules/@aws-sdk/client-sts/package.json +19 -19
  7. package/node_modules/@aws-sdk/core/package.json +3 -3
  8. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  9. package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -7
  10. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  11. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  12. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  13. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  14. package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
  15. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  16. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  17. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  18. package/node_modules/@smithy/core/package.json +4 -4
  19. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  20. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  21. package/node_modules/@smithy/middleware-retry/package.json +4 -4
  22. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  23. package/node_modules/@smithy/protocol-http/dist-cjs/index.js +30 -8
  24. package/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +13 -8
  25. package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +31 -1
  26. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +31 -1
  27. package/node_modules/@smithy/protocol-http/package.json +1 -1
  28. package/node_modules/@smithy/smithy-client/package.json +3 -3
  29. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  30. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  31. package/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +36 -0
  32. package/node_modules/@smithy/util-stream/dist-cjs/headStream.js +46 -0
  33. package/node_modules/@smithy/util-stream/dist-cjs/index.js +7 -1
  34. package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js +3 -3
  35. package/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js +11 -0
  36. package/node_modules/@smithy/util-stream/dist-cjs/splitStream.js +17 -0
  37. package/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js +9 -0
  38. package/node_modules/@smithy/util-stream/dist-es/headStream.browser.js +31 -0
  39. package/node_modules/@smithy/util-stream/dist-es/headStream.js +41 -0
  40. package/node_modules/@smithy/util-stream/dist-es/index.js +3 -0
  41. package/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.browser.js +3 -3
  42. package/node_modules/@smithy/util-stream/dist-es/splitStream.browser.js +7 -0
  43. package/node_modules/@smithy/util-stream/dist-es/splitStream.js +13 -0
  44. package/node_modules/@smithy/util-stream/dist-es/stream-type-check.js +2 -0
  45. package/node_modules/@smithy/util-stream/dist-types/headStream.browser.d.ts +8 -0
  46. package/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +9 -0
  47. package/node_modules/@smithy/util-stream/dist-types/index.d.ts +3 -0
  48. package/node_modules/@smithy/util-stream/dist-types/splitStream.browser.d.ts +5 -0
  49. package/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +8 -0
  50. package/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +4 -0
  51. package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +8 -0
  52. package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +9 -0
  53. package/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +3 -0
  54. package/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.browser.d.ts +8 -0
  55. package/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +14 -0
  56. package/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +4 -0
  57. package/node_modules/@smithy/util-stream/package.json +12 -6
  58. package/package.json +6 -6
@@ -0,0 +1,9 @@
1
+ import { Readable } from "stream";
2
+ /**
3
+ * @internal
4
+ * @param stream
5
+ * @param bytes - read head bytes from the stream and discard the rest of it.
6
+ *
7
+ * Caution: the input stream must be destroyed separately, this function does not do so.
8
+ */
9
+ export declare const headStream: (stream: Readable | ReadableStream, bytes: number) => Promise<Uint8Array>;
@@ -1,3 +1,6 @@
1
1
  export * from "./blob/Uint8ArrayBlobAdapter";
2
2
  export * from "./getAwsChunkedEncodingStream";
3
3
  export * from "./sdk-stream-mixin";
4
+ export * from "./splitStream";
5
+ export * from "./headStream";
6
+ export * from "./stream-type-check";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @param stream
3
+ * @returns stream split into two identical streams.
4
+ */
5
+ export declare function splitStream(stream: ReadableStream | Blob): Promise<[ReadableStream, ReadableStream]>;
@@ -0,0 +1,8 @@
1
+ /// <reference types="node" />
2
+ import type { Readable } from "stream";
3
+ /**
4
+ * @param stream
5
+ * @returns stream split into two identical streams.
6
+ */
7
+ export declare function splitStream(stream: Readable): Promise<[Readable, Readable]>;
8
+ export declare function splitStream(stream: ReadableStream): Promise<[ReadableStream, ReadableStream]>;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare const isReadableStream: (stream: unknown) => stream is ReadableStream<any>;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @internal
3
+ * @param stream
4
+ * @param bytes - read head bytes from the stream and discard the rest of it.
5
+ *
6
+ * Caution: the input stream must be destroyed separately, this function does not do so.
7
+ */
8
+ export declare function headStream(stream: ReadableStream, bytes: number): Promise<Uint8Array>;
@@ -0,0 +1,9 @@
1
+ import { Readable } from "stream";
2
+ /**
3
+ * @internal
4
+ * @param stream
5
+ * @param bytes - read head bytes from the stream and discard the rest of it.
6
+ *
7
+ * Caution: the input stream must be destroyed separately, this function does not do so.
8
+ */
9
+ export declare const headStream: (stream: Readable | ReadableStream, bytes: number) => Promise<Uint8Array>;
@@ -1,3 +1,6 @@
1
1
  export * from "./blob/Uint8ArrayBlobAdapter";
2
2
  export * from "./getAwsChunkedEncodingStream";
3
3
  export * from "./sdk-stream-mixin";
4
+ export * from "./splitStream";
5
+ export * from "./headStream";
6
+ export * from "./stream-type-check";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @param stream
3
+ * @returns stream split into two identical streams.
4
+ */
5
+ export declare function splitStream(stream: ReadableStream | Blob): Promise<[
6
+ ReadableStream,
7
+ ReadableStream
8
+ ]>;
@@ -0,0 +1,14 @@
1
+ /// <reference types="node" />
2
+ import { Readable } from "stream";
3
+ /**
4
+ * @param stream
5
+ * @returns stream split into two identical streams.
6
+ */
7
+ export declare function splitStream(stream: Readable): Promise<[
8
+ Readable,
9
+ Readable
10
+ ]>;
11
+ export declare function splitStream(stream: ReadableStream): Promise<[
12
+ ReadableStream,
13
+ ReadableStream
14
+ ]>;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare const isReadableStream: (stream: unknown) => stream is ReadableStream<any>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-stream",
3
- "version": "3.0.6",
3
+ "version": "3.1.0",
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,8 +24,8 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@smithy/fetch-http-handler": "^3.2.1",
28
- "@smithy/node-http-handler": "^3.1.2",
27
+ "@smithy/fetch-http-handler": "^3.2.2",
28
+ "@smithy/node-http-handler": "^3.1.3",
29
29
  "@smithy/types": "^3.3.0",
30
30
  "@smithy/util-base64": "^3.0.0",
31
31
  "@smithy/util-buffer-from": "^3.0.0",
@@ -34,7 +34,7 @@
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
37
- "@smithy/util-test": "^0.2.4",
37
+ "@smithy/util-test": "^0.2.5",
38
38
  "@types/node": "^16.18.96",
39
39
  "concurrently": "7.0.0",
40
40
  "downlevel-dts": "0.10.1",
@@ -56,13 +56,19 @@
56
56
  ],
57
57
  "browser": {
58
58
  "./dist-es/getAwsChunkedEncodingStream": "./dist-es/getAwsChunkedEncodingStream.browser",
59
- "./dist-es/sdk-stream-mixin": "./dist-es/sdk-stream-mixin.browser"
59
+ "./dist-es/headStream": "./dist-es/headStream.browser",
60
+ "./dist-es/sdk-stream-mixin": "./dist-es/sdk-stream-mixin.browser",
61
+ "./dist-es/splitStream": "./dist-es/splitStream.browser"
60
62
  },
61
63
  "react-native": {
62
64
  "./dist-es/getAwsChunkedEncodingStream": "./dist-es/getAwsChunkedEncodingStream.browser",
63
65
  "./dist-es/sdk-stream-mixin": "./dist-es/sdk-stream-mixin.browser",
66
+ "./dist-es/headStream": "./dist-es/headStream.browser",
67
+ "./dist-es/splitStream": "./dist-es/splitStream.browser",
64
68
  "./dist-cjs/getAwsChunkedEncodingStream": "./dist-cjs/getAwsChunkedEncodingStream.browser",
65
- "./dist-cjs/sdk-stream-mixin": "./dist-cjs/sdk-stream-mixin.browser"
69
+ "./dist-cjs/sdk-stream-mixin": "./dist-cjs/sdk-stream-mixin.browser",
70
+ "./dist-cjs/headStream": "./dist-cjs/headStream.browser",
71
+ "./dist-cjs/splitStream": "./dist-cjs/splitStream.browser"
66
72
  },
67
73
  "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-stream",
68
74
  "repository": {
package/package.json CHANGED
@@ -42,16 +42,16 @@
42
42
  "organization": false
43
43
  },
44
44
  "devDependencies": {
45
- "@cdk8s/projen-common": "0.0.532",
45
+ "@cdk8s/projen-common": "0.0.533",
46
46
  "@types/fs-extra": "^11.0.4",
47
47
  "@types/jest": "^27",
48
48
  "@types/node": "16.18.78",
49
49
  "@typescript-eslint/eslint-plugin": "^7",
50
50
  "@typescript-eslint/parser": "^7",
51
- "aws-cdk": "^2.148.0",
51
+ "aws-cdk": "^2.149.0",
52
52
  "aws-cdk-lib": "2.109.0",
53
53
  "cdk8s": "2.68.4",
54
- "cdk8s-cli": "^2.198.168",
54
+ "cdk8s-cli": "^2.198.173",
55
55
  "constructs": "10.3.0",
56
56
  "eslint": "^8",
57
57
  "eslint-import-resolver-typescript": "^3.6.1",
@@ -64,7 +64,7 @@
64
64
  "jsii-docgen": "^9.2.2",
65
65
  "jsii-pacmak": "^1.101.0",
66
66
  "jsii-rosetta": "^5",
67
- "projen": "^0.84.3",
67
+ "projen": "^0.84.4",
68
68
  "standard-version": "^9",
69
69
  "ts-jest": "^27",
70
70
  "ts-node": "^10.9.2",
@@ -76,7 +76,7 @@
76
76
  "constructs": "^10.3.0"
77
77
  },
78
78
  "dependencies": {
79
- "@aws-sdk/client-cloudformation": "^3.613.0"
79
+ "@aws-sdk/client-cloudformation": "^3.614.0"
80
80
  },
81
81
  "bundledDependencies": [
82
82
  "@aws-sdk/client-cloudformation"
@@ -92,7 +92,7 @@
92
92
  "publishConfig": {
93
93
  "access": "public"
94
94
  },
95
- "version": "0.0.131",
95
+ "version": "0.0.133",
96
96
  "jest": {
97
97
  "coverageProvider": "v8",
98
98
  "testMatch": [