@holochain/client
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -21,2 +21,8 @@ import { RoleId } from "../types.js"; | ||
export declare const promiseTimeout: (promise: Promise<any>, tag: string, ms: number) => Promise<unknown>; | ||
/** | ||
* Identifier of a clone cell, composed of the DNA's role id and the index | ||
* of the clone, starting at 0. | ||
* | ||
* Example: `profiles.0` | ||
*/ | ||
export declare class CloneId { | ||
@@ -27,2 +33,7 @@ private static readonly CLONE_ID_DELIMITER; | ||
constructor(roleId: RoleId, index: number); | ||
/** | ||
* Parse a role id of a clone cell to obtain a clone id instance. | ||
* @param roleId Role id to parse. | ||
* @returns A clone id instance. | ||
*/ | ||
static fromRoleId(roleId: RoleId): CloneId; | ||
@@ -29,0 +40,0 @@ toString(): string; |
@@ -41,2 +41,8 @@ const ERROR_TYPE = "error"; | ||
}; | ||
/** | ||
* Identifier of a clone cell, composed of the DNA's role id and the index | ||
* of the clone, starting at 0. | ||
* | ||
* Example: `profiles.0` | ||
*/ | ||
export class CloneId { | ||
@@ -50,2 +56,7 @@ static CLONE_ID_DELIMITER = "."; | ||
} | ||
/** | ||
* Parse a role id of a clone cell to obtain a clone id instance. | ||
* @param roleId Role id to parse. | ||
* @returns A clone id instance. | ||
*/ | ||
static fromRoleId(roleId) { | ||
@@ -52,0 +63,0 @@ const parts = roleId.split(CloneId.CLONE_ID_DELIMITER); |
export * from "./admin/index.js"; | ||
export * from "./app/index.js"; | ||
export { CloneId } from "./common.js"; |
export * from "./admin/index.js"; | ||
export * from "./app/index.js"; | ||
export { CloneId } from "./common.js"; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@holochain/client", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "A JavaScript client for the Holochain Conductor API", | ||
@@ -5,0 +5,0 @@ "author": "Holochain Foundation <info@holochain.org> (http://holochain.org)", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
67817
1302