@cosmjs/stargate
Advanced tools
Comparing version 0.32.2 to 0.32.3
@@ -11,3 +11,3 @@ import { Attribute, Event } from "./events"; | ||
export declare function parseLogs(input: unknown): readonly Log[]; | ||
export declare function parseRawLog(input?: string): readonly Log[]; | ||
export declare function parseRawLog(input: string | undefined): readonly Log[]; | ||
/** | ||
@@ -14,0 +14,0 @@ * Searches in logs for the first event of the given event type and in that event |
@@ -59,3 +59,6 @@ "use strict"; | ||
exports.parseLogs = parseLogs; | ||
function parseRawLog(input = "[]") { | ||
function parseRawLog(input) { | ||
// Cosmos SDK >= 0.50 gives us an empty string here. This should be handled like undefined. | ||
if (!input) | ||
return []; | ||
const logsToParse = JSON.parse(input).map(({ events }, i) => ({ | ||
@@ -62,0 +65,0 @@ msg_index: i, |
{ | ||
"name": "@cosmjs/stargate", | ||
"version": "0.32.2", | ||
"version": "0.32.3", | ||
"description": "Utilities for Cosmos SDK 0.40", | ||
@@ -42,9 +42,9 @@ "contributors": [ | ||
"@confio/ics23": "^0.6.8", | ||
"@cosmjs/amino": "^0.32.2", | ||
"@cosmjs/encoding": "^0.32.2", | ||
"@cosmjs/math": "^0.32.2", | ||
"@cosmjs/proto-signing": "^0.32.2", | ||
"@cosmjs/stream": "^0.32.2", | ||
"@cosmjs/tendermint-rpc": "^0.32.2", | ||
"@cosmjs/utils": "^0.32.2", | ||
"@cosmjs/amino": "^0.32.3", | ||
"@cosmjs/encoding": "^0.32.3", | ||
"@cosmjs/math": "^0.32.3", | ||
"@cosmjs/proto-signing": "^0.32.3", | ||
"@cosmjs/stream": "^0.32.3", | ||
"@cosmjs/tendermint-rpc": "^0.32.3", | ||
"@cosmjs/utils": "^0.32.3", | ||
"cosmjs-types": "^0.9.0", | ||
@@ -54,3 +54,3 @@ "xstream": "^11.14.0" | ||
"devDependencies": { | ||
"@cosmjs/crypto": "^0.32.2", | ||
"@cosmjs/crypto": "^0.32.3", | ||
"@istanbuljs/nyc-config-typescript": "^1.0.1", | ||
@@ -57,0 +57,0 @@ "@types/eslint-plugin-prettier": "^3", |
Sorry, the diff of this file is not supported yet
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
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
346214
4371
Updated@cosmjs/amino@^0.32.3
Updated@cosmjs/encoding@^0.32.3
Updated@cosmjs/math@^0.32.3
Updated@cosmjs/stream@^0.32.3
Updated@cosmjs/utils@^0.32.3