Socket
Socket
Sign inDemoInstall

@keplr-wallet/background

Package Overview
Dependencies
Maintainers
1
Versions
599
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@keplr-wallet/background - npm Package Compare versions

Comparing version 0.8.15-rc.0 to 0.8.15

build/permission/index.js.map

12

build/updater/service.js

@@ -78,6 +78,6 @@ "use strict";

});
// Get the latest block.
const result = yield instance.get("/block");
// Get the status to get the chain id.
const result = yield instance.get("/status");
const currentVersion = cosmos_1.ChainIdHelper.parse(chainInfo.chainId);
const fetchedChainId = result.data.result.block.header.chain_id;
const fetchedChainId = result.data.result.node_info.network;
const fetchedVersion = cosmos_1.ChainIdHelper.parse(fetchedChainId);

@@ -173,5 +173,5 @@ if (currentVersion.identifier === fetchedVersion.identifier &&

});
// Get the latest block.
const result = yield instance.get("/block");
const resultChainId = result.data.result.block.header.chain_id;
// Get the status to get the chain id.
const result = yield instance.get("/status");
const resultChainId = result.data.result.node_info.network;
const version = cosmos_1.ChainIdHelper.parse(chainId);

@@ -178,0 +178,0 @@ const fetchedVersion = cosmos_1.ChainIdHelper.parse(resultChainId);

{
"name": "@keplr-wallet/background",
"version": "0.8.15-rc.0",
"version": "0.8.15",
"main": "build/index.js",

@@ -29,4 +29,4 @@ "author": "chainapsis",

"@keplr-wallet/common": "^0.8.8",
"@keplr-wallet/cosmos": "^0.8.15-rc.0",
"@keplr-wallet/crypto": "^0.8.15-rc.0",
"@keplr-wallet/cosmos": "^0.8.15",
"@keplr-wallet/crypto": "^0.8.15",
"@keplr-wallet/popup": "^0.8.8",

@@ -53,3 +53,3 @@ "@keplr-wallet/router": "^0.8.8",

},
"gitHead": "429902cfeecf0610743934416f77a519d6346b91"
"gitHead": "e48b88c43f04330e7a1b2df3cf3fd7ad039afacf"
}

@@ -70,15 +70,13 @@ import { inject, singleton, delay } from "tsyringe";

// Get the latest block.
// Get the status to get the chain id.
const result = await instance.get<{
result: {
block: {
header: {
chain_id: string;
};
node_info: {
network: "osmosis-1";
};
};
}>("/block");
}>("/status");
const currentVersion = ChainIdHelper.parse(chainInfo.chainId);
const fetchedChainId = result.data.result.block.header.chain_id;
const fetchedChainId = result.data.result.node_info.network;
const fetchedVersion = ChainIdHelper.parse(fetchedChainId);

@@ -211,14 +209,12 @@

// Get the latest block.
// Get the status to get the chain id.
const result = await instance.get<{
result: {
block: {
header: {
chain_id: string;
};
node_info: {
network: "osmosis-1";
};
};
}>("/block");
}>("/status");
const resultChainId = result.data.result.block.header.chain_id;
const resultChainId = result.data.result.node_info.network;

@@ -225,0 +221,0 @@ const version = ChainIdHelper.parse(chainId);

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