@distilled.cloud/aws 0.5.2 → 0.5.3
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/lib/sensitive.d.ts.map +1 -1
- package/lib/sensitive.js +2 -1
- package/lib/sensitive.js.map +1 -1
- package/package.json +2 -2
- package/src/sensitive.ts +2 -1
package/lib/sensitive.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sensitive.d.ts","sourceRoot":"","sources":["../src/sensitive.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,CAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"sensitive.d.ts","sourceRoot":"","sources":["../src/sensitive.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,CAAC,MAAM,eAAe,CAAC;AAInC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,4DAiBrB,CAAC;AAEP;;;;GAIG;AACH,eAAO,MAAM,eAAe,8CAE1B,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,aAAa,gFAUiB,CAAC"}
|
package/lib/sensitive.js
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
|
* smithy.api#sensitive - Marks data as sensitive, wrapping in Effect's Redacted type.
|
|
13
14
|
*
|
|
@@ -60,6 +61,6 @@ export const SensitiveString = Sensitive(S.String).annotate({
|
|
|
60
61
|
*/
|
|
61
62
|
export const SensitiveBlob = Sensitive(S.String.pipe(S.decodeTo(S.instanceOf(Uint8Array), SchemaTransformation.transform({
|
|
62
63
|
decode: (s) => Uint8Array.from(atob(s), (c) => c.charCodeAt(0)),
|
|
63
|
-
encode:
|
|
64
|
+
encode: toBase64,
|
|
64
65
|
})))).annotate({ identifier: "SensitiveBlob" });
|
|
65
66
|
//# sourceMappingURL=sensitive.js.map
|
package/lib/sensitive.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sensitive.js","sourceRoot":"","sources":["../src/sensitive.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,CAAC,MAAM,eAAe,CAAC;AACnC,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"sensitive.js","sourceRoot":"","sources":["../src/sensitive.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,CAAC,MAAM,eAAe,CAAC;AACnC,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,MAAmB,EACiB,EAAE,CACtC,MAAM;KACH,IAAI,CACH,CAAC,CAAC,QAAQ,CACR,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EACzD,oBAAoB,CAAC,SAAS,CAAC;IAC7B,gDAAgD;IAChD,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAQ;IACtC,2DAA2D;IAC3D,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAChE,CAAC,CACH,CACF;KACA,QAAQ,CAAC;IACR,UAAU,EAAE,aAAa,MAAM,CAAC,GAAG,CAAC,WAAW,EAAE,UAAU,IAAI,SAAS,GAAG;CAC5E,CAAC,CAAC;AAEP;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC;IAC1D,UAAU,EAAE,iBAAiB;CAC9B,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,SAAS,CACpC,CAAC,CAAC,MAAM,CAAC,IAAI,CACX,CAAC,CAAC,QAAQ,CACR,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,EACxB,oBAAoB,CAAC,SAAS,CAAC;IAC7B,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAC/D,MAAM,EAAE,QAAQ;CACjB,CAAC,CACH,CACF,CACF,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,eAAe,EAAE,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/aws",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
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.
|
|
85
|
+
"@distilled.cloud/core": "0.5.3",
|
|
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:
|
|
79
|
+
encode: toBase64,
|
|
79
80
|
}),
|
|
80
81
|
),
|
|
81
82
|
),
|