Socket
Socket
Sign inDemoInstall

@dfinity/agent

Package Overview
Dependencies
Maintainers
11
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dfinity/agent - npm Package Compare versions

Comparing version 0.15.7 to 0.16.0

6

lib/cjs/agent/http/index.js

@@ -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

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