@portalshq/nap-sdk 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/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 SHA-256 content hash of raw bytes.
262
+ * Compute the BLAKE3 content hash of raw bytes.
263
263
  *
264
264
  * @param data - Raw byte data
265
- * @returns Content hash `sha256:<hex>`
265
+ * @returns Content hash `blake3:<hex>`
266
266
  */
267
267
  export declare function contentHashFromBytes(data: Buffer): string;
268
268
  /**
269
- * Compute the SHA-256 content hash of a string.
269
+ * Compute the BLAKE3 content hash of a string.
270
270
  *
271
271
  * @param s - Input string
272
- * @returns Content hash `sha256:<hex>`
272
+ * @returns Content hash `blake3:<hex>`
273
273
  */
274
274
  export declare function contentHashFromString(s: string): string;
275
275
  /**
276
- * Parse and validate a `sha256:<hex>` content hash string.
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 SHA-256 content hash of raw bytes.
201
+ * Compute the BLAKE3 content hash of raw bytes.
202
202
  *
203
203
  * @param data - Raw byte data
204
- * @returns Content hash `sha256:<hex>`
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 SHA-256 content hash of a string.
210
+ * Compute the BLAKE3 content hash of a string.
211
211
  *
212
212
  * @param s - Input string
213
- * @returns Content hash `sha256:<hex>`
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 `sha256:<hex>` content hash string.
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
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portalshq/nap-sdk",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "TypeScript SDK for NAP (Narrative Addressing Protocol), powered by Rust and NAPI-RS.",
5
5
  "publishConfig": {
6
6
  "access": "public"