Socket
Socket
Sign inDemoInstall

@holochain/client

Package Overview
Dependencies
Maintainers
13
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@holochain/client - npm Package Compare versions

Comparing version 0.12.1 to 0.12.2

10

lib/utils/fake-hash.d.ts

@@ -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]);
}

2

package.json
{
"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)",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc