@harmony-js/network
Advanced tools
Comparing version 0.1.27 to 0.1.28
@@ -21,3 +21,3 @@ "use strict"; | ||
return utils_1.isObject(this.result) | ||
? tslib_1.__assign({}, this.result, { responseType: 'result' }) : this.result; | ||
? tslib_1.__assign(tslib_1.__assign({}, this.result), { responseType: 'result' }) : this.result; | ||
}, | ||
@@ -30,3 +30,3 @@ enumerable: true, | ||
return utils_1.isObject(this.error) | ||
? tslib_1.__assign({}, this.error, { responseType: 'error' }) : this.error; | ||
? tslib_1.__assign(tslib_1.__assign({}, this.error), { responseType: 'error' }) : this.error; | ||
}, | ||
@@ -38,3 +38,3 @@ enumerable: true, | ||
get: function () { | ||
return tslib_1.__assign({}, this.raw, { responseType: 'raw' }); | ||
return tslib_1.__assign(tslib_1.__assign({}, this.raw), { responseType: 'raw' }); | ||
}, | ||
@@ -41,0 +41,0 @@ enumerable: true, |
@@ -16,3 +16,3 @@ "use strict"; | ||
body: JSON.stringify(request.payload), | ||
headers: tslib_1.__assign({}, headers, (request.options && request.options.headers | ||
headers: tslib_1.__assign(tslib_1.__assign({}, headers), (request.options && request.options.headers | ||
? request.options.headers | ||
@@ -26,3 +26,3 @@ : {})), | ||
.then(function (body) { | ||
return tslib_1.__assign({}, body, { req: request }); | ||
return tslib_1.__assign(tslib_1.__assign({}, body), { req: request }); | ||
}) | ||
@@ -29,0 +29,0 @@ .then(handler); |
@@ -83,3 +83,3 @@ "use strict"; | ||
HttpProvider.prototype.endpointHandler = function (obj, endpoint) { | ||
return tslib_1.__assign({}, obj, { url: endpoint !== null && endpoint !== undefined ? "" + this.url + endpoint : this.url }); | ||
return tslib_1.__assign(tslib_1.__assign({}, obj), { url: endpoint !== null && endpoint !== undefined ? "" + this.url + endpoint : this.url }); | ||
}; | ||
@@ -97,3 +97,3 @@ /** | ||
} | ||
return tslib_1.__assign({}, obj, { options: this.options }); | ||
return tslib_1.__assign(tslib_1.__assign({}, obj), { options: this.options }); | ||
}; | ||
@@ -100,0 +100,0 @@ /** |
"use strict"; | ||
var _this = this; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -18,3 +17,3 @@ var tslib_1 = require("tslib"); | ||
} | ||
exports.performRPC = function (request, handler, fetcher) { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
exports.performRPC = function (request, handler, fetcher) { return tslib_1.__awaiter(void 0, void 0, void 0, function () { | ||
var response, err_1; | ||
@@ -21,0 +20,0 @@ return tslib_1.__generator(this, function (_a) { |
{ | ||
"name": "@harmony-js/network", | ||
"version": "0.1.27", | ||
"version": "0.1.28", | ||
"description": "network suites for harmony", | ||
@@ -19,5 +19,5 @@ "main": "dist/index.js", | ||
"author": "neeboo@firestack.one", | ||
"license": "ISC", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@harmony-js/utils": "0.1.27", | ||
"@harmony-js/utils": "0.1.28", | ||
"cross-fetch": "^3.0.2", | ||
@@ -27,3 +27,3 @@ "mitt": "^1.1.3", | ||
}, | ||
"gitHead": "6e1abec93bbdb2ca5fd1acfc8d0093165688ef91" | ||
"gitHead": "1ccc7071aee39a4597caa1019c36104420499af9" | ||
} |
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
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
842635
10544
+ Added@harmony-js/utils@0.1.28(transitive)
- Removed@harmony-js/utils@0.1.27(transitive)
Updated@harmony-js/utils@0.1.28