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

dashsight

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dashsight - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

dashrequest.js

6

bin/ws-listen.js

@@ -10,3 +10,3 @@ #!/usr/bin/env node

let Ws = require("../ws/");
let DashSocket = require("../ws/");

@@ -27,3 +27,3 @@ let baseUrl = `https://insight.dash.org`;

// TODO Ws.waitForVout()
// TODO DashSocket.waitForVout()
}

@@ -49,3 +49,3 @@

// TODO pass eventnames
await Ws.listen(
await DashSocket.listen(
baseUrl,

@@ -52,0 +52,0 @@ function finder(evname, data) {

"use strict";
module.exports = require("./lib/insight.js");
module.exports = require("./dashsight.js");

@@ -5,0 +5,0 @@ /**

{
"name": "dashsight",
"version": "1.1.1",
"version": "1.2.0",
"description": "SDK for Dash's flavor of the Insight API",
"main": "index.js",
"browser": {
"./ws/index.js": "./ws/browser-ws.js",
"./lib/request.js": "./lib/browser-request.js"
"./ws/index.js": "./dashsocket.js",
"./lib/request.js": "./dashrequest.js"
},

@@ -21,3 +21,3 @@ "bin": {

"test": "echo \"Error: no test specified\" && exit 1",
"prepublish": "./bin/re-export-types"
"version": "npm version -m \"chore(release): bump to v%s\""
},

@@ -27,3 +27,5 @@ "files": [

"lib",
"types.js",
"dashrequest.js",
"dashsight.js",
"dashsocket.js",
"typings",

@@ -57,3 +59,6 @@ "ws"

"@root/request": "^1.9.1"
},
"devDependencies": {
"@types/tough-cookie": "^4.0.2"
}
}

@@ -13,2 +13,4 @@ # [dashsight.js](https://github.com/dashhive/dashsight.js)

## Node.js and WebPack
```js

@@ -31,2 +33,31 @@ "use strict";

## Browser
```html
<script src="https://unpkg.com/@root/request@1.9.2/urequest.js"></script>
<script src="https://unpkg.com/dashsight@1.2.0/dashrequest.js"></script>
<script src="https://unpkg.com/dashsight@1.2.0/dashsight.js"></script>
<script src="https://unpkg.com/dashsight@1.2.0/dashsocket.js"></script>
```
```js
(async function () {
let dashsight = window.DashSight.create({
baseUrl: "https://insight.dash.org",
});
// ...
await window.DashSocket.listen(
"https://insight.dash.org",
function finder(evname, data) {
console.log(evname, data);
},
{ debug: true },
);
})();
```
## CLI
You can also use a number of debug commands:

@@ -46,3 +77,3 @@

| `Dashsight.create({ baseUrl })` |
| `DashSight.create({ baseUrl })` |
| -------------------------------------- |

@@ -55,3 +86,3 @@ | `dashsight.getInstantBalance(addrStr)` |

## Dashsight.create({ baseUrl })
## DashSight.create({ baseUrl })

@@ -61,5 +92,5 @@ Creates an instance of the insight sdk bound to the given baseUrl.

```js
let Dashsight = = require("dashsight");
let DashSight = require("dashsight");
let dashsight Dashsight.create({
let dashsight = DashSight.create({
baseUrl: "https://insight.dash.org",

@@ -66,0 +97,0 @@ });

"use strict";
let Ws = module.exports;
Ws.DashSightWs = Ws;
Ws.DashSocket = Ws;
Ws.DashSightWs = Ws; // deprecated

@@ -6,0 +7,0 @@ let request = require("../lib/request.js");

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