New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ic0

Package Overview
Dependencies
Maintainers
0
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ic0 - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

2

lib/canister/agentCanister.js

@@ -34,3 +34,3 @@ "use strict";

const didJsAgent = agent_1.HttpAgent.createSync({
host: 'https://icp0.io',
host: 'https://icp-api.io',
fetch: cross_fetch_1.default,

@@ -37,0 +37,0 @@ }); // mainnet

@@ -10,3 +10,3 @@ "use strict";

const agentCanister_1 = require("./canister/agentCanister");
// Define an IC replica from the given hostname (e.g. `https://icp0.io`)
// Define an IC replica from the given hostname (e.g. `https://icp-api.io`)
const replica = (host, options = {}) => {

@@ -13,0 +13,0 @@ let agent;

{
"name": "ic0",
"version": "0.3.1",
"version": "0.3.2",
"description": "An easy-to-use JavaScript API for the Internet Computer.",

@@ -16,3 +16,3 @@ "author": "DFINITY Foundation",

"prepare": "husky install",
"test": "jest && node examples/ledger.js",
"test": "jest && node examples/ledger.js && cd examples/vite && npm i && npm run build",
"precommit": "lint-staged",

@@ -19,0 +19,0 @@ "prepublishOnly": "run-s build test"

@@ -28,3 +28,3 @@ import { Actor, ActorSubclass, HttpAgent, fetchCandid } from '@dfinity/agent';

const didJsAgent = HttpAgent.createSync({
host: 'https://icp0.io',
host: 'https://icp-api.io',
fetch,

@@ -31,0 +31,0 @@ }); // mainnet

@@ -8,3 +8,3 @@ import { HttpAgent } from '@dfinity/agent';

// Define an IC replica from the given hostname (e.g. `https://icp0.io`)
// Define an IC replica from the given hostname (e.g. `https://icp-api.io`)
export const replica = (

@@ -11,0 +11,0 @@ host?: string | HttpAgent | undefined,

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc