@jjrawlins/cdk-iam-policy-builder-helper 0.0.98 → 0.0.100

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/methods_list.txt CHANGED
@@ -1868,6 +1868,13 @@ bedrock-agentcore:UpdateOnlineEvaluationConfig
1868
1868
  bedrock-agentcore:UpdatePolicy
1869
1869
  bedrock-agentcore:UpdatePolicyEngine
1870
1870
  bedrock-agentcore:UpdateWorkloadIdentity
1871
+ bedrock-mantle:CallWithBearerToken
1872
+ bedrock-mantle:CancelInference
1873
+ bedrock-mantle:CreateInference
1874
+ bedrock-mantle:DeleteInference
1875
+ bedrock-mantle:GetInference
1876
+ bedrock-mantle:GetModel
1877
+ bedrock-mantle:ListModels
1871
1878
  bedrock:AllowVendedLogDeliveryForResource
1872
1879
  bedrock:ApplyGuardrail
1873
1880
  bedrock:AssociateAgentCollaborator
@@ -44,12 +44,7 @@ class InvokeStoreSingle extends InvokeStoreBase {
44
44
  }
45
45
  run(context, fn) {
46
46
  this.currentContext = context;
47
- try {
48
- return fn();
49
- }
50
- finally {
51
- this.currentContext = undefined;
52
- }
47
+ return fn();
53
48
  }
54
49
  }
55
50
  class InvokeStoreMulti extends InvokeStoreBase {
@@ -42,12 +42,7 @@ class InvokeStoreSingle extends InvokeStoreBase {
42
42
  }
43
43
  run(context, fn) {
44
44
  this.currentContext = context;
45
- try {
46
- return fn();
47
- }
48
- finally {
49
- this.currentContext = undefined;
50
- }
45
+ return fn();
51
46
  }
52
47
  }
53
48
  class InvokeStoreMulti extends InvokeStoreBase {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws/lambda-invoke-store",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Invoke scoped data storage for AWS Lambda Node.js Runtime Environment",
5
5
  "homepage": "https://github.com/awslabs/aws-lambda-invoke-store",
6
6
  "main": "./dist-cjs/invoke-store.js",
@@ -874,8 +874,15 @@ class CborShapeDeserializer extends protocols.SerdeContext {
874
874
  }
875
875
  readValue(_schema, value) {
876
876
  const ns = schema.NormalizedSchema.of(_schema);
877
- if (ns.isTimestampSchema() && typeof value === "number") {
878
- return serde._parseEpochTimestamp(value);
877
+ if (ns.isTimestampSchema()) {
878
+ if (typeof value === "number") {
879
+ return serde._parseEpochTimestamp(value);
880
+ }
881
+ if (typeof value === "object") {
882
+ if (value.tag === 1 && "value" in value) {
883
+ return serde._parseEpochTimestamp(value.value);
884
+ }
885
+ }
879
886
  }
880
887
  if (ns.isBlobSchema()) {
881
888
  if (typeof value === "string") {
@@ -891,7 +898,7 @@ class CborShapeDeserializer extends protocols.SerdeContext {
891
898
  typeof value === "symbol") {
892
899
  return value;
893
900
  }
894
- else if (typeof value === "function" || typeof value === "object") {
901
+ else if (typeof value === "object") {
895
902
  if (value === null) {
896
903
  return null;
897
904
  }
@@ -98,8 +98,15 @@ export class CborShapeDeserializer extends SerdeContext {
98
98
  }
99
99
  readValue(_schema, value) {
100
100
  const ns = NormalizedSchema.of(_schema);
101
- if (ns.isTimestampSchema() && typeof value === "number") {
102
- return _parseEpochTimestamp(value);
101
+ if (ns.isTimestampSchema()) {
102
+ if (typeof value === "number") {
103
+ return _parseEpochTimestamp(value);
104
+ }
105
+ if (typeof value === "object") {
106
+ if (value.tag === 1 && "value" in value) {
107
+ return _parseEpochTimestamp(value.value);
108
+ }
109
+ }
103
110
  }
104
111
  if (ns.isBlobSchema()) {
105
112
  if (typeof value === "string") {
@@ -115,7 +122,7 @@ export class CborShapeDeserializer extends SerdeContext {
115
122
  typeof value === "symbol") {
116
123
  return value;
117
124
  }
118
- else if (typeof value === "function" || typeof value === "object") {
125
+ else if (typeof value === "object") {
119
126
  if (value === null) {
120
127
  return null;
121
128
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.18.6",
3
+ "version": "3.18.7",
4
4
  "scripts": {
5
5
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline core",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-endpoint",
3
- "version": "4.3.13",
3
+ "version": "4.3.14",
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 middleware-endpoint",
@@ -25,7 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/core": "^3.18.6",
28
+ "@smithy/core": "^3.18.7",
29
29
  "@smithy/middleware-serde": "^4.2.6",
30
30
  "@smithy/node-config-provider": "^4.3.5",
31
31
  "@smithy/shared-ini-file-loader": "^4.4.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-retry",
3
- "version": "4.4.13",
3
+ "version": "4.4.14",
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 middleware-retry",
@@ -37,7 +37,7 @@
37
37
  "@smithy/node-config-provider": "^4.3.5",
38
38
  "@smithy/protocol-http": "^5.3.5",
39
39
  "@smithy/service-error-classification": "^4.2.5",
40
- "@smithy/smithy-client": "^4.9.9",
40
+ "@smithy/smithy-client": "^4.9.10",
41
41
  "@smithy/types": "^4.9.0",
42
42
  "@smithy/util-middleware": "^4.2.5",
43
43
  "@smithy/util-retry": "^4.2.5",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/smithy-client",
3
- "version": "4.9.9",
3
+ "version": "4.9.10",
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 smithy-client",
@@ -25,8 +25,8 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/core": "^3.18.6",
29
- "@smithy/middleware-endpoint": "^4.3.13",
28
+ "@smithy/core": "^3.18.7",
29
+ "@smithy/middleware-endpoint": "^4.3.14",
30
30
  "@smithy/middleware-stack": "^4.2.5",
31
31
  "@smithy/protocol-http": "^5.3.5",
32
32
  "@smithy/types": "^4.9.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "4.3.12",
3
+ "version": "4.3.13",
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,7 +25,7 @@
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
27
  "@smithy/property-provider": "^4.2.5",
28
- "@smithy/smithy-client": "^4.9.9",
28
+ "@smithy/smithy-client": "^4.9.10",
29
29
  "@smithy/types": "^4.9.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "4.2.15",
3
+ "version": "4.2.16",
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.5",
29
29
  "@smithy/node-config-provider": "^4.3.5",
30
30
  "@smithy/property-provider": "^4.2.5",
31
- "@smithy/smithy-client": "^4.9.9",
31
+ "@smithy/smithy-client": "^4.9.10",
32
32
  "@smithy/types": "^4.9.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
package/package.json CHANGED
@@ -99,7 +99,7 @@
99
99
  "publishConfig": {
100
100
  "access": "public"
101
101
  },
102
- "version": "0.0.98",
102
+ "version": "0.0.100",
103
103
  "jest": {
104
104
  "coverageProvider": "v8",
105
105
  "testMatch": [