@dfinity/agent
Advanced tools
Comparing version 0.15.5 to 0.15.6
@@ -327,3 +327,4 @@ "use strict"; | ||
const body = cbor.encode(transformedRequest.body); | ||
const response = await this._fetch('' + new URL(`/api/v2/canister/${canister}/read_state`, this._host), Object.assign(Object.assign(Object.assign({}, this._fetchOptions), transformedRequest.request), { body })); | ||
// TODO - https://dfinity.atlassian.net/browse/SDK-1092 | ||
const response = await this._requestAndRetry(() => this._fetch('' + new URL(`/api/v2/canister/${canister}/read_state`, this._host), Object.assign(Object.assign(Object.assign({}, this._fetchOptions), transformedRequest.request), { body }))); | ||
if (!response.ok) { | ||
@@ -330,0 +331,0 @@ throw new Error(`Server returned an error:\n` + |
@@ -296,3 +296,4 @@ import { Principal } from '@dfinity/principal'; | ||
const body = cbor.encode(transformedRequest.body); | ||
const response = await this._fetch('' + new URL(`/api/v2/canister/${canister}/read_state`, this._host), Object.assign(Object.assign(Object.assign({}, this._fetchOptions), transformedRequest.request), { body })); | ||
// TODO - https://dfinity.atlassian.net/browse/SDK-1092 | ||
const response = await this._requestAndRetry(() => this._fetch('' + new URL(`/api/v2/canister/${canister}/read_state`, this._host), Object.assign(Object.assign(Object.assign({}, this._fetchOptions), transformedRequest.request), { body }))); | ||
if (!response.ok) { | ||
@@ -299,0 +300,0 @@ throw new Error(`Server returned an error:\n` + |
{ | ||
"name": "@dfinity/agent", | ||
"version": "0.15.5", | ||
"version": "0.15.6", | ||
"author": "DFINITY Stiftung <sdk@dfinity.org>", | ||
@@ -53,4 +53,4 @@ "license": "Apache-2.0", | ||
"peerDependencies": { | ||
"@dfinity/candid": "^0.15.5", | ||
"@dfinity/principal": "^0.15.5" | ||
"@dfinity/candid": "^0.15.6", | ||
"@dfinity/principal": "^0.15.6" | ||
}, | ||
@@ -57,0 +57,0 @@ "dependencies": { |
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
1046543
7688