@dfinity/agent
Advanced tools
Comparing version 0.15.7 to 0.16.0
@@ -225,3 +225,3 @@ "use strict"; | ||
method: 'POST', | ||
headers: new Headers(Object.assign({ 'Content-Type': 'application/cbor' }, (this._credentials ? { Authorization: 'Basic ' + btoa(this._credentials) } : {}))), | ||
headers: Object.assign({ 'Content-Type': 'application/cbor' }, (this._credentials ? { Authorization: 'Basic ' + btoa(this._credentials) } : {})), | ||
}, | ||
@@ -287,3 +287,3 @@ endpoint: "call" /* Endpoint.Call */, | ||
method: 'POST', | ||
headers: new Headers(Object.assign({ 'Content-Type': 'application/cbor' }, (this._credentials ? { Authorization: 'Basic ' + btoa(this._credentials) } : {}))), | ||
headers: Object.assign({ 'Content-Type': 'application/cbor' }, (this._credentials ? { Authorization: 'Basic ' + btoa(this._credentials) } : {})), | ||
}, | ||
@@ -310,3 +310,3 @@ endpoint: "read" /* Endpoint.Query */, | ||
method: 'POST', | ||
headers: new Headers(Object.assign({ 'Content-Type': 'application/cbor' }, (this._credentials ? { Authorization: 'Basic ' + btoa(this._credentials) } : {}))), | ||
headers: Object.assign({ 'Content-Type': 'application/cbor' }, (this._credentials ? { Authorization: 'Basic ' + btoa(this._credentials) } : {})), | ||
}, | ||
@@ -313,0 +313,0 @@ endpoint: "read_state" /* Endpoint.ReadState */, |
@@ -57,3 +57,3 @@ "use strict"; | ||
// Nonce needs to be inserted into the header for all requests, to enable logs to be correlated with requests. | ||
const headers = request.request.headers ? new Headers(request.request.headers) : new Headers(); | ||
const headers = request.request.headers; | ||
// TODO: uncomment this when the http proxy supports it. | ||
@@ -60,0 +60,0 @@ // headers.set('X-IC-Request-ID', toHex(new Uint8Array(nonce))); |
@@ -194,3 +194,3 @@ import { Principal } from '@dfinity/principal'; | ||
method: 'POST', | ||
headers: new Headers(Object.assign({ 'Content-Type': 'application/cbor' }, (this._credentials ? { Authorization: 'Basic ' + btoa(this._credentials) } : {}))), | ||
headers: Object.assign({ 'Content-Type': 'application/cbor' }, (this._credentials ? { Authorization: 'Basic ' + btoa(this._credentials) } : {})), | ||
}, | ||
@@ -256,3 +256,3 @@ endpoint: "call" /* Endpoint.Call */, | ||
method: 'POST', | ||
headers: new Headers(Object.assign({ 'Content-Type': 'application/cbor' }, (this._credentials ? { Authorization: 'Basic ' + btoa(this._credentials) } : {}))), | ||
headers: Object.assign({ 'Content-Type': 'application/cbor' }, (this._credentials ? { Authorization: 'Basic ' + btoa(this._credentials) } : {})), | ||
}, | ||
@@ -279,3 +279,3 @@ endpoint: "read" /* Endpoint.Query */, | ||
method: 'POST', | ||
headers: new Headers(Object.assign({ 'Content-Type': 'application/cbor' }, (this._credentials ? { Authorization: 'Basic ' + btoa(this._credentials) } : {}))), | ||
headers: Object.assign({ 'Content-Type': 'application/cbor' }, (this._credentials ? { Authorization: 'Basic ' + btoa(this._credentials) } : {})), | ||
}, | ||
@@ -282,0 +282,0 @@ endpoint: "read_state" /* Endpoint.ReadState */, |
@@ -30,3 +30,3 @@ import { lebEncode } from '@dfinity/candid'; | ||
// Nonce needs to be inserted into the header for all requests, to enable logs to be correlated with requests. | ||
const headers = request.request.headers ? new Headers(request.request.headers) : new Headers(); | ||
const headers = request.request.headers; | ||
// TODO: uncomment this when the http proxy supports it. | ||
@@ -33,0 +33,0 @@ // headers.set('X-IC-Request-ID', toHex(new Uint8Array(nonce))); |
{ | ||
"name": "@dfinity/agent", | ||
"version": "0.15.7", | ||
"version": "0.16.0", | ||
"author": "DFINITY Stiftung <sdk@dfinity.org>", | ||
@@ -53,12 +53,10 @@ "license": "Apache-2.0", | ||
"peerDependencies": { | ||
"@dfinity/candid": "^0.15.7", | ||
"@dfinity/principal": "^0.15.7" | ||
"@dfinity/candid": "^0.16.0", | ||
"@dfinity/principal": "^0.16.0" | ||
}, | ||
"dependencies": { | ||
"base64-arraybuffer": "^0.2.0", | ||
"bignumber.js": "^9.0.0", | ||
"borc": "^2.1.1", | ||
"js-sha256": "0.9.0", | ||
"simple-cbor": "^0.4.1", | ||
"ts-node": "^10.8.2" | ||
"simple-cbor": "^0.4.1" | ||
}, | ||
@@ -71,4 +69,4 @@ "devDependencies": { | ||
"esbuild": "^0.15.16", | ||
"eslint-plugin-jsdoc": "^39.3.3", | ||
"eslint": "^8.19.0", | ||
"eslint-plugin-jsdoc": "^39.3.3", | ||
"isomorphic-fetch": "^3.0.0", | ||
@@ -79,2 +77,3 @@ "jest": "^28.1.2", | ||
"ts-jest": "^28.0.5", | ||
"ts-node": "^10.8.2", | ||
"tslint": "^5.20.0", | ||
@@ -81,0 +80,0 @@ "typedoc": "^0.22.11", |
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
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
6
1045861
17
+ Added@dfinity/candid@0.16.0(transitive)
+ Added@dfinity/principal@0.16.0(transitive)
- Removedbignumber.js@^9.0.0
- Removedts-node@^10.8.2
- Removed@cspotcode/source-map-support@0.8.1(transitive)
- Removed@dfinity/candid@0.15.7(transitive)
- Removed@dfinity/principal@0.15.7(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.9(transitive)
- Removed@tsconfig/node10@1.0.11(transitive)
- Removed@tsconfig/node12@1.0.11(transitive)
- Removed@tsconfig/node14@1.0.3(transitive)
- Removed@tsconfig/node16@1.0.4(transitive)
- Removed@types/node@22.6.1(transitive)
- Removedacorn@8.12.1(transitive)
- Removedacorn-walk@8.3.4(transitive)
- Removedarg@4.1.3(transitive)
- Removedcreate-require@1.1.1(transitive)
- Removeddiff@4.0.2(transitive)
- Removedmake-error@1.3.6(transitive)
- Removedts-node@10.9.2(transitive)
- Removedtypescript@5.6.2(transitive)
- Removedundici-types@6.19.8(transitive)
- Removedv8-compile-cache-lib@3.0.1(transitive)
- Removedyn@3.1.1(transitive)