Socket
Socket
Sign inDemoInstall

@starport/client-js

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@starport/client-js - npm Package Compare versions

Comparing version 0.1.38 to 0.1.42-beta.130

0

babel.config.js

@@ -0,0 +0,0 @@ module.exports={

36

lib/SPClient.js

@@ -187,2 +187,3 @@ "use strict";

var _connectivityTest = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
var status;
return regeneratorRuntime.wrap(function _callee3$(_context3) {

@@ -193,3 +194,3 @@ while (1) {

if (!this.apiAddr) {
_context3.next = 10;
_context3.next = 13;
break;

@@ -203,8 +204,11 @@ }

case 4:
status = _context3.sent;
this.emit('chain-id', status.data.node_info.network);
this.emit('chain-name', status.data.application_version.name);
this.emit('api-status', true);
_context3.next = 10;
_context3.next = 13;
break;
case 7:
_context3.prev = 7;
case 10:
_context3.prev = 10;
_context3.t0 = _context3["catch"](1);

@@ -219,20 +223,20 @@

case 10:
case 13:
if (!this.rpcAddr) {
_context3.next = 20;
_context3.next = 23;
break;
}
_context3.prev = 11;
_context3.next = 14;
_context3.prev = 14;
_context3.next = 17;
return _axios["default"].get(this.rpcAddr);
case 14:
case 17:
this.emit('rpc-status', true);
_context3.next = 20;
_context3.next = 23;
break;
case 17:
_context3.prev = 17;
_context3.t1 = _context3["catch"](11);
case 20:
_context3.prev = 20;
_context3.t1 = _context3["catch"](14);

@@ -243,6 +247,6 @@ if (!_context3.t1.response) {

} else {
this.emit('api-status', true);
this.emit('rpc-status', true);
}
case 20:
case 23:
case "end":

@@ -252,3 +256,3 @@ return _context3.stop();

}
}, _callee3, this, [[1, 7], [11, 17]]);
}, _callee3, this, [[1, 10], [14, 20]]);
}));

@@ -255,0 +259,0 @@

{
"name": "@starport/client-js",
"version": "0.1.38",
"version": "0.1.42-beta.130+6c17090",
"description": "A generic JS client for the Websocket, high-level (Cosmos) and low-level (Tendermint) APIs",

@@ -30,14 +30,13 @@ "author": "Tendermint, Inc <hello@tendermint.com>",

"@babel/preset-typescript": "^7.13.0",
"@cosmjs/proto-signing": "^0.24.0",
"@types/axios": "^0.14.0",
"@cosmjs/proto-signing": "^0.24.1",
"@types/node": "^12.20.5",
"@types/reconnectingwebsocket": "^1.0.6",
"@typescript-eslint/eslint-plugin": "^4.17.0",
"@typescript-eslint/parser": "^4.17.0",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"babel-loader": "^8.2.2",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-prettier": "^3.3.1",
"prettier": "^2.2.1",
"typescript": "^4.2.3"
"typescript": "~4.1.5"
},

@@ -50,3 +49,4 @@ "dependencies": {

"reconnecting-websocket": "^4.4.0"
}
},
"gitHead": "6c17090071f1190cb71e8180d8c1d1920ccd196d"
}

@@ -0,0 +0,0 @@ # `@starport/client-js`

@@ -0,0 +0,0 @@ export default class SpVuexError extends Error {

@@ -77,3 +77,5 @@ import { EventEmitter } from 'events';

try {
await axios.get(this.apiAddr + '/node_info');
let status= await axios.get(this.apiAddr + '/node_info');
this.emit('chain-id', status.data.node_info.network)
this.emit('chain-name', status.data.application_version.name)
this.emit('api-status', true);

@@ -102,3 +104,3 @@ } catch (error) {

} else {
this.emit('api-status', true);
this.emit('rpc-status', true);
}

@@ -105,0 +107,0 @@ }

@@ -0,0 +0,0 @@ {

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

Sorry, the diff of this file is not supported yet

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