scrypt-ts
Advanced tools
Comparing version 0.1.6-test.8 to 0.1.6-test.9
@@ -57,3 +57,3 @@ "use strict"; | ||
var abstract_provider_1 = require("../abstract-provider"); | ||
var axios = require('axios').default; | ||
var superagent = require('superagent'); | ||
var WhatsonchainProvider = /** @class */ (function (_super) { | ||
@@ -101,3 +101,9 @@ __extends(WhatsonchainProvider, _super); | ||
_a.trys.push([1, 3, , 4]); | ||
return [4 /*yield*/, axios.post("".concat(this.apiPrefix, "/tx/raw"), { txhex: rawTxHex }, { timeout: timeout })]; | ||
return [4 /*yield*/, superagent.post("".concat(this.apiPrefix, "/tx/raw")) | ||
.timeout({ | ||
response: timeout, | ||
deadline: 60000, // but allow 1 minute for the file to finish loading. | ||
}) | ||
.set('Content-Type', 'application/json') | ||
.send({ txhex: rawTxHex })]; | ||
case 2: | ||
@@ -125,3 +131,3 @@ res = _a.sent(); | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, axios.get("".concat(this.apiPrefix, "/address/").concat(address, "/unspent"))]; | ||
case 0: return [4 /*yield*/, superagent.get("".concat(this.apiPrefix, "/address/").concat(address, "/unspent"))]; | ||
case 1: | ||
@@ -128,0 +134,0 @@ data = (_a.sent()).data; |
{ | ||
"name": "scrypt-ts", | ||
"version": "0.1.6-test.8", | ||
"version": "0.1.6-test.9", | ||
"description": "A toolset for building sCrypt smart contract applications on Bitcoin SV network written in typescript.", | ||
@@ -52,3 +52,2 @@ "main": "dist/index.js", | ||
"@phenomnomnominal/tsquery": "^5.0.0", | ||
"axios": "^1.3.2", | ||
"clone": "^2.1.2", | ||
@@ -59,2 +58,3 @@ "fast-diff": "^1.2.0", | ||
"sourcemap-codec": "^1.4.8", | ||
"superagent": "^8.0.9", | ||
"ts-patch": "^2.0.2", | ||
@@ -61,0 +61,0 @@ "typescript": "=4.8.4" |
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
349372
7188
+ Addedsuperagent@^8.0.9
+ Addedasap@2.0.6(transitive)
+ Addedcomponent-emitter@1.3.1(transitive)
+ Addedcookiejar@2.1.4(transitive)
+ Addeddezalgo@1.0.4(transitive)
+ Addedfast-safe-stringify@2.1.1(transitive)
+ Addedformidable@2.1.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhexoid@1.0.0(transitive)
+ Addedmethods@1.1.2(transitive)
+ Addedmime@2.6.0(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedqs@6.13.1(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedside-channel@1.0.6(transitive)
+ Addedsuperagent@8.1.2(transitive)
- Removedaxios@^1.3.2
- Removedaxios@1.7.8(transitive)
- Removedfollow-redirects@1.15.9(transitive)
- Removedhas-proto@1.1.0(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedproxy-from-env@1.1.0(transitive)