Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

slopes

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slopes - npm Package Compare versions

Comparing version 1.3.9 to 1.3.10

2

package.json
{
"name": "slopes",
"version": "1.3.9",
"version": "1.3.10",
"description": "AVA Platform JS Library",

@@ -5,0 +5,0 @@ "main": "typings/src/index.js",

@@ -66,3 +66,3 @@ /**

let chainid = avmChainID;
if(typeof avmChainID === 'undefined' || !avmChainID){
if(typeof avmChainID === 'undefined' || !avmChainID || (typeof avmChainID === "string" && avmChainID.toLowerCase() == "avm")){
if(networkID in Defaults.network){

@@ -69,0 +69,0 @@ chainid = Defaults.network[networkID]["avm"].blockchainID

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

let chainid = avmChainID;
if (typeof avmChainID === 'undefined' || !avmChainID) {
if (typeof avmChainID === 'undefined' || !avmChainID || (typeof avmChainID === "string" && avmChainID.toLowerCase() == "avm")) {
if (networkID in types_1.Defaults.network) {

@@ -141,2 +141,2 @@ chainid = types_1.Defaults.network[networkID]["avm"].blockchainID;

exports.AVMKeyChain = keychain_1.AVMKeyChain;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7O0dBRUc7QUFDSCxzREFBa0M7QUFvRjFCLHFCQXBGRCxnQkFBVSxDQW9GQztBQW5GbEIsOERBQThDO0FBdUd2QixtQkF2R2hCLGFBQVcsQ0F1R2E7QUF0Ry9CLDhEQUE4QztBQXVHdkIsbUJBdkdoQixhQUFXLENBdUdhO0FBdEcvQix5REFBb0M7QUFvR2xCLGNBcEdYLGFBQU0sQ0FvR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c2UsIE91dHB1dCwgU2VsZWN0T3V0cHV0Q2xhc3N9IGZyb20gJy4vYXBpcy9hdm0vb3V0cHV0cyc7XHRcbmV4cG9ydCB7U2VjcElucHV0LCBJbnB1dCwgU2VsZWN0SW5wdXRDbGFzc30gZnJvbSAnLi9hcGlzL2F2bS9pbnB1dHMnO1x0XG5leHBvcnQge0FWTUtleVBhaXIsIEFWTUtleUNoYWlufSBmcm9tICcuL2FwaXMvYXZtL2tleWNoYWluJztcblxuZXhwb3J0IHtBVk1BUEkgYXMgQVZNfTtcbmV4cG9ydCB7S2V5c3RvcmVBUEkgYXMgS2V5c3RvcmV9O1xuZXhwb3J0IHtQbGF0Zm9ybUFQSSBhcyBQbGF0Zm9ybX07XG5leHBvcnQge0FkbWluQVBJIGFzIEFkbWlufTtcblxuXG4iXX0=

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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