Socket
Socket
Sign inDemoInstall

@holochain/client

Package Overview
Dependencies
120
Maintainers
12
Versions
83
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.0 to 0.7.0

3

lib/environments/launcher.js
import fetch from "cross-fetch";
// This is coupled with https://github.com/holochain/launcher/blob/develop/src-tauri/src/uis/caddy.rs#L13
// This is based on
// https://github.com/holochain/launcher/blob/213aae208c58f2496811d80859723b71f6750426/crates/holochain_web_app_manager/src/caddy/utils.rs#L49
export const LAUNCHER_ENV_URL = "/.launcher-env.json";

@@ -4,0 +5,0 @@ async function fetchLauncherEnvironment() {

@@ -18,3 +18,17 @@ // https://github.com/holochain/holochain/blob/develop/crates/types/src/dht_op.rs

export function getDhtOpAction(op) {
const opType = getDhtOpType(op);
const action = Object.values(op)[0][1];
if (opType === DhtOpType.RegisterAddLink) {
return {
type: "CreateLink",
...action,
};
}
if (opType === DhtOpType.RegisterUpdatedContent ||
opType === DhtOpType.RegisterUpdatedRecord) {
return {
type: "Update",
...action,
};
}
if (action.author)

@@ -21,0 +35,0 @@ return action;

export * from "./api/index.js";
export * from "./hdk/index.js";
export * from "./bundle.js";
export * from "./types.js";
export * from "./api/index.js";
export * from "./hdk/index.js";
export * from "./bundle.js";
export * from "./types.js";
//# sourceMappingURL=index.js.map
{
"name": "@holochain/client",
"version": "0.6.0",
"version": "0.7.0",
"description": "A JavaScript client for the Holochain Conductor API",

@@ -23,2 +23,4 @@ "author": "Holochain Foundation <info@holochain.org> (http://holochain.org)",

},
"main": "lib/index.js",
"module": "lib/index.js",
"type": "module",

@@ -25,0 +27,0 @@ "exports": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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