New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@injectivelabs/chain-consumer

Package Overview
Dependencies
Maintainers
8
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@injectivelabs/chain-consumer - npm Package Compare versions

Comparing version 0.0.37 to 0.0.38

4

CHANGELOG.md

@@ -6,2 +6,6 @@ # Change Log

## [0.0.38](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/chain-consumer@0.0.37...@injectivelabs/chain-consumer@0.0.38) (2021-04-14)
**Note:** Version bump only for package @injectivelabs/chain-consumer
## [0.0.37](https://github.com/InjectiveLabs/injective-ts/compare/@injectivelabs/chain-consumer@0.0.36...@injectivelabs/chain-consumer@0.0.37) (2021-04-08)

@@ -8,0 +12,0 @@

@@ -10,3 +10,4 @@ /// <reference types="node" />

}) => string;
getInjectiveAddress: (address: string) => string;
}
//# sourceMappingURL=AuthConsumer.d.ts.map

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

const bech32_1 = require("bech32");
const ethereumjs_util_1 = require("ethereumjs-util");
const BaseConsumer_1 = __importDefault(require("../BaseConsumer"));

@@ -23,2 +24,6 @@ class AuthConsumer extends BaseConsumer_1.default {

};
this.getInjectiveAddress = (address) => {
const addressBuffer = ethereumjs_util_1.Address.fromString(address.toString()).toBuffer();
return bech32_1.bech32.encode('inj', bech32_1.bech32.toWords(addressBuffer));
};
}

@@ -25,0 +30,0 @@ }

5

package.json
{
"name": "@injectivelabs/chain-consumer",
"description": "Interacting with our Chain API made easy. Can be reused throughout Injective's projects.",
"version": "0.0.37",
"version": "0.0.38",
"license": "MIT",

@@ -37,2 +37,3 @@ "main": "dist/index.js",

"bech32": "^2.0.0",
"ethereumjs-util": "^7.0.10",
"link-module-alias": "^1.2.0",

@@ -42,3 +43,3 @@ "shx": "^0.3.2",

},
"gitHead": "22c6807f6b2c855380923e8994aa73d85f9f92ea"
"gitHead": "4075837fac5af7af9eb96ecfe13951850db55037"
}

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