@sparkvault/sdk-js 8.11.3 → 8.11.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/dist/index.d.ts +6 -3
- package/dist/sparkvault.cjs.js +39 -6
- package/dist/sparkvault.cjs.js.map +1 -1
- package/dist/sparkvault.esm.js +39 -6
- package/dist/sparkvault.esm.js.map +1 -1
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/utils/base64url.d.ts +11 -0
- package/dist/vaults/index.d.ts +6 -3
- package/package.json +1 -1
|
@@ -18,6 +18,17 @@ export declare function base64urlEncode(data: Uint8Array): string;
|
|
|
18
18
|
* @returns Base64url encoded string
|
|
19
19
|
*/
|
|
20
20
|
export declare function arrayBufferToBase64url(buffer: ArrayBuffer): string;
|
|
21
|
+
/**
|
|
22
|
+
* Encode a string as STANDARD base64 (with padding) of its UTF-8 bytes.
|
|
23
|
+
*
|
|
24
|
+
* Unlike base64urlEncode this keeps `+`/`/` and padding, so it round-trips
|
|
25
|
+
* through a server-side standard-base64 decoder. Used to carry arbitrary
|
|
26
|
+
* Unicode through an HTTP header value (which is limited to latin1 bytes).
|
|
27
|
+
*
|
|
28
|
+
* @param value - String to encode
|
|
29
|
+
* @returns Standard base64 string
|
|
30
|
+
*/
|
|
31
|
+
export declare function base64EncodeUtf8(value: string): string;
|
|
21
32
|
/**
|
|
22
33
|
* Decode base64url string to Uint8Array
|
|
23
34
|
*
|
package/dist/vaults/index.d.ts
CHANGED
|
@@ -98,9 +98,12 @@ export declare class VaultsModule {
|
|
|
98
98
|
/**
|
|
99
99
|
* Delete a vault and all its ingots. This action is irreversible!
|
|
100
100
|
*
|
|
101
|
-
* Requires the vault's exact name as confirmation
|
|
102
|
-
* `X-Confirm-Name` header
|
|
103
|
-
* (
|
|
101
|
+
* Requires the vault's exact name as confirmation, matched case-sensitively.
|
|
102
|
+
* The name is sent base64(UTF-8) as the `X-Confirm-Name-B64` header so a vault
|
|
103
|
+
* named with any Unicode (emoji, CJK, the U+202F in macOS-style names) is
|
|
104
|
+
* deletable — an HTTP header value cannot carry non-latin1 characters. The
|
|
105
|
+
* legacy raw `X-Confirm-Name` header is included only for latin1 names, so
|
|
106
|
+
* older API servers keep working.
|
|
104
107
|
*
|
|
105
108
|
* @example
|
|
106
109
|
* await sv.vaults.delete('vlt_abc', 'My Vault');
|