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.1.1 to 1.1.2

2

package.json
{
"name": "slopes",
"version": "1.1.1",
"version": "1.1.2",
"description": "AVA Platform JS Library",

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

@@ -69,3 +69,3 @@ /**

if(typeof networkid !== 'number'){
this.api["admin"].getNetworkID().then((netid:number) => {
(this.apis["admin"] as AdminAPI).getNetworkID().then((netid:number) => {
this.networkID = netid;

@@ -76,3 +76,3 @@ }).catch((err) => {

}
this.api["admin"].getBlockchainID("avm").then((blockchainid:string) => {
(this.apis["admin"] as AdminAPI).getBlockchainID("avm").then((blockchainid:string) => {
this.addAPI("avm", AVMAPI, "/ext/subnet/avm", blockchainid);

@@ -79,0 +79,0 @@ }).catch((err) => {

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

if (typeof networkid !== 'number') {
this.api["admin"].getNetworkID().then((netid) => {
this.apis["admin"].getNetworkID().then((netid) => {
this.networkID = netid;

@@ -94,3 +94,3 @@ }).catch((err) => {

}
this.api["admin"].getBlockchainID("avm").then((blockchainid) => {
this.apis["admin"].getBlockchainID("avm").then((blockchainid) => {
this.addAPI("avm", api_3.default, "/ext/subnet/avm", blockchainid);

@@ -136,2 +136,2 @@ }).catch((err) => {

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

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