@holochain/client
Advanced tools
Comparing version 0.12.1 to 0.12.2
@@ -1,2 +0,2 @@ | ||
import { ActionHash, AgentPubKey, EntryHash } from "../types.js"; | ||
import { DnaHash, ActionHash, AgentPubKey, EntryHash } from "../types.js"; | ||
/** | ||
@@ -28,1 +28,9 @@ * Generate a valid hash of a non-existing entry. | ||
export declare function fakeActionHash(): Promise<ActionHash>; | ||
/** | ||
* Generate a valid hash of a non-existing DNA. | ||
* | ||
* @returns A {@link DnaHash}. | ||
* | ||
* @public | ||
*/ | ||
export declare function fakeDnaHash(): Promise<DnaHash>; |
@@ -37,1 +37,12 @@ import { randomByteArray } from "../api/zome-call-signing.js"; | ||
} | ||
/** | ||
* Generate a valid hash of a non-existing DNA. | ||
* | ||
* @returns A {@link DnaHash}. | ||
* | ||
* @public | ||
*/ | ||
export async function fakeDnaHash() { | ||
const randomBytes = await randomByteArray(36); | ||
return new Uint8Array([0x84, 0x2d, 0x24, ...randomBytes]); | ||
} |
{ | ||
"name": "@holochain/client", | ||
"version": "0.12.1", | ||
"version": "0.12.2", | ||
"description": "A JavaScript client for the Holochain Conductor API", | ||
@@ -5,0 +5,0 @@ "author": "Holochain Foundation <info@holochain.org> (http://holochain.org)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94961
3091