cloudstructs 0.12.6 → 0.12.8
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/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +1 -1
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/mjml-template/index.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +3 -3
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +153 -153
- package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +153 -153
- package/node_modules/@aws-sdk/client-lambda/package.json +43 -43
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +6 -6
- package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +6 -6
- package/node_modules/@aws-sdk/client-sso/package.json +37 -37
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +45 -10
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +45 -10
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +23 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +22 -5
- package/node_modules/@aws-sdk/core/package.json +16 -16
- package/node_modules/@aws-sdk/credential-provider-env/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-http/package.json +14 -14
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +18 -18
- package/node_modules/@aws-sdk/credential-provider-login/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-node/package.json +16 -16
- package/node_modules/@aws-sdk/credential-provider-process/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +11 -11
- package/node_modules/@aws-sdk/middleware-host-header/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-logger/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +10 -10
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +9 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +5 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +9 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +5 -2
- package/node_modules/@aws-sdk/nested-clients/package.json +35 -35
- package/node_modules/@aws-sdk/region-config-resolver/package.json +8 -8
- package/node_modules/@aws-sdk/token-providers/package.json +11 -11
- package/node_modules/@aws-sdk/types/package.json +5 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/package.json +8 -8
- package/node_modules/@aws-sdk/util-locate-window/package.json +5 -5
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +5 -5
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +9 -9
- package/node_modules/@aws-sdk/xml-builder/package.json +5 -5
- package/node_modules/@babel/runtime/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +61 -2
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +3 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +61 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +3 -0
- package/node_modules/@smithy/abort-controller/package.json +3 -3
- package/node_modules/@smithy/config-resolver/package.json +6 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +17 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +16 -6
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +17 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +16 -6
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +0 -1
- package/node_modules/@smithy/core/package.json +11 -11
- package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
- package/node_modules/@smithy/eventstream-codec/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-browser/package.json +4 -4
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-node/package.json +4 -4
- package/node_modules/@smithy/eventstream-serde-universal/package.json +4 -4
- package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
- package/node_modules/@smithy/hash-node/package.json +3 -3
- package/node_modules/@smithy/invalid-dependency/package.json +3 -3
- package/node_modules/@smithy/middleware-content-length/package.json +4 -4
- package/node_modules/@smithy/middleware-endpoint/package.json +12 -12
- package/node_modules/@smithy/middleware-retry/package.json +12 -12
- package/node_modules/@smithy/middleware-serde/package.json +4 -4
- package/node_modules/@smithy/middleware-stack/package.json +3 -3
- package/node_modules/@smithy/node-config-provider/package.json +5 -5
- package/node_modules/@smithy/node-http-handler/package.json +6 -6
- package/node_modules/@smithy/property-provider/package.json +3 -3
- package/node_modules/@smithy/protocol-http/package.json +3 -3
- package/node_modules/@smithy/querystring-builder/package.json +3 -3
- package/node_modules/@smithy/querystring-parser/package.json +3 -3
- package/node_modules/@smithy/service-error-classification/package.json +3 -3
- package/node_modules/@smithy/shared-ini-file-loader/package.json +3 -3
- package/node_modules/@smithy/signature-v4/package.json +5 -5
- package/node_modules/@smithy/smithy-client/package.json +11 -11
- package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
- package/node_modules/@smithy/types/package.json +2 -2
- package/node_modules/@smithy/url-parser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -8
- package/node_modules/@smithy/util-defaults-mode-node/package.json +11 -11
- package/node_modules/@smithy/util-endpoints/package.json +4 -4
- package/node_modules/@smithy/util-middleware/package.json +3 -3
- package/node_modules/@smithy/util-retry/package.json +4 -4
- package/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +20 -9
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -6
- package/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +19 -7
- package/node_modules/@smithy/util-stream/dist-es/index.js +1 -1
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +7 -7
- package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +2 -3
- package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +4 -2
- package/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +4 -1
- package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -3
- package/node_modules/@smithy/util-stream/dist-types/headStream.browser.d.ts +1 -2
- package/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +2 -2
- package/node_modules/@smithy/util-stream/dist-types/index.d.ts +4 -1
- package/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +3 -0
- package/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +2 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +7 -7
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +2 -3
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +4 -2
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +4 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +7 -3
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +1 -2
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +2 -2
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +4 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +3 -0
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +2 -1
- package/node_modules/@smithy/util-stream/package.json +5 -5
- package/node_modules/@smithy/util-waiter/package.json +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +61 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +3 -0
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +61 -2
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +3 -0
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +61 -2
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +3 -0
- package/node_modules/eventemitter3/README.md +3 -12
- package/node_modules/eventemitter3/dist/eventemitter3.esm.js +353 -345
- package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +1 -1
- package/node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map +1 -1
- package/node_modules/eventemitter3/dist/eventemitter3.umd.js +358 -350
- package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +1 -1
- package/node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map +1 -1
- package/node_modules/eventemitter3/package.json +7 -12
- package/node_modules/lodash/README.md +2 -2
- package/node_modules/lodash/_baseUnset.js +47 -2
- package/node_modules/lodash/core.js +1 -1
- package/node_modules/lodash/core.min.js +1 -1
- package/node_modules/lodash/lodash.js +43 -4
- package/node_modules/lodash/lodash.min.js +57 -57
- package/node_modules/lodash/package.json +1 -1
- package/package.json +15 -15
- package/node_modules/lodash/flake.lock +0 -40
- package/node_modules/lodash/flake.nix +0 -20
- package/node_modules/lodash/release.md +0 -48
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-lambda",
|
|
3
3
|
"description": "AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.972.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-lambda",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "
|
|
12
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
13
13
|
"extract:docs": "api-extractor run --local",
|
|
14
14
|
"generate:client": "node ../../scripts/generate-clients/single-service --solo lambda",
|
|
15
15
|
"test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts --mode development",
|
|
@@ -23,59 +23,59 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
|
-
"@aws-sdk/core": "3.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
33
|
-
"@aws-sdk/types": "3.
|
|
34
|
-
"@aws-sdk/util-endpoints": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
37
|
-
"@smithy/config-resolver": "^4.4.
|
|
38
|
-
"@smithy/core": "^3.20.
|
|
39
|
-
"@smithy/eventstream-serde-browser": "^4.2.
|
|
40
|
-
"@smithy/eventstream-serde-config-resolver": "^4.3.
|
|
41
|
-
"@smithy/eventstream-serde-node": "^4.2.
|
|
42
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
43
|
-
"@smithy/hash-node": "^4.2.
|
|
44
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
45
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
46
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
47
|
-
"@smithy/middleware-retry": "^4.4.
|
|
48
|
-
"@smithy/middleware-serde": "^4.2.
|
|
49
|
-
"@smithy/middleware-stack": "^4.2.
|
|
50
|
-
"@smithy/node-config-provider": "^4.3.
|
|
51
|
-
"@smithy/node-http-handler": "^4.4.
|
|
52
|
-
"@smithy/protocol-http": "^5.3.
|
|
53
|
-
"@smithy/smithy-client": "^4.10.
|
|
54
|
-
"@smithy/types": "^4.
|
|
55
|
-
"@smithy/url-parser": "^4.2.
|
|
26
|
+
"@aws-sdk/core": "3.972.0",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "3.972.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.972.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.972.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.972.0",
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "3.972.0",
|
|
32
|
+
"@aws-sdk/region-config-resolver": "3.972.0",
|
|
33
|
+
"@aws-sdk/types": "3.972.0",
|
|
34
|
+
"@aws-sdk/util-endpoints": "3.972.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-browser": "3.972.0",
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "3.972.0",
|
|
37
|
+
"@smithy/config-resolver": "^4.4.6",
|
|
38
|
+
"@smithy/core": "^3.20.6",
|
|
39
|
+
"@smithy/eventstream-serde-browser": "^4.2.8",
|
|
40
|
+
"@smithy/eventstream-serde-config-resolver": "^4.3.8",
|
|
41
|
+
"@smithy/eventstream-serde-node": "^4.2.8",
|
|
42
|
+
"@smithy/fetch-http-handler": "^5.3.9",
|
|
43
|
+
"@smithy/hash-node": "^4.2.8",
|
|
44
|
+
"@smithy/invalid-dependency": "^4.2.8",
|
|
45
|
+
"@smithy/middleware-content-length": "^4.2.8",
|
|
46
|
+
"@smithy/middleware-endpoint": "^4.4.7",
|
|
47
|
+
"@smithy/middleware-retry": "^4.4.23",
|
|
48
|
+
"@smithy/middleware-serde": "^4.2.9",
|
|
49
|
+
"@smithy/middleware-stack": "^4.2.8",
|
|
50
|
+
"@smithy/node-config-provider": "^4.3.8",
|
|
51
|
+
"@smithy/node-http-handler": "^4.4.8",
|
|
52
|
+
"@smithy/protocol-http": "^5.3.8",
|
|
53
|
+
"@smithy/smithy-client": "^4.10.8",
|
|
54
|
+
"@smithy/types": "^4.12.0",
|
|
55
|
+
"@smithy/url-parser": "^4.2.8",
|
|
56
56
|
"@smithy/util-base64": "^4.3.0",
|
|
57
57
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
58
58
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
59
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
60
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
61
|
-
"@smithy/util-endpoints": "^3.2.
|
|
62
|
-
"@smithy/util-middleware": "^4.2.
|
|
63
|
-
"@smithy/util-retry": "^4.2.
|
|
64
|
-
"@smithy/util-stream": "^4.5.
|
|
59
|
+
"@smithy/util-defaults-mode-browser": "^4.3.22",
|
|
60
|
+
"@smithy/util-defaults-mode-node": "^4.2.25",
|
|
61
|
+
"@smithy/util-endpoints": "^3.2.8",
|
|
62
|
+
"@smithy/util-middleware": "^4.2.8",
|
|
63
|
+
"@smithy/util-retry": "^4.2.8",
|
|
64
|
+
"@smithy/util-stream": "^4.5.10",
|
|
65
65
|
"@smithy/util-utf8": "^4.2.0",
|
|
66
|
-
"@smithy/util-waiter": "^4.2.
|
|
66
|
+
"@smithy/util-waiter": "^4.2.8",
|
|
67
67
|
"tslib": "^2.6.2"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@tsconfig/
|
|
71
|
-
"@types/node": "^
|
|
70
|
+
"@tsconfig/node20": "20.1.8",
|
|
71
|
+
"@types/node": "^20.14.8",
|
|
72
72
|
"concurrently": "7.0.0",
|
|
73
73
|
"downlevel-dts": "0.10.1",
|
|
74
|
-
"
|
|
74
|
+
"premove": "4.0.0",
|
|
75
75
|
"typescript": "~5.8.3"
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|
|
78
|
-
"node": ">=
|
|
78
|
+
"node": ">=20.0.0"
|
|
79
79
|
},
|
|
80
80
|
"typesVersions": {
|
|
81
81
|
"<4.0": {
|
|
@@ -228,7 +228,7 @@ var AccountInfo$ = [3, n0, _AI,
|
|
|
228
228
|
var GetRoleCredentialsRequest$ = [3, n0, _GRCR,
|
|
229
229
|
0,
|
|
230
230
|
[_rN, _aI, _aT],
|
|
231
|
-
[[0, { [_hQ]: _rn }], [0, { [_hQ]: _ai }], [() => AccessTokenType, { [_hH]: _xasbt }]]
|
|
231
|
+
[[0, { [_hQ]: _rn }], [0, { [_hQ]: _ai }], [() => AccessTokenType, { [_hH]: _xasbt }]], 3
|
|
232
232
|
];
|
|
233
233
|
var GetRoleCredentialsResponse$ = [3, n0, _GRCRe,
|
|
234
234
|
0,
|
|
@@ -243,8 +243,8 @@ var InvalidRequestException$ = [-3, n0, _IRE,
|
|
|
243
243
|
schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
|
|
244
244
|
var ListAccountRolesRequest$ = [3, n0, _LARR,
|
|
245
245
|
0,
|
|
246
|
-
[
|
|
247
|
-
[[
|
|
246
|
+
[_aT, _aI, _nT, _mR],
|
|
247
|
+
[[() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _ai }], [0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }]], 2
|
|
248
248
|
];
|
|
249
249
|
var ListAccountRolesResponse$ = [3, n0, _LARRi,
|
|
250
250
|
0,
|
|
@@ -253,8 +253,8 @@ var ListAccountRolesResponse$ = [3, n0, _LARRi,
|
|
|
253
253
|
];
|
|
254
254
|
var ListAccountsRequest$ = [3, n0, _LAR,
|
|
255
255
|
0,
|
|
256
|
-
[_nT, _mR
|
|
257
|
-
[[
|
|
256
|
+
[_aT, _nT, _mR],
|
|
257
|
+
[[() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }]], 1
|
|
258
258
|
];
|
|
259
259
|
var ListAccountsResponse$ = [3, n0, _LARi,
|
|
260
260
|
0,
|
|
@@ -264,7 +264,7 @@ var ListAccountsResponse$ = [3, n0, _LARi,
|
|
|
264
264
|
var LogoutRequest$ = [3, n0, _LR,
|
|
265
265
|
0,
|
|
266
266
|
[_aT],
|
|
267
|
-
[[() => AccessTokenType, { [_hH]: _xasbt }]]
|
|
267
|
+
[[() => AccessTokenType, { [_hH]: _xasbt }]], 1
|
|
268
268
|
];
|
|
269
269
|
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
270
270
|
{ [_e]: _c, [_hE]: 404 },
|
|
@@ -63,7 +63,7 @@ export var AccountInfo$ = [3, n0, _AI,
|
|
|
63
63
|
export var GetRoleCredentialsRequest$ = [3, n0, _GRCR,
|
|
64
64
|
0,
|
|
65
65
|
[_rN, _aI, _aT],
|
|
66
|
-
[[0, { [_hQ]: _rn }], [0, { [_hQ]: _ai }], [() => AccessTokenType, { [_hH]: _xasbt }]]
|
|
66
|
+
[[0, { [_hQ]: _rn }], [0, { [_hQ]: _ai }], [() => AccessTokenType, { [_hH]: _xasbt }]], 3
|
|
67
67
|
];
|
|
68
68
|
export var GetRoleCredentialsResponse$ = [3, n0, _GRCRe,
|
|
69
69
|
0,
|
|
@@ -78,8 +78,8 @@ export var InvalidRequestException$ = [-3, n0, _IRE,
|
|
|
78
78
|
TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
|
|
79
79
|
export var ListAccountRolesRequest$ = [3, n0, _LARR,
|
|
80
80
|
0,
|
|
81
|
-
[
|
|
82
|
-
[[
|
|
81
|
+
[_aT, _aI, _nT, _mR],
|
|
82
|
+
[[() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _ai }], [0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }]], 2
|
|
83
83
|
];
|
|
84
84
|
export var ListAccountRolesResponse$ = [3, n0, _LARRi,
|
|
85
85
|
0,
|
|
@@ -88,8 +88,8 @@ export var ListAccountRolesResponse$ = [3, n0, _LARRi,
|
|
|
88
88
|
];
|
|
89
89
|
export var ListAccountsRequest$ = [3, n0, _LAR,
|
|
90
90
|
0,
|
|
91
|
-
[_nT, _mR
|
|
92
|
-
[[
|
|
91
|
+
[_aT, _nT, _mR],
|
|
92
|
+
[[() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }]], 1
|
|
93
93
|
];
|
|
94
94
|
export var ListAccountsResponse$ = [3, n0, _LARi,
|
|
95
95
|
0,
|
|
@@ -99,7 +99,7 @@ export var ListAccountsResponse$ = [3, n0, _LARi,
|
|
|
99
99
|
export var LogoutRequest$ = [3, n0, _LR,
|
|
100
100
|
0,
|
|
101
101
|
[_aT],
|
|
102
|
-
[[() => AccessTokenType, { [_hH]: _xasbt }]]
|
|
102
|
+
[[() => AccessTokenType, { [_hH]: _xasbt }]], 1
|
|
103
103
|
];
|
|
104
104
|
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
105
105
|
{ [_e]: _c, [_hE]: 404 },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sso",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.972.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sso",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "
|
|
12
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
13
13
|
"extract:docs": "api-extractor run --local",
|
|
14
14
|
"generate:client": "node ../../scripts/generate-clients/single-service --solo sso",
|
|
15
15
|
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
|
|
@@ -21,53 +21,53 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
26
|
-
"@aws-sdk/middleware-logger": "3.
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
30
|
-
"@aws-sdk/types": "3.
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
34
|
-
"@smithy/config-resolver": "^4.4.
|
|
35
|
-
"@smithy/core": "^3.20.
|
|
36
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
37
|
-
"@smithy/hash-node": "^4.2.
|
|
38
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
39
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
41
|
-
"@smithy/middleware-retry": "^4.4.
|
|
42
|
-
"@smithy/middleware-serde": "^4.2.
|
|
43
|
-
"@smithy/middleware-stack": "^4.2.
|
|
44
|
-
"@smithy/node-config-provider": "^4.3.
|
|
45
|
-
"@smithy/node-http-handler": "^4.4.
|
|
46
|
-
"@smithy/protocol-http": "^5.3.
|
|
47
|
-
"@smithy/smithy-client": "^4.10.
|
|
48
|
-
"@smithy/types": "^4.
|
|
49
|
-
"@smithy/url-parser": "^4.2.
|
|
24
|
+
"@aws-sdk/core": "3.972.0",
|
|
25
|
+
"@aws-sdk/middleware-host-header": "3.972.0",
|
|
26
|
+
"@aws-sdk/middleware-logger": "3.972.0",
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.972.0",
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.972.0",
|
|
29
|
+
"@aws-sdk/region-config-resolver": "3.972.0",
|
|
30
|
+
"@aws-sdk/types": "3.972.0",
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.972.0",
|
|
32
|
+
"@aws-sdk/util-user-agent-browser": "3.972.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.972.0",
|
|
34
|
+
"@smithy/config-resolver": "^4.4.6",
|
|
35
|
+
"@smithy/core": "^3.20.6",
|
|
36
|
+
"@smithy/fetch-http-handler": "^5.3.9",
|
|
37
|
+
"@smithy/hash-node": "^4.2.8",
|
|
38
|
+
"@smithy/invalid-dependency": "^4.2.8",
|
|
39
|
+
"@smithy/middleware-content-length": "^4.2.8",
|
|
40
|
+
"@smithy/middleware-endpoint": "^4.4.7",
|
|
41
|
+
"@smithy/middleware-retry": "^4.4.23",
|
|
42
|
+
"@smithy/middleware-serde": "^4.2.9",
|
|
43
|
+
"@smithy/middleware-stack": "^4.2.8",
|
|
44
|
+
"@smithy/node-config-provider": "^4.3.8",
|
|
45
|
+
"@smithy/node-http-handler": "^4.4.8",
|
|
46
|
+
"@smithy/protocol-http": "^5.3.8",
|
|
47
|
+
"@smithy/smithy-client": "^4.10.8",
|
|
48
|
+
"@smithy/types": "^4.12.0",
|
|
49
|
+
"@smithy/url-parser": "^4.2.8",
|
|
50
50
|
"@smithy/util-base64": "^4.3.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
55
|
-
"@smithy/util-endpoints": "^3.2.
|
|
56
|
-
"@smithy/util-middleware": "^4.2.
|
|
57
|
-
"@smithy/util-retry": "^4.2.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^4.3.22",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^4.2.25",
|
|
55
|
+
"@smithy/util-endpoints": "^3.2.8",
|
|
56
|
+
"@smithy/util-middleware": "^4.2.8",
|
|
57
|
+
"@smithy/util-retry": "^4.2.8",
|
|
58
58
|
"@smithy/util-utf8": "^4.2.0",
|
|
59
59
|
"tslib": "^2.6.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@tsconfig/
|
|
63
|
-
"@types/node": "^
|
|
62
|
+
"@tsconfig/node20": "20.1.8",
|
|
63
|
+
"@types/node": "^20.14.8",
|
|
64
64
|
"concurrently": "7.0.0",
|
|
65
65
|
"downlevel-dts": "0.10.1",
|
|
66
|
-
"
|
|
66
|
+
"premove": "4.0.0",
|
|
67
67
|
"typescript": "~5.8.3"
|
|
68
68
|
},
|
|
69
69
|
"engines": {
|
|
70
|
-
"node": ">=
|
|
70
|
+
"node": ">=20.0.0"
|
|
71
71
|
},
|
|
72
72
|
"typesVersions": {
|
|
73
73
|
"<4.0": {
|
|
@@ -727,24 +727,42 @@ class JsonShapeDeserializer extends SerdeContextConfig {
|
|
|
727
727
|
const ns = schema.NormalizedSchema.of(schema$1);
|
|
728
728
|
if (isObject) {
|
|
729
729
|
if (ns.isStructSchema()) {
|
|
730
|
+
const record = value;
|
|
730
731
|
const union = ns.isUnionSchema();
|
|
731
732
|
const out = {};
|
|
733
|
+
let nameMap = void 0;
|
|
734
|
+
const { jsonName } = this.settings;
|
|
735
|
+
if (jsonName) {
|
|
736
|
+
nameMap = {};
|
|
737
|
+
}
|
|
732
738
|
let unionSerde;
|
|
733
739
|
if (union) {
|
|
734
|
-
unionSerde = new UnionSerde(
|
|
740
|
+
unionSerde = new UnionSerde(record, out);
|
|
735
741
|
}
|
|
736
|
-
for (const [memberName, memberSchema] of deserializingStructIterator(ns,
|
|
737
|
-
|
|
742
|
+
for (const [memberName, memberSchema] of deserializingStructIterator(ns, record, jsonName ? "jsonName" : false)) {
|
|
743
|
+
let fromKey = memberName;
|
|
744
|
+
if (jsonName) {
|
|
745
|
+
fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
|
|
746
|
+
nameMap[fromKey] = memberName;
|
|
747
|
+
}
|
|
738
748
|
if (union) {
|
|
739
749
|
unionSerde.mark(fromKey);
|
|
740
750
|
}
|
|
741
|
-
if (
|
|
742
|
-
out[memberName] = this._read(memberSchema,
|
|
751
|
+
if (record[fromKey] != null) {
|
|
752
|
+
out[memberName] = this._read(memberSchema, record[fromKey]);
|
|
743
753
|
}
|
|
744
754
|
}
|
|
745
755
|
if (union) {
|
|
746
756
|
unionSerde.writeUnknown();
|
|
747
757
|
}
|
|
758
|
+
else if (typeof record.__type === "string") {
|
|
759
|
+
for (const [k, v] of Object.entries(record)) {
|
|
760
|
+
const t = jsonName ? nameMap[k] ?? k : k;
|
|
761
|
+
if (!(t in out)) {
|
|
762
|
+
out[t] = v;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
}
|
|
748
766
|
return out;
|
|
749
767
|
}
|
|
750
768
|
if (Array.isArray(value) && ns.isListSchema()) {
|
|
@@ -923,22 +941,39 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
923
941
|
const ns = schema.NormalizedSchema.of(schema$1);
|
|
924
942
|
if (isObject) {
|
|
925
943
|
if (ns.isStructSchema()) {
|
|
944
|
+
const record = value;
|
|
926
945
|
const out = {};
|
|
927
|
-
|
|
928
|
-
|
|
946
|
+
const { jsonName } = this.settings;
|
|
947
|
+
let nameMap = void 0;
|
|
948
|
+
if (jsonName) {
|
|
949
|
+
nameMap = {};
|
|
950
|
+
}
|
|
951
|
+
for (const [memberName, memberSchema] of serializingStructIterator(ns, record)) {
|
|
952
|
+
const serializableValue = this._write(memberSchema, record[memberName], ns);
|
|
929
953
|
if (serializableValue !== undefined) {
|
|
930
|
-
|
|
931
|
-
|
|
954
|
+
let targetKey = memberName;
|
|
955
|
+
if (jsonName) {
|
|
956
|
+
targetKey = memberSchema.getMergedTraits().jsonName ?? memberName;
|
|
957
|
+
nameMap[memberName] = targetKey;
|
|
958
|
+
}
|
|
932
959
|
out[targetKey] = serializableValue;
|
|
933
960
|
}
|
|
934
961
|
}
|
|
935
962
|
if (ns.isUnionSchema() && Object.keys(out).length === 0) {
|
|
936
|
-
const { $unknown } =
|
|
963
|
+
const { $unknown } = record;
|
|
937
964
|
if (Array.isArray($unknown)) {
|
|
938
965
|
const [k, v] = $unknown;
|
|
939
966
|
out[k] = this._write(15, v);
|
|
940
967
|
}
|
|
941
968
|
}
|
|
969
|
+
else if (typeof record.__type === "string") {
|
|
970
|
+
for (const [k, v] of Object.entries(record)) {
|
|
971
|
+
const targetKey = jsonName ? nameMap[k] ?? k : k;
|
|
972
|
+
if (!(targetKey in out)) {
|
|
973
|
+
out[targetKey] = this._write(15, v);
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
}
|
|
942
977
|
return out;
|
|
943
978
|
}
|
|
944
979
|
if (Array.isArray(value) && ns.isListSchema()) {
|
|
@@ -389,24 +389,42 @@ class JsonShapeDeserializer extends SerdeContextConfig {
|
|
|
389
389
|
const ns = schema.NormalizedSchema.of(schema$1);
|
|
390
390
|
if (isObject) {
|
|
391
391
|
if (ns.isStructSchema()) {
|
|
392
|
+
const record = value;
|
|
392
393
|
const union = ns.isUnionSchema();
|
|
393
394
|
const out = {};
|
|
395
|
+
let nameMap = void 0;
|
|
396
|
+
const { jsonName } = this.settings;
|
|
397
|
+
if (jsonName) {
|
|
398
|
+
nameMap = {};
|
|
399
|
+
}
|
|
394
400
|
let unionSerde;
|
|
395
401
|
if (union) {
|
|
396
|
-
unionSerde = new UnionSerde(
|
|
402
|
+
unionSerde = new UnionSerde(record, out);
|
|
397
403
|
}
|
|
398
|
-
for (const [memberName, memberSchema] of deserializingStructIterator(ns,
|
|
399
|
-
|
|
404
|
+
for (const [memberName, memberSchema] of deserializingStructIterator(ns, record, jsonName ? "jsonName" : false)) {
|
|
405
|
+
let fromKey = memberName;
|
|
406
|
+
if (jsonName) {
|
|
407
|
+
fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
|
|
408
|
+
nameMap[fromKey] = memberName;
|
|
409
|
+
}
|
|
400
410
|
if (union) {
|
|
401
411
|
unionSerde.mark(fromKey);
|
|
402
412
|
}
|
|
403
|
-
if (
|
|
404
|
-
out[memberName] = this._read(memberSchema,
|
|
413
|
+
if (record[fromKey] != null) {
|
|
414
|
+
out[memberName] = this._read(memberSchema, record[fromKey]);
|
|
405
415
|
}
|
|
406
416
|
}
|
|
407
417
|
if (union) {
|
|
408
418
|
unionSerde.writeUnknown();
|
|
409
419
|
}
|
|
420
|
+
else if (typeof record.__type === "string") {
|
|
421
|
+
for (const [k, v] of Object.entries(record)) {
|
|
422
|
+
const t = jsonName ? nameMap[k] ?? k : k;
|
|
423
|
+
if (!(t in out)) {
|
|
424
|
+
out[t] = v;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
410
428
|
return out;
|
|
411
429
|
}
|
|
412
430
|
if (Array.isArray(value) && ns.isListSchema()) {
|
|
@@ -585,22 +603,39 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
585
603
|
const ns = schema.NormalizedSchema.of(schema$1);
|
|
586
604
|
if (isObject) {
|
|
587
605
|
if (ns.isStructSchema()) {
|
|
606
|
+
const record = value;
|
|
588
607
|
const out = {};
|
|
589
|
-
|
|
590
|
-
|
|
608
|
+
const { jsonName } = this.settings;
|
|
609
|
+
let nameMap = void 0;
|
|
610
|
+
if (jsonName) {
|
|
611
|
+
nameMap = {};
|
|
612
|
+
}
|
|
613
|
+
for (const [memberName, memberSchema] of serializingStructIterator(ns, record)) {
|
|
614
|
+
const serializableValue = this._write(memberSchema, record[memberName], ns);
|
|
591
615
|
if (serializableValue !== undefined) {
|
|
592
|
-
|
|
593
|
-
|
|
616
|
+
let targetKey = memberName;
|
|
617
|
+
if (jsonName) {
|
|
618
|
+
targetKey = memberSchema.getMergedTraits().jsonName ?? memberName;
|
|
619
|
+
nameMap[memberName] = targetKey;
|
|
620
|
+
}
|
|
594
621
|
out[targetKey] = serializableValue;
|
|
595
622
|
}
|
|
596
623
|
}
|
|
597
624
|
if (ns.isUnionSchema() && Object.keys(out).length === 0) {
|
|
598
|
-
const { $unknown } =
|
|
625
|
+
const { $unknown } = record;
|
|
599
626
|
if (Array.isArray($unknown)) {
|
|
600
627
|
const [k, v] = $unknown;
|
|
601
628
|
out[k] = this._write(15, v);
|
|
602
629
|
}
|
|
603
630
|
}
|
|
631
|
+
else if (typeof record.__type === "string") {
|
|
632
|
+
for (const [k, v] of Object.entries(record)) {
|
|
633
|
+
const targetKey = jsonName ? nameMap[k] ?? k : k;
|
|
634
|
+
if (!(targetKey in out)) {
|
|
635
|
+
out[targetKey] = this._write(15, v);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
}
|
|
604
639
|
return out;
|
|
605
640
|
}
|
|
606
641
|
if (Array.isArray(value) && ns.isListSchema()) {
|
package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js
CHANGED
|
@@ -24,24 +24,42 @@ export class JsonShapeDeserializer extends SerdeContextConfig {
|
|
|
24
24
|
const ns = NormalizedSchema.of(schema);
|
|
25
25
|
if (isObject) {
|
|
26
26
|
if (ns.isStructSchema()) {
|
|
27
|
+
const record = value;
|
|
27
28
|
const union = ns.isUnionSchema();
|
|
28
29
|
const out = {};
|
|
30
|
+
let nameMap = void 0;
|
|
31
|
+
const { jsonName } = this.settings;
|
|
32
|
+
if (jsonName) {
|
|
33
|
+
nameMap = {};
|
|
34
|
+
}
|
|
29
35
|
let unionSerde;
|
|
30
36
|
if (union) {
|
|
31
|
-
unionSerde = new UnionSerde(
|
|
37
|
+
unionSerde = new UnionSerde(record, out);
|
|
32
38
|
}
|
|
33
|
-
for (const [memberName, memberSchema] of deserializingStructIterator(ns,
|
|
34
|
-
|
|
39
|
+
for (const [memberName, memberSchema] of deserializingStructIterator(ns, record, jsonName ? "jsonName" : false)) {
|
|
40
|
+
let fromKey = memberName;
|
|
41
|
+
if (jsonName) {
|
|
42
|
+
fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
|
|
43
|
+
nameMap[fromKey] = memberName;
|
|
44
|
+
}
|
|
35
45
|
if (union) {
|
|
36
46
|
unionSerde.mark(fromKey);
|
|
37
47
|
}
|
|
38
|
-
if (
|
|
39
|
-
out[memberName] = this._read(memberSchema,
|
|
48
|
+
if (record[fromKey] != null) {
|
|
49
|
+
out[memberName] = this._read(memberSchema, record[fromKey]);
|
|
40
50
|
}
|
|
41
51
|
}
|
|
42
52
|
if (union) {
|
|
43
53
|
unionSerde.writeUnknown();
|
|
44
54
|
}
|
|
55
|
+
else if (typeof record.__type === "string") {
|
|
56
|
+
for (const [k, v] of Object.entries(record)) {
|
|
57
|
+
const t = jsonName ? nameMap[k] ?? k : k;
|
|
58
|
+
if (!(t in out)) {
|
|
59
|
+
out[t] = v;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
45
63
|
return out;
|
|
46
64
|
}
|
|
47
65
|
if (Array.isArray(value) && ns.isListSchema()) {
|
|
@@ -42,22 +42,39 @@ export class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
42
42
|
const ns = NormalizedSchema.of(schema);
|
|
43
43
|
if (isObject) {
|
|
44
44
|
if (ns.isStructSchema()) {
|
|
45
|
+
const record = value;
|
|
45
46
|
const out = {};
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
const { jsonName } = this.settings;
|
|
48
|
+
let nameMap = void 0;
|
|
49
|
+
if (jsonName) {
|
|
50
|
+
nameMap = {};
|
|
51
|
+
}
|
|
52
|
+
for (const [memberName, memberSchema] of serializingStructIterator(ns, record)) {
|
|
53
|
+
const serializableValue = this._write(memberSchema, record[memberName], ns);
|
|
48
54
|
if (serializableValue !== undefined) {
|
|
49
|
-
|
|
50
|
-
|
|
55
|
+
let targetKey = memberName;
|
|
56
|
+
if (jsonName) {
|
|
57
|
+
targetKey = memberSchema.getMergedTraits().jsonName ?? memberName;
|
|
58
|
+
nameMap[memberName] = targetKey;
|
|
59
|
+
}
|
|
51
60
|
out[targetKey] = serializableValue;
|
|
52
61
|
}
|
|
53
62
|
}
|
|
54
63
|
if (ns.isUnionSchema() && Object.keys(out).length === 0) {
|
|
55
|
-
const { $unknown } =
|
|
64
|
+
const { $unknown } = record;
|
|
56
65
|
if (Array.isArray($unknown)) {
|
|
57
66
|
const [k, v] = $unknown;
|
|
58
67
|
out[k] = this._write(15, v);
|
|
59
68
|
}
|
|
60
69
|
}
|
|
70
|
+
else if (typeof record.__type === "string") {
|
|
71
|
+
for (const [k, v] of Object.entries(record)) {
|
|
72
|
+
const targetKey = jsonName ? nameMap[k] ?? k : k;
|
|
73
|
+
if (!(targetKey in out)) {
|
|
74
|
+
out[targetKey] = this._write(15, v);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
61
78
|
return out;
|
|
62
79
|
}
|
|
63
80
|
if (Array.isArray(value) && ns.isListSchema()) {
|