@zilliqa-js/core
Advanced tools
Comparing version 0.8.0-alpha.0 to 0.8.1-alpha.0
@@ -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)]; |
@@ -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
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
367454
3242
+ Added@types/node@22.9.3(transitive)
+ Added@zilliqa-js/crypto@0.8.1-alpha.0(transitive)
+ Addedcipher-base@1.0.5(transitive)
+ Addedscrypt.js@0.3.0(transitive)
+ Addedscryptsy@2.1.0(transitive)
+ Addedundici-types@6.19.8(transitive)
- Removed@types/node@22.10.1(transitive)
- Removed@zilliqa-js/crypto@0.7.5(transitive)
- Removedcipher-base@1.0.6(transitive)
- Removedscrypt.js@0.2.1(transitive)
- Removedundici-types@6.20.0(transitive)