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

scrypt-ts

Package Overview
Dependencies
Maintainers
2
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrypt-ts - npm Package Compare versions

Comparing version 0.1.6-test.8 to 0.1.6-test.9

12

dist/bsv/providers/whatsonchain-provider.js

@@ -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"

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