Socket
Socket
Sign inDemoInstall

@keplr-wallet/cosmos

Package Overview
Dependencies
Maintainers
1
Versions
563
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@keplr-wallet/cosmos - npm Package Compare versions

Comparing version 0.9.0-alpha.8 to 0.9.0-alpha.9

17

build/tx-tracer/index.js

@@ -33,3 +33,3 @@ "use strict";

this.onMessage = (e) => {
var _a, _b, _c, _d, _e;
var _a, _b, _c, _d, _e, _f;
for (const listener of (_a = this.listeners.message) !== null && _a !== void 0 ? _a : []) {

@@ -50,4 +50,11 @@ listener(e);

else {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
this.pendingQueries.get(obj.id).resolver(obj.result);
// XXX: I'm not sure why this happens, but somtimes the form of tx id delivered under the "tx_result" field.
if ((_b = obj.result) === null || _b === void 0 ? void 0 : _b.tx_result) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
this.pendingQueries.get(obj.id).resolver(obj.result.tx_result);
}
else {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
this.pendingQueries.get(obj.id).resolver(obj.result);
}
}

@@ -57,3 +64,3 @@ this.pendingQueries.delete(obj.id);

}
if (((_c = (_b = obj === null || obj === void 0 ? void 0 : obj.result) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.type) === "tendermint/event/NewBlock") {
if (((_d = (_c = obj === null || obj === void 0 ? void 0 : obj.result) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.type) === "tendermint/event/NewBlock") {
for (const handler of this.newBlockSubscribes) {

@@ -63,3 +70,3 @@ handler.handler(obj.result.data.value);

}
if (((_e = (_d = obj === null || obj === void 0 ? void 0 : obj.result) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.type) === "tendermint/event/Tx") {
if (((_f = (_e = obj === null || obj === void 0 ? void 0 : obj.result) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.type) === "tendermint/event/Tx") {
if (obj === null || obj === void 0 ? void 0 : obj.id) {

@@ -66,0 +73,0 @@ if (this.txSubscribes.has(obj.id)) {

{
"name": "@keplr-wallet/cosmos",
"version": "0.9.0-alpha.8",
"version": "0.9.0-alpha.9",
"main": "build/index.js",

@@ -22,3 +22,3 @@ "author": "chainapsis",

"@keplr-wallet/types": "^0.9.0-alpha.8",
"@keplr-wallet/unit": "^0.9.0-alpha.8",
"@keplr-wallet/unit": "^0.9.0-alpha.9",
"axios": "^0.21.0",

@@ -30,3 +30,3 @@ "bech32": "^1.1.4",

},
"gitHead": "78c9c344ad3022e01eaf3f1aeee20fc682152d2f"
"gitHead": "9906de89f22150be18763a393e9ceca3b1ce9b5a"
}

@@ -137,4 +137,10 @@ import { TxEventMap, WsReadyState } from "./types";

} else {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
this.pendingQueries.get(obj.id)!.resolver(obj.result);
// XXX: I'm not sure why this happens, but somtimes the form of tx id delivered under the "tx_result" field.
if (obj.result?.tx_result) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
this.pendingQueries.get(obj.id)!.resolver(obj.result.tx_result);
} else {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
this.pendingQueries.get(obj.id)!.resolver(obj.result);
}
}

@@ -141,0 +147,0 @@

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