@distilled.cloud/aws 0.5.2 → 0.5.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@distilled.cloud/aws",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/alchemy-run/distilled",
@@ -82,7 +82,7 @@
82
82
  "@aws-crypto/util": "^5.2.0",
83
83
  "@aws-sdk/credential-providers": "^3.994.0",
84
84
  "@aws-sdk/types": "^3.973.1",
85
- "@distilled.cloud/core": "0.5.2",
85
+ "@distilled.cloud/core": "0.5.4",
86
86
  "@smithy/shared-ini-file-loader": "^4.4.3",
87
87
  "@smithy/types": "^4.12.0",
88
88
  "@smithy/util-base64": "^4.3.0",
package/src/sensitive.ts CHANGED
@@ -8,6 +8,7 @@
8
8
  import * as Redacted from "effect/Redacted";
9
9
  import * as S from "effect/Schema";
10
10
  import * as SchemaTransformation from "effect/SchemaTransformation";
11
+ import { toBase64 } from "@smithy/util-base64";
11
12
 
12
13
  /**
13
14
  * smithy.api#sensitive - Marks data as sensitive, wrapping in Effect's Redacted type.
@@ -75,7 +76,7 @@ export const SensitiveBlob = Sensitive(
75
76
  S.instanceOf(Uint8Array),
76
77
  SchemaTransformation.transform({
77
78
  decode: (s) => Uint8Array.from(atob(s), (c) => c.charCodeAt(0)),
78
- encode: (bytes) => btoa(String.fromCharCode(...bytes)),
79
+ encode: toBase64,
79
80
  }),
80
81
  ),
81
82
  ),
@@ -94958,6 +94958,7 @@ export type RunInstancesError =
94958
94958
  | RequestLimitExceeded
94959
94959
  | InvalidAMIIDMalformed
94960
94960
  | InvalidAMIIDNotFound
94961
+ | InvalidParameterValue
94961
94962
  | MissingParameter
94962
94963
  | ParseError
94963
94964
  | CommonErrors;
@@ -95025,6 +95026,7 @@ export const runInstances: API.OperationMethod<
95025
95026
  RequestLimitExceeded,
95026
95027
  InvalidAMIIDMalformed,
95027
95028
  InvalidAMIIDNotFound,
95029
+ InvalidParameterValue,
95028
95030
  MissingParameter,
95029
95031
  ParseError,
95030
95032
  ],