Comparing version 0.3.1 to 0.3.2
@@ -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
46256