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

@harmony-js/core

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harmony-js/core - npm Package Compare versions

Comparing version 0.1.24 to 0.1.25

27

dist/index.cjs.js

@@ -810,5 +810,6 @@ /**

case 'hmy_getTransactionReceipt': return [3 /*break*/, 5];
case 'hmy_getBlockByNumber': return [3 /*break*/, 7];
case 'net_version': return [3 /*break*/, 7];
case 'hmy_getBlockByNumber': return [3 /*break*/, 8];
}
return [3 /*break*/, 9];
return [3 /*break*/, 10];
case 1:

@@ -867,3 +868,17 @@ {

return [2 /*return*/, this.resolveResult(result)];
case 7: return [4 /*yield*/, this.provider.send(newArgs, function (err, res) {
case 7:
{
callback(null, {
result: String(this.messenger.chainId),
id: id,
jsonrpc: '2.0',
});
return [2 /*return*/, {
result: String(this.messenger.chainId),
id: id,
jsonrpc: '2.0',
}];
}
_c.label = 8;
case 8: return [4 /*yield*/, this.provider.send(newArgs, function (err, res) {
try {

@@ -889,7 +904,7 @@ if (err) {

})];
case 8:
case 9:
result = _c.sent();
return [2 /*return*/, this.resolveResult(result)];
case 9: return [4 /*yield*/, this.provider.send(newArgs, function (err, res) { return _this.resolveCallback(err, res, callback); })];
case 10:
case 10: return [4 /*yield*/, this.provider.send(newArgs, function (err, res) { return _this.resolveCallback(err, res, callback); })];
case 11:
result = _c.sent();

@@ -896,0 +911,0 @@ return [2 /*return*/, this.resolveResult(result)];

@@ -7,3 +7,3 @@ /**

import * as utils from '@harmony-js/utils';
import { assertObject, defaultConfig, HarmonyCore, hexToNumber, Unit } from '@harmony-js/utils';
import { assertObject, defaultConfig, HarmonyCore, Unit, hexToNumber } from '@harmony-js/utils';
import * as crypto from '@harmony-js/crypto';

@@ -809,5 +809,6 @@ import { getAddress } from '@harmony-js/crypto';

case 'hmy_getTransactionReceipt': return [3 /*break*/, 5];
case 'hmy_getBlockByNumber': return [3 /*break*/, 7];
case 'net_version': return [3 /*break*/, 7];
case 'hmy_getBlockByNumber': return [3 /*break*/, 8];
}
return [3 /*break*/, 9];
return [3 /*break*/, 10];
case 1:

@@ -866,3 +867,17 @@ {

return [2 /*return*/, this.resolveResult(result)];
case 7: return [4 /*yield*/, this.provider.send(newArgs, function (err, res) {
case 7:
{
callback(null, {
result: String(this.messenger.chainId),
id: id,
jsonrpc: '2.0',
});
return [2 /*return*/, {
result: String(this.messenger.chainId),
id: id,
jsonrpc: '2.0',
}];
}
_c.label = 8;
case 8: return [4 /*yield*/, this.provider.send(newArgs, function (err, res) {
try {

@@ -888,7 +903,7 @@ if (err) {

})];
case 8:
case 9:
result = _c.sent();
return [2 /*return*/, this.resolveResult(result)];
case 9: return [4 /*yield*/, this.provider.send(newArgs, function (err, res) { return _this.resolveCallback(err, res, callback); })];
case 10:
case 10: return [4 /*yield*/, this.provider.send(newArgs, function (err, res) { return _this.resolveCallback(err, res, callback); })];
case 11:
result = _c.sent();

@@ -895,0 +910,0 @@ return [2 /*return*/, this.resolveResult(result)];

@@ -805,5 +805,6 @@ /**

case 'hmy_getTransactionReceipt': return [3 /*break*/, 5];
case 'hmy_getBlockByNumber': return [3 /*break*/, 7];
case 'net_version': return [3 /*break*/, 7];
case 'hmy_getBlockByNumber': return [3 /*break*/, 8];
}
return [3 /*break*/, 9];
return [3 /*break*/, 10];
case 1:

@@ -862,3 +863,17 @@ {

return [2 /*return*/, this.resolveResult(result)];
case 7: return [4 /*yield*/, this.provider.send(newArgs, function (err, res) {
case 7:
{
callback(null, {
result: String(this.messenger.chainId),
id: id,
jsonrpc: '2.0',
});
return [2 /*return*/, {
result: String(this.messenger.chainId),
id: id,
jsonrpc: '2.0',
}];
}
_c.label = 8;
case 8: return [4 /*yield*/, this.provider.send(newArgs, function (err, res) {
try {

@@ -884,7 +899,7 @@ if (err) {

})];
case 8:
case 9:
result = _c.sent();
return [2 /*return*/, this.resolveResult(result)];
case 9: return [4 /*yield*/, this.provider.send(newArgs, function (err, res) { return _this.resolveCallback(err, res, callback); })];
case 10:
case 10: return [4 /*yield*/, this.provider.send(newArgs, function (err, res) { return _this.resolveCallback(err, res, callback); })];
case 11:
result = _c.sent();

@@ -891,0 +906,0 @@ return [2 /*return*/, this.resolveResult(result)];

@@ -62,5 +62,6 @@ "use strict";

case 'hmy_getTransactionReceipt': return [3 /*break*/, 5];
case 'hmy_getBlockByNumber': return [3 /*break*/, 7];
case 'net_version': return [3 /*break*/, 7];
case 'hmy_getBlockByNumber': return [3 /*break*/, 8];
}
return [3 /*break*/, 9];
return [3 /*break*/, 10];
case 1:

@@ -119,3 +120,17 @@ {

return [2 /*return*/, this.resolveResult(result)];
case 7: return [4 /*yield*/, this.provider.send(newArgs, function (err, res) {
case 7:
{
callback(null, {
result: String(this.messenger.chainId),
id: id,
jsonrpc: '2.0',
});
return [2 /*return*/, {
result: String(this.messenger.chainId),
id: id,
jsonrpc: '2.0',
}];
}
_c.label = 8;
case 8: return [4 /*yield*/, this.provider.send(newArgs, function (err, res) {
try {

@@ -141,7 +156,7 @@ if (err) {

})];
case 8:
case 9:
result = _c.sent();
return [2 /*return*/, this.resolveResult(result)];
case 9: return [4 /*yield*/, this.provider.send(newArgs, function (err, res) { return _this.resolveCallback(err, res, callback); })];
case 10:
case 10: return [4 /*yield*/, this.provider.send(newArgs, function (err, res) { return _this.resolveCallback(err, res, callback); })];
case 11:
result = _c.sent();

@@ -148,0 +163,0 @@ return [2 /*return*/, this.resolveResult(result)];

{
"name": "@harmony-js/core",
"version": "0.1.24",
"version": "0.1.25",
"description": "harmony core package",

@@ -21,3 +21,3 @@ "main": "dist/index.js",

"dependencies": {
"@harmony-js/account": "0.1.24",
"@harmony-js/account": "0.1.25",
"@harmony-js/contract": "0.1.23",

@@ -29,3 +29,3 @@ "@harmony-js/crypto": "0.1.23",

},
"gitHead": "504f5416d2c57baa22053f67ff3333c52f2c0ced"
"gitHead": "6e7453f8a7aced6f4632a2c6ff21caa6835f9bd4"
}

@@ -66,2 +66,3 @@ import {

const { newArgs, id, params, newMethod, callback } = this.resolveArgs(...args);
switch (newMethod) {

@@ -124,2 +125,14 @@ case 'hmy_accounts': {

}
case 'net_version': {
callback(null, {
result: String(this.messenger.chainId),
id,
jsonrpc: '2.0',
});
return {
result: String(this.messenger.chainId),
id,
jsonrpc: '2.0',
};
}
case 'hmy_getBlockByNumber': {

@@ -154,2 +167,3 @@ const result = await this.provider.send(newArgs, (err: any, res: any) => {

// hmy_getBlockByNumber
const result = await this.provider.send(

@@ -156,0 +170,0 @@ newArgs,

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