@jjrawlins/cdk-iam-policy-builder-helper 0.0.52 → 0.0.54
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 +3 -3
- package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
- package/cdk-iam-policy-builder-helper/version +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +13439 -13574
- package/node_modules/@aws-sdk/client-iam/package.json +6 -6
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +478 -596
- package/node_modules/@aws-sdk/client-sso/package.json +5 -5
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +1969 -6
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +48 -88
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +35 -74
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +273 -365
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1581 -1863
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +2 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +2 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +4 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +4 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +3 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +4 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +2 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -4
- package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlCodec.d.ts +1 -1
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +38 -73
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +194 -259
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +72 -132
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +71 -107
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +176 -249
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js +14 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +16 -25
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +170 -203
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +583 -858
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +795 -928
- package/node_modules/@aws-sdk/nested-clients/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +147 -222
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-browser/README.md +22 -3
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/createUserAgentStringParsingProvider.js +57 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js +39 -8
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/createUserAgentStringParsingProvider.js +20 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.js +37 -6
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/createUserAgentStringParsingProvider.d.ts +14 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +14 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +4 -3
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/createUserAgentStringParsingProvider.d.ts +9 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.d.ts +5 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +50 -94
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/crt-availability.d.ts +1 -2
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/defaultUserAgent.d.ts +10 -5
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +32 -30
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +133 -202
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +126 -34
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -3
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +4 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +3 -3
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +19 -17
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +4 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js +5 -6
- package/node_modules/@smithy/core/dist-es/submodules/schema/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +82 -176
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +22 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js +110 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +4 -26
- package/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +5 -24
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +5 -24
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
- package/node_modules/@smithy/core/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/smithy-client/package.json +4 -4
- package/node_modules/@smithy/util-base64/dist-cjs/constants.browser.js +9 -32
- package/node_modules/@smithy/util-base64/dist-es/constants.browser.js +9 -28
- package/node_modules/@smithy/util-base64/dist-types/constants.browser.d.ts +5 -6
- package/node_modules/@smithy/util-base64/dist-types/ts3.4/constants.browser.d.ts +5 -6
- package/node_modules/@smithy/util-base64/package.json +1 -1
- package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +8 -6
- package/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +8 -6
- package/node_modules/@smithy/util-body-length-node/package.json +1 -1
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +11 -9
- package/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js +11 -8
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -3
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +3 -5
- package/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js +3 -5
- package/node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
- package/node_modules/@smithy/util-stream/package.json +3 -3
- package/package.json +3 -3
|
@@ -1,28 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const index = i + 26;
|
|
11
|
-
alphabetByEncoding[char] = index;
|
|
12
|
-
alphabetByValue[index] = char;
|
|
13
|
-
}
|
|
14
|
-
for (let i = 0; i < 10; i++) {
|
|
15
|
-
alphabetByEncoding[i.toString(10)] = i + 52;
|
|
16
|
-
const char = i.toString(10);
|
|
17
|
-
const index = i + 52;
|
|
18
|
-
alphabetByEncoding[char] = index;
|
|
19
|
-
alphabetByValue[index] = char;
|
|
20
|
-
}
|
|
21
|
-
alphabetByEncoding["+"] = 62;
|
|
22
|
-
alphabetByValue[62] = "+";
|
|
23
|
-
alphabetByEncoding["/"] = 63;
|
|
24
|
-
alphabetByValue[63] = "/";
|
|
25
|
-
const bitsPerLetter = 6;
|
|
26
|
-
const bitsPerByte = 8;
|
|
27
|
-
const maxLetterValue = 0b111111;
|
|
28
|
-
export { alphabetByEncoding, alphabetByValue, bitsPerLetter, bitsPerByte, maxLetterValue };
|
|
1
|
+
const chars = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;
|
|
2
|
+
export const alphabetByEncoding = Object.entries(chars).reduce((acc, [i, c]) => {
|
|
3
|
+
acc[c] = Number(i);
|
|
4
|
+
return acc;
|
|
5
|
+
}, {});
|
|
6
|
+
export const alphabetByValue = chars.split("");
|
|
7
|
+
export const bitsPerLetter = 6;
|
|
8
|
+
export const bitsPerByte = 8;
|
|
9
|
+
export const maxLetterValue = 0b111111;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
declare const alphabetByEncoding: Record<string, number>;
|
|
2
|
-
declare const alphabetByValue: Array<string>;
|
|
3
|
-
declare const bitsPerLetter = 6;
|
|
4
|
-
declare const bitsPerByte = 8;
|
|
5
|
-
declare const maxLetterValue = 63;
|
|
6
|
-
export { alphabetByEncoding, alphabetByValue, bitsPerLetter, bitsPerByte, maxLetterValue };
|
|
1
|
+
export declare const alphabetByEncoding: Record<string, number>;
|
|
2
|
+
export declare const alphabetByValue: Array<string>;
|
|
3
|
+
export declare const bitsPerLetter = 6;
|
|
4
|
+
export declare const bitsPerByte = 8;
|
|
5
|
+
export declare const maxLetterValue = 63;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
declare const alphabetByEncoding: Record<string, number>;
|
|
2
|
-
declare const alphabetByValue: Array<string>;
|
|
3
|
-
declare const bitsPerLetter = 6;
|
|
4
|
-
declare const bitsPerByte = 8;
|
|
5
|
-
declare const maxLetterValue = 63;
|
|
6
|
-
export { alphabetByEncoding, alphabetByValue, bitsPerLetter, bitsPerByte, maxLetterValue };
|
|
1
|
+
export declare const alphabetByEncoding: Record<string, number>;
|
|
2
|
+
export declare const alphabetByValue: Array<string>;
|
|
3
|
+
export declare const bitsPerLetter = 6;
|
|
4
|
+
export declare const bitsPerByte = 8;
|
|
5
|
+
export declare const maxLetterValue = 63;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var node_fs = require('node:fs');
|
|
4
4
|
|
|
5
5
|
const calculateBodyLength = (body) => {
|
|
6
6
|
if (!body) {
|
|
@@ -18,11 +18,13 @@ const calculateBodyLength = (body) => {
|
|
|
18
18
|
else if (typeof body.start === "number" && typeof body.end === "number") {
|
|
19
19
|
return body.end + 1 - body.start;
|
|
20
20
|
}
|
|
21
|
-
else if (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
else if (body instanceof node_fs.ReadStream) {
|
|
22
|
+
if (body.path != null) {
|
|
23
|
+
return node_fs.lstatSync(body.path).size;
|
|
24
|
+
}
|
|
25
|
+
else if (typeof body.fd === "number") {
|
|
26
|
+
return node_fs.fstatSync(body.fd).size;
|
|
27
|
+
}
|
|
26
28
|
}
|
|
27
29
|
throw new Error(`Body Length computation failed for ${body}`);
|
|
28
30
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fstatSync, lstatSync } from "fs";
|
|
1
|
+
import { fstatSync, lstatSync, ReadStream } from "node:fs";
|
|
2
2
|
export const calculateBodyLength = (body) => {
|
|
3
3
|
if (!body) {
|
|
4
4
|
return 0;
|
|
@@ -15,11 +15,13 @@ export const calculateBodyLength = (body) => {
|
|
|
15
15
|
else if (typeof body.start === "number" && typeof body.end === "number") {
|
|
16
16
|
return body.end + 1 - body.start;
|
|
17
17
|
}
|
|
18
|
-
else if (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
else if (body instanceof ReadStream) {
|
|
19
|
+
if (body.path != null) {
|
|
20
|
+
return lstatSync(body.path).size;
|
|
21
|
+
}
|
|
22
|
+
else if (typeof body.fd === "number") {
|
|
23
|
+
return fstatSync(body.fd).size;
|
|
24
|
+
}
|
|
23
25
|
}
|
|
24
26
|
throw new Error(`Body Length computation failed for ${body}`);
|
|
25
27
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-body-length-node",
|
|
3
3
|
"description": "Determines the length of a request body in node.js",
|
|
4
|
-
"version": "4.2.
|
|
4
|
+
"version": "4.2.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
7
7
|
"build:cjs": "node ../../scripts/inline util-body-length-node",
|
package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveDefaultsModeConfig = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
4
|
const property_provider_1 = require("@smithy/property-provider");
|
|
6
|
-
const bowser_1 = tslib_1.__importDefault(require("bowser"));
|
|
7
5
|
const constants_1 = require("./constants");
|
|
8
6
|
const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => (0, property_provider_1.memoize)(async () => {
|
|
9
7
|
const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
|
|
10
8
|
switch (mode?.toLowerCase()) {
|
|
11
9
|
case "auto":
|
|
12
|
-
return Promise.resolve(
|
|
10
|
+
return Promise.resolve(useMobileConfiguration() ? "mobile" : "standard");
|
|
13
11
|
case "mobile":
|
|
14
12
|
case "in-region":
|
|
15
13
|
case "cross-region":
|
|
@@ -23,10 +21,14 @@ const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => (0, property_provi
|
|
|
23
21
|
}
|
|
24
22
|
});
|
|
25
23
|
exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig;
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
const useMobileConfiguration = () => {
|
|
25
|
+
const navigator = window?.navigator;
|
|
26
|
+
if (navigator?.connection) {
|
|
27
|
+
const { effectiveType, rtt, downlink } = navigator?.connection;
|
|
28
|
+
const slow = (typeof effectiveType === "string" && effectiveType !== "4g") || Number(rtt) > 100 || Number(downlink) < 10;
|
|
29
|
+
if (slow) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return (navigator?.userAgentData?.mobile || (typeof navigator?.maxTouchPoints === "number" && navigator?.maxTouchPoints > 1));
|
|
32
34
|
};
|
package/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { memoize } from "@smithy/property-provider";
|
|
2
|
-
import bowser from "bowser";
|
|
3
2
|
import { DEFAULTS_MODE_OPTIONS } from "./constants";
|
|
4
3
|
export const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => memoize(async () => {
|
|
5
4
|
const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
|
|
6
5
|
switch (mode?.toLowerCase()) {
|
|
7
6
|
case "auto":
|
|
8
|
-
return Promise.resolve(
|
|
7
|
+
return Promise.resolve(useMobileConfiguration() ? "mobile" : "standard");
|
|
9
8
|
case "mobile":
|
|
10
9
|
case "in-region":
|
|
11
10
|
case "cross-region":
|
|
@@ -18,10 +17,14 @@ export const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => memoize(asy
|
|
|
18
17
|
throw new Error(`Invalid parameter for "defaultsMode", expect ${DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}`);
|
|
19
18
|
}
|
|
20
19
|
});
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
const useMobileConfiguration = () => {
|
|
21
|
+
const navigator = window?.navigator;
|
|
22
|
+
if (navigator?.connection) {
|
|
23
|
+
const { effectiveType, rtt, downlink } = navigator?.connection;
|
|
24
|
+
const slow = (typeof effectiveType === "string" && effectiveType !== "4g") || Number(rtt) > 100 || Number(downlink) < 10;
|
|
25
|
+
if (slow) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return (navigator?.userAgentData?.mobile || (typeof navigator?.maxTouchPoints === "number" && navigator?.maxTouchPoints > 1));
|
|
27
30
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-browser",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.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-defaults-mode-browser",
|
|
@@ -25,9 +25,8 @@
|
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@smithy/property-provider": "^4.2.0",
|
|
28
|
-
"@smithy/smithy-client": "^4.7.
|
|
28
|
+
"@smithy/smithy-client": "^4.7.1",
|
|
29
29
|
"@smithy/types": "^4.6.0",
|
|
30
|
-
"bowser": "^2.11.0",
|
|
31
30
|
"tslib": "^2.6.2"
|
|
32
31
|
},
|
|
33
32
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-node",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
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-defaults-mode-node",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@smithy/credential-provider-imds": "^4.2.0",
|
|
29
29
|
"@smithy/node-config-provider": "^4.3.0",
|
|
30
30
|
"@smithy/property-provider": "^4.2.0",
|
|
31
|
-
"@smithy/smithy-client": "^4.7.
|
|
31
|
+
"@smithy/smithy-client": "^4.7.1",
|
|
32
32
|
"@smithy/types": "^4.6.0",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|
|
@@ -26,12 +26,10 @@ function transformFromString(str, encoding) {
|
|
|
26
26
|
|
|
27
27
|
class Uint8ArrayBlobAdapter extends Uint8Array {
|
|
28
28
|
static fromString(source, encoding = "utf-8") {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
return transformFromString(source, encoding);
|
|
32
|
-
default:
|
|
33
|
-
throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
|
|
29
|
+
if (typeof source === "string") {
|
|
30
|
+
return transformFromString(source, encoding);
|
|
34
31
|
}
|
|
32
|
+
throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
|
|
35
33
|
}
|
|
36
34
|
static mutate(source) {
|
|
37
35
|
Object.setPrototypeOf(source, Uint8ArrayBlobAdapter.prototype);
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { transformFromString, transformToString } from "./transforms";
|
|
2
2
|
export class Uint8ArrayBlobAdapter extends Uint8Array {
|
|
3
3
|
static fromString(source, encoding = "utf-8") {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return transformFromString(source, encoding);
|
|
7
|
-
default:
|
|
8
|
-
throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
|
|
4
|
+
if (typeof source === "string") {
|
|
5
|
+
return transformFromString(source, encoding);
|
|
9
6
|
}
|
|
7
|
+
throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
|
|
10
8
|
}
|
|
11
9
|
static mutate(source) {
|
|
12
10
|
Object.setPrototypeOf(source, Uint8ArrayBlobAdapter.prototype);
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
export declare class Uint8ArrayBlobAdapter extends Uint8Array {
|
|
6
6
|
/**
|
|
7
7
|
* @param source - such as a string or Stream.
|
|
8
|
+
* @param encoding - utf-8 or base64.
|
|
8
9
|
* @returns a new Uint8ArrayBlobAdapter extending Uint8Array.
|
|
9
10
|
*/
|
|
10
11
|
static fromString(source: string, encoding?: string): Uint8ArrayBlobAdapter;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
export declare class Uint8ArrayBlobAdapter extends Uint8Array {
|
|
6
6
|
/**
|
|
7
7
|
* @param source - such as a string or Stream.
|
|
8
|
+
* @param encoding - utf-8 or base64.
|
|
8
9
|
* @returns a new Uint8ArrayBlobAdapter extending Uint8Array.
|
|
9
10
|
*/
|
|
10
11
|
static fromString(source: string, encoding?: string): Uint8ArrayBlobAdapter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-stream",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.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",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
32
|
+
"@smithy/fetch-http-handler": "^5.3.1",
|
|
33
33
|
"@smithy/node-http-handler": "^4.3.0",
|
|
34
34
|
"@smithy/types": "^4.6.0",
|
|
35
|
-
"@smithy/util-base64": "^4.
|
|
35
|
+
"@smithy/util-base64": "^4.3.0",
|
|
36
36
|
"@smithy/util-buffer-from": "^4.2.0",
|
|
37
37
|
"@smithy/util-hex-encoding": "^4.2.0",
|
|
38
38
|
"@smithy/util-utf8": "^4.2.0",
|
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"jsii-docgen": "^10.5.0",
|
|
60
60
|
"jsii-pacmak": "^1.115.0",
|
|
61
61
|
"jsii-rosetta": "~5.8.0",
|
|
62
|
-
"projen": "^0.97.
|
|
62
|
+
"projen": "^0.97.2",
|
|
63
63
|
"ts-jest": "^29.4.4",
|
|
64
64
|
"ts-node": "^10.9.2",
|
|
65
65
|
"typescript": "^5.9.3"
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"constructs": "^10.0.5"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@aws-sdk/client-iam": "^3.
|
|
72
|
+
"@aws-sdk/client-iam": "^3.907.0",
|
|
73
73
|
"axios": "^1.8.2",
|
|
74
74
|
"constructs": "^10.4.2",
|
|
75
75
|
"jsonc-parser": "^3.3.1"
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"publishConfig": {
|
|
102
102
|
"access": "public"
|
|
103
103
|
},
|
|
104
|
-
"version": "0.0.
|
|
104
|
+
"version": "0.0.54",
|
|
105
105
|
"jest": {
|
|
106
106
|
"coverageProvider": "v8",
|
|
107
107
|
"testMatch": [
|