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

@zilliqa-js/core

Package Overview
Dependencies
Maintainers
4
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zilliqa-js/core - npm Package Compare versions

Comparing version 0.8.0-alpha.0 to 0.8.1-alpha.0

20

dist/index.esm.js

@@ -203,16 +203,2 @@ import fetch from 'cross-fetch';

// This file is part of Zilliqa-Javascript-Library.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
var _this = undefined;
/**

@@ -288,3 +274,3 @@ * blockchain-side.

var DEFAULT_HEADERS = { 'Content-Type': 'application/json' };
var performRPC = function (request, handler) { return __awaiter(_this, void 0, void 0, function () {
var performRPC = function (request, handler) { return __awaiter(void 0, void 0, void 0, function () {
var response, err_1;

@@ -302,3 +288,3 @@ return __generator(this, function (_a) {

body: JSON.stringify(request.payload),
headers: __assign({}, DEFAULT_HEADERS, ((request.options && request.options.headers) || {})),
headers: __assign(__assign({}, DEFAULT_HEADERS), ((request.options && request.options.headers) || {})),
})];

@@ -310,3 +296,3 @@ case 1:

.then(function (body) {
return __assign({}, body, { req: request });
return __assign(__assign({}, body), { req: request });
})

@@ -313,0 +299,0 @@ .then(handler)];

@@ -208,16 +208,2 @@ (function (global, factory) {

// This file is part of Zilliqa-Javascript-Library.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
var _this = undefined;
(function (RPCMethod) {

@@ -288,3 +274,3 @@ // Network-related methods

var DEFAULT_HEADERS = { 'Content-Type': 'application/json' };
var performRPC = function (request, handler) { return __awaiter(_this, void 0, void 0, function () {
var performRPC = function (request, handler) { return __awaiter(void 0, void 0, void 0, function () {
var response, err_1;

@@ -302,3 +288,3 @@ return __generator(this, function (_a) {

body: JSON.stringify(request.payload),
headers: __assign({}, DEFAULT_HEADERS, ((request.options && request.options.headers) || {})),
headers: __assign(__assign({}, DEFAULT_HEADERS), ((request.options && request.options.headers) || {})),
})];

@@ -310,3 +296,3 @@ case 1:

.then(function (body) {
return __assign({}, body, { req: request });
return __assign(__assign({}, body), { req: request });
})

@@ -313,0 +299,0 @@ .then(handler)];

7

dist/net.js

@@ -16,3 +16,2 @@ "use strict";

// along with this program. If not, see <https://www.gnu.org/licenses/>.
var _this = this;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -91,3 +90,3 @@ var tslib_1 = require("tslib");

var DEFAULT_HEADERS = { 'Content-Type': 'application/json' };
exports.performRPC = function (request, handler) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
exports.performRPC = function (request, handler) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
var response, err_1;

@@ -105,3 +104,3 @@ return tslib_1.__generator(this, function (_a) {

body: JSON.stringify(request.payload),
headers: tslib_1.__assign({}, DEFAULT_HEADERS, ((request.options && request.options.headers) || {})),
headers: tslib_1.__assign(tslib_1.__assign({}, DEFAULT_HEADERS), ((request.options && request.options.headers) || {})),
})];

@@ -113,3 +112,3 @@ case 1:

.then(function (body) {
return tslib_1.__assign({}, body, { req: request });
return tslib_1.__assign(tslib_1.__assign({}, body), { req: request });
})

@@ -116,0 +115,0 @@ .then(handler)];

@@ -13,3 +13,3 @@ import { RPCMethod } from '../net';

response: {
use: <I, O, E>(fn: import("../util").Transformer<import("../util").WithRequest<import("../net").RPCResponse<I, E>, any>, import("../util").WithRequest<import("../net").RPCResponse<O, E>, any>>, match?: Matcher) => void;
use: <I_1, O_1, E>(fn: import("../util").Transformer<import("../util").WithRequest<import("../net").RPCResponse<I_1, E>, any>, import("../util").WithRequest<import("../net").RPCResponse<O_1, E>, any>>, match?: Matcher) => void;
};

@@ -16,0 +16,0 @@ };

{
"name": "@zilliqa-js/core",
"version": "0.8.0-alpha.0",
"version": "0.8.1-alpha.0",
"description": "Core abstractions that power the zilliqa JS client.",

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

"dependencies": {
"@zilliqa-js/crypto": "0.7.5",
"@zilliqa-js/crypto": "0.8.1-alpha.0",
"@zilliqa-js/util": "0.7.1",

@@ -28,3 +28,3 @@ "cross-fetch": "^2.2.2",

},
"gitHead": "48a2d4887f61452ebf6cd266411380ffe24e7b0f"
"gitHead": "305e7f49bdb92a27c93190b153ee261bce93591f"
}

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