@portalshq/nap-sdk 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/dist/index.d.ts
CHANGED
|
@@ -259,21 +259,21 @@ export declare function manifestSetRepresentation(manifest: Manifest, key: strin
|
|
|
259
259
|
*/
|
|
260
260
|
export declare function manifestBumpVersion(manifest: Manifest): Manifest;
|
|
261
261
|
/**
|
|
262
|
-
* Compute the
|
|
262
|
+
* Compute the BLAKE3 content hash of raw bytes.
|
|
263
263
|
*
|
|
264
264
|
* @param data - Raw byte data
|
|
265
|
-
* @returns Content hash `
|
|
265
|
+
* @returns Content hash `blake3:<hex>`
|
|
266
266
|
*/
|
|
267
267
|
export declare function contentHashFromBytes(data: Buffer): string;
|
|
268
268
|
/**
|
|
269
|
-
* Compute the
|
|
269
|
+
* Compute the BLAKE3 content hash of a string.
|
|
270
270
|
*
|
|
271
271
|
* @param s - Input string
|
|
272
|
-
* @returns Content hash `
|
|
272
|
+
* @returns Content hash `blake3:<hex>`
|
|
273
273
|
*/
|
|
274
274
|
export declare function contentHashFromString(s: string): string;
|
|
275
275
|
/**
|
|
276
|
-
* Parse and validate a `
|
|
276
|
+
* Parse and validate a `blake3:<hex>` content hash string.
|
|
277
277
|
*
|
|
278
278
|
* @param s - Content hash string
|
|
279
279
|
* @returns The validated content hash
|
package/dist/index.js
CHANGED
|
@@ -198,25 +198,25 @@ export function manifestBumpVersion(manifest) {
|
|
|
198
198
|
// ContentHash Operations
|
|
199
199
|
// ═══════════════════════════════════════════════════════════════════════
|
|
200
200
|
/**
|
|
201
|
-
* Compute the
|
|
201
|
+
* Compute the BLAKE3 content hash of raw bytes.
|
|
202
202
|
*
|
|
203
203
|
* @param data - Raw byte data
|
|
204
|
-
* @returns Content hash `
|
|
204
|
+
* @returns Content hash `blake3:<hex>`
|
|
205
205
|
*/
|
|
206
206
|
export function contentHashFromBytes(data) {
|
|
207
207
|
return native.contentHashFromBytes(data);
|
|
208
208
|
}
|
|
209
209
|
/**
|
|
210
|
-
* Compute the
|
|
210
|
+
* Compute the BLAKE3 content hash of a string.
|
|
211
211
|
*
|
|
212
212
|
* @param s - Input string
|
|
213
|
-
* @returns Content hash `
|
|
213
|
+
* @returns Content hash `blake3:<hex>`
|
|
214
214
|
*/
|
|
215
215
|
export function contentHashFromString(s) {
|
|
216
216
|
return native.contentHashFromString(s);
|
|
217
217
|
}
|
|
218
218
|
/**
|
|
219
|
-
* Parse and validate a `
|
|
219
|
+
* Parse and validate a `blake3:<hex>` content hash string.
|
|
220
220
|
*
|
|
221
221
|
* @param s - Content hash string
|
|
222
222
|
* @returns The validated content hash
|
|
Binary file
|
package/nap-sdk.darwin-x64.node
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|