@jjrawlins/cdk-iam-policy-builder-helper 0.0.21 → 0.0.22

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 (66) hide show
  1. package/.jsii +3 -3
  2. package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
  3. package/cdk-iam-policy-builder-helper/version +1 -1
  4. package/node_modules/@smithy/abort-controller/package.json +2 -2
  5. package/node_modules/@smithy/config-resolver/package.json +4 -4
  6. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +14 -16
  7. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +155 -221
  8. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +12 -10
  9. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +12 -22
  10. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ListSchema.js +9 -20
  11. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/MapSchema.js +10 -21
  12. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +76 -87
  13. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/OperationSchema.js +11 -12
  14. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +16 -3
  15. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +9 -20
  16. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/StructureSchema.js +10 -27
  17. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +1 -2
  18. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +3 -16
  19. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +3 -5
  20. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +3 -9
  21. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +15 -13
  22. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +3 -2
  23. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +5 -1
  24. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +3 -5
  25. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +3 -6
  26. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +1 -2
  27. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +3 -16
  28. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +3 -5
  29. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +3 -9
  30. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +15 -13
  31. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +3 -2
  32. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +5 -1
  33. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +3 -5
  34. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +3 -9
  35. package/node_modules/@smithy/core/package.json +7 -7
  36. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  37. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  38. package/node_modules/@smithy/hash-node/package.json +2 -2
  39. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  40. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  41. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  42. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  43. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  44. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  45. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  46. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  47. package/node_modules/@smithy/property-provider/package.json +2 -2
  48. package/node_modules/@smithy/protocol-http/package.json +2 -2
  49. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  50. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  51. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  52. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  53. package/node_modules/@smithy/signature-v4/package.json +4 -4
  54. package/node_modules/@smithy/smithy-client/package.json +7 -7
  55. package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +9 -2
  56. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +13 -3
  57. package/node_modules/@smithy/types/package.json +1 -1
  58. package/node_modules/@smithy/url-parser/package.json +3 -3
  59. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  60. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  61. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  62. package/node_modules/@smithy/util-middleware/package.json +2 -2
  63. package/node_modules/@smithy/util-retry/package.json +3 -3
  64. package/node_modules/@smithy/util-stream/package.json +4 -4
  65. package/node_modules/@smithy/util-waiter/package.json +3 -3
  66. package/package.json +2 -2
package/.jsii CHANGED
@@ -14,7 +14,7 @@
14
14
  "dependencies": {
15
15
  "aws-cdk-lib": "^2.214.0",
16
16
  "constructs": "^10.4.2",
17
- "projen": "^0.95.6"
17
+ "projen": "^0.96.0"
18
18
  },
19
19
  "dependencyClosure": {
20
20
  "@aws-cdk/asset-awscli-v1": {
@@ -4140,6 +4140,6 @@
4140
4140
  }
4141
4141
  },
4142
4142
  "types": {},
4143
- "version": "0.0.21",
4144
- "fingerprint": "it2qxgEGv3sRZm+oTtC+Ol+lIg+v6eMO/fmFcm3CdmM="
4143
+ "version": "0.0.22",
4144
+ "fingerprint": "Ogwa/DVP/Foc41Ouolr7Eb9g1HmDkutp6LZ7zUO0vx8="
4145
4145
  }
@@ -14,7 +14,7 @@ import (
14
14
  projen "github.com/projen/projen-go/projen/jsii"
15
15
  )
16
16
 
17
- //go:embed jjrawlins-cdk-iam-policy-builder-helper-0.0.20.tgz
17
+ //go:embed jjrawlins-cdk-iam-policy-builder-helper-0.0.21.tgz
18
18
  var tarball []byte
19
19
 
20
20
  // Initialize loads the necessary packages in the @jsii/kernel to support the enclosing module.
@@ -26,5 +26,5 @@ func Initialize() {
26
26
  projen.Initialize()
27
27
 
28
28
  // Load this library into the kernel
29
- _jsii_.Load("@jjrawlins/cdk-iam-policy-builder-helper", "0.0.20", tarball)
29
+ _jsii_.Load("@jjrawlins/cdk-iam-policy-builder-helper", "0.0.21", tarball)
30
30
  }
@@ -1 +1 @@
1
- 0.0.20
1
+ 0.0.21
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/abort-controller",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "A simple abort controller library",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,7 +26,7 @@
26
26
  "license": "Apache-2.0",
27
27
  "sideEffects": false,
28
28
  "dependencies": {
29
- "@smithy/types": "^4.4.0",
29
+ "@smithy/types": "^4.5.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/config-resolver",
3
- "version": "4.2.0",
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 config-resolver",
@@ -25,10 +25,10 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/node-config-provider": "^4.2.0",
29
- "@smithy/types": "^4.4.0",
28
+ "@smithy/node-config-provider": "^4.2.1",
29
+ "@smithy/types": "^4.5.0",
30
30
  "@smithy/util-config-provider": "^4.1.0",
31
- "@smithy/util-middleware": "^4.1.0",
31
+ "@smithy/util-middleware": "^4.1.1",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
@@ -333,20 +333,15 @@ var HttpBindingProtocol = class extends HttpProtocol {
333
333
  if (traits.httpQueryParams) {
334
334
  for (const [key, val] of Object.entries(data)) {
335
335
  if (!(key in query)) {
336
- this.serializeQuery(
337
- import_schema2.NormalizedSchema.of([
338
- ns.getValueSchema(),
339
- {
340
- // We pass on the traits to the sub-schema
341
- // because we are still in the process of serializing the map itself.
342
- ...traits,
343
- httpQuery: key,
344
- httpQueryParams: void 0
345
- }
346
- ]),
347
- val,
348
- query
349
- );
336
+ const valueSchema = ns.getValueSchema();
337
+ Object.assign(valueSchema.getMergedTraits(), {
338
+ // We pass on the traits to the sub-schema
339
+ // because we are still in the process of serializing the map itself.
340
+ ...traits,
341
+ httpQuery: key,
342
+ httpQueryParams: void 0
343
+ });
344
+ this.serializeQuery(valueSchema, val, query);
350
345
  }
351
346
  }
352
347
  return;
@@ -433,6 +428,7 @@ var HttpBindingProtocol = class extends HttpProtocol {
433
428
  if (null != value) {
434
429
  if (memberSchema.isListSchema()) {
435
430
  const headerListValueSchema = memberSchema.getValueSchema();
431
+ headerListValueSchema.getMergedTraits().httpHeader = key;
436
432
  let sections;
437
433
  if (headerListValueSchema.isTimestampSchema() && headerListValueSchema.getSchema() === import_schema2.SCHEMA.TIMESTAMP_DEFAULT) {
438
434
  sections = (0, import_serde.splitEvery)(value, ",", 2);
@@ -441,7 +437,7 @@ var HttpBindingProtocol = class extends HttpProtocol {
441
437
  }
442
438
  const list = [];
443
439
  for (const section of sections) {
444
- list.push(await deserializer.read([headerListValueSchema, { httpHeader: key }], section.trim()));
440
+ list.push(await deserializer.read(headerListValueSchema, section.trim()));
445
441
  }
446
442
  dataObject[memberName] = list;
447
443
  } else {
@@ -452,8 +448,10 @@ var HttpBindingProtocol = class extends HttpProtocol {
452
448
  dataObject[memberName] = {};
453
449
  for (const [header, value] of Object.entries(response.headers)) {
454
450
  if (header.startsWith(memberTraits.httpPrefixHeaders)) {
451
+ const valueSchema = memberSchema.getValueSchema();
452
+ valueSchema.getMergedTraits().httpHeader = header;
455
453
  dataObject[memberName][header.slice(memberTraits.httpPrefixHeaders.length)] = await deserializer.read(
456
- [memberSchema.getValueSchema(), { httpHeader: header }],
454
+ valueSchema,
457
455
  value
458
456
  );
459
457
  }