Comparing version 19.0.1 to 20.0.0
{ | ||
"name": "dashrpc", | ||
"version": "19.0.1", | ||
"version": "20.0.0", | ||
"description": "Lightweight JavaScript SDK Dash RPC, made Browser, Node.js, & Bundler compatible", | ||
"main": "promise.js", | ||
"main": "dashrpc.js", | ||
"files": [ | ||
"promise.js", | ||
"lib/index.js" | ||
"dashrpc.js" | ||
], | ||
@@ -13,6 +12,11 @@ "scripts": { | ||
"fmt": "npm run prettier", | ||
"test": "mocha test -R spec", | ||
"coverage": "nyc npm run test", | ||
"lint": "npm run jshint && npm run tsc", | ||
"test": "node ./tests/", | ||
"--------": "------------------------------------------------", | ||
"prettier": "npx -p prettier@3.x -- prettier -w '**/*.{js,md}'" | ||
"prettier": "npx -p prettier@3.x -- prettier -w '**/*.{js,md}'", | ||
"jshint": "npx -p jshint@2.x -- jshint -c ./.jshintrc ./*.js", | ||
"tsc": "npx -p typescript@4.x -- tsc -p ./jsconfig.json", | ||
"reexport-types": "npx -p jswt@1.x -- reexport", | ||
"---------": "-----------------------------------------------", | ||
"prepublish": "npm run reexport-types && npm run fmt" | ||
}, | ||
@@ -28,15 +32,8 @@ "homepage": "https://github.com/dashhive/DashRPC.js", | ||
], | ||
"devDependencies": { | ||
"async": "^3.2.4", | ||
"chai": "^4.2.0", | ||
"eslint": "^7.15.0", | ||
"eslint-config-airbnb-base": "^14.2.1", | ||
"eslint-plugin-import": "^2.22.1", | ||
"mocha": "^10.4.0", | ||
"nyc": "15.1.0", | ||
"sinon": "^9.2.2" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/dashhive/DashRPC.js/issues" | ||
}, | ||
"devDependencies": { | ||
"dotenv": "^16.4.5" | ||
}, | ||
"author": { | ||
@@ -43,0 +40,0 @@ "name": "AJ ONeal", |
@@ -17,7 +17,7 @@ # [DashRPC.js](https://github.com/dashhive/DashRPC.js) | ||
You can examine `RpcClient.callspec` to see the list of supported RPCs: | ||
You can examine `DashRpc.callspec` to see the list of supported RPCs: | ||
```js | ||
console.info('Supported RPCs:'); | ||
console.info(RpcClient.callspec); | ||
console.info(DashRpc.callspec); | ||
``` | ||
@@ -27,3 +27,3 @@ | ||
### RpcClient | ||
### DashRpc | ||
@@ -56,4 +56,4 @@ Config parameters : | ||
```js | ||
var RpcClient = require('dashrpc'); | ||
var rpc = new RpcClient(config); | ||
var DashRpc = require('dashrpc'); | ||
var rpc = DashRpc.create(config); | ||
@@ -86,4 +86,4 @@ async function main() { | ||
``` | ||
const RpcClient = require('dashrpc'); | ||
var client = new RPCclient({ | ||
const DashRpc = require('dashrpc'); | ||
var client = DashRpc.create({ | ||
protocol:'http', | ||
@@ -90,0 +90,0 @@ user: 'dash', |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
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
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
52866
1
1479
4