Socket
Socket
Sign inDemoInstall

@holochain/client

Package Overview
Dependencies
13
Maintainers
13
Versions
83
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.16.3 to 0.16.4

4

lib/api/common.d.ts

@@ -22,3 +22,5 @@ import { RoleName } from "../types.js";

export type Tagged<T> = {
type: string;
type: {
[tag: string]: null;
};
data: T;

@@ -25,0 +27,0 @@ };

@@ -12,3 +12,3 @@ const ERROR_TYPE = "error";

const transformedInput = await transform.input(req);
const input = { type: tag, data: transformedInput };
const input = { type: { [tag]: null }, data: transformedInput };
const response = await requester(input, timeout);

@@ -37,4 +37,5 @@ const output = transform.output(response.data);

export const catchError = (res) => {
if (res.type === ERROR_TYPE) {
const error = new HolochainError(res.data.type, res.data.data);
if (ERROR_TYPE in res.type) {
const errorName = Object.keys(res.data.type)[0];
const error = new HolochainError(errorName, res.data.data);
return Promise.reject(error);

@@ -41,0 +42,0 @@ }

@@ -1,2 +0,2 @@

import { ActionHash, EntryHash, ExternalHash } from "../types.js";
import { ActionHash, AgentPubKey, EntryHash, ExternalHash, Timestamp } from "../types.js";
/**

@@ -6,1 +6,25 @@ * @public

export type AnyLinkableHash = EntryHash | ActionHash | ExternalHash;
/**
* An internal zome index within the DNA, from 0 to 255.
*
* @public
*/
export type ZomeIndex = number;
/**
* An internal link type index within the DNA, from 0 to 255.
*
* @public
*/
export type LinkType = number;
/**
* @public
*/
export interface Link {
author: AgentPubKey;
target: AnyLinkableHash;
timestamp: Timestamp;
zome_index: ZomeIndex;
link_type: LinkType;
tag: Uint8Array;
create_link_hash: ActionHash;
}
{
"name": "@holochain/client",
"version": "0.16.3",
"version": "0.16.4",
"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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc