Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@harmony-js/network

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harmony-js/network - npm Package Compare versions

Comparing version 0.1.29 to 0.1.31

2

dist/providers/baseSocket.js

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

_this.url = url;
_this.emitter = new mitt_1.default(_this.handlers);
_this.emitter = mitt_1.default(_this.handlers);
return _this;

@@ -41,0 +41,0 @@ }

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

this.handlers = {};
this.emitter = new mitt_1.default(this.handlers);
this.emitter = mitt_1.default(this.handlers);
this.off = this.emitter.off.bind(this);

@@ -12,0 +12,0 @@ this.emit = this.emitter.emit.bind(this);

@@ -65,9 +65,9 @@ "use strict";

else {
var headers = options.headers || {};
var headers_1 = options.headers || {};
var urlObject = new URL(url);
if (!headers.authorization && urlObject.username && urlObject.password) {
if (!headers_1.authorization && urlObject.username && urlObject.password) {
var authToken = Buffer.from(urlObject.username + ":" + urlObject.password).toString('base64');
headers.authorization = "Basic " + authToken;
headers_1.authorization = "Basic " + authToken;
}
return new websocket_1.w3cwebsocket(url, options.protocol, undefined, headers, undefined, options.clientConfig);
return new websocket_1.w3cwebsocket(url, options.protocol, undefined, headers_1, undefined, options.clientConfig);
}

@@ -74,0 +74,0 @@ };

@@ -34,3 +34,4 @@ export declare const enum RPCMethod {

ProtocolVersion = "hmy_protocolVersion",
GetShardingStructure = "hmy_getShardingStructure"
GetShardingStructure = "hmy_getShardingStructure",
SendRawStakingTransaction = "hmy_sendRawStakingTransaction"
}

@@ -37,0 +38,0 @@ export declare const enum RPCErrorCode {

@@ -71,2 +71,4 @@ "use strict";

RPCMethod["GetShardingStructure"] = "hmy_getShardingStructure";
// 33. hmy_sendRawStakingTransaction
RPCMethod["SendRawStakingTransaction"] = "hmy_sendRawStakingTransaction";
})(RPCMethod = exports.RPCMethod || (exports.RPCMethod = {}));

@@ -73,0 +75,0 @@ var RPCErrorCode;

{
"name": "@harmony-js/network",
"version": "0.1.29",
"version": "0.1.31",
"description": "network suites for harmony",

@@ -23,6 +23,6 @@ "main": "dist/index.js",

"cross-fetch": "^3.0.2",
"mitt": "^1.1.3",
"mitt": "1.2.0",
"websocket": "^1.0.28"
},
"gitHead": "2e3bd054b8a87030574b20397cc73256b264feef"
"gitHead": "09a11f531083647905757788a54b6b9a618a29a6"
}

@@ -37,3 +37,3 @@ import { isWs } from '@harmony-js/utils';

this.url = url;
this.emitter = new mitt(this.handlers);
this.emitter = mitt(this.handlers);
}

@@ -40,0 +40,0 @@ resetHandlers() {

@@ -13,3 +13,3 @@ import mitt from 'mitt';

constructor() {
this.emitter = new mitt(this.handlers);
this.emitter = mitt(this.handlers);
this.off = this.emitter.off.bind(this);

@@ -16,0 +16,0 @@ this.emit = this.emitter.emit.bind(this);

@@ -71,2 +71,4 @@ export const enum RPCMethod {

GetShardingStructure = 'hmy_getShardingStructure',
// 33. hmy_sendRawStakingTransaction
SendRawStakingTransaction = 'hmy_sendRawStakingTransaction',
}

@@ -73,0 +75,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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

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