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.4.0 to 1.4.1

2

package.json
{
"name": "slopes",
"version": "1.4.0",
"version": "1.4.1",
"description": "AVA Platform JS Library",

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

@@ -495,3 +495,3 @@ /**

let n12345_contracts = Object.assign({}, n2_contracts);
n12345_platform["blockchainID"] = "tZGm6RCkeGpVETUTp11DW3UYFZmm69zfqxchpHrSF7wgy8rmw";
n12345_contracts["blockchainID"] = "tZGm6RCkeGpVETUTp11DW3UYFZmm69zfqxchpHrSF7wgy8rmw";

@@ -498,0 +498,0 @@ export class Defaults {

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

let n12345_contracts = Object.assign({}, n2_contracts);
n12345_platform["blockchainID"] = "tZGm6RCkeGpVETUTp11DW3UYFZmm69zfqxchpHrSF7wgy8rmw";
n12345_contracts["blockchainID"] = "tZGm6RCkeGpVETUTp11DW3UYFZmm69zfqxchpHrSF7wgy8rmw";
class Defaults {

@@ -400,2 +400,2 @@ }

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdXRpbHMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7QUFJQSxvQ0FBaUM7QUFDakMsOENBQXNCO0FBRXRCLDBEQUFtQztBQUluQzs7R0FFRztBQUNILE1BQU0sUUFBUSxHQUFHLGtCQUFRLENBQUMsV0FBVyxFQUFFLENBQUM7QUFFeEM7O0dBRUc7QUFDSCxNQUFhLG1CQUFtQjtDQU0vQjtBQU5ELGtEQU1DO0FBRUQ7O0d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ZiB0aGUgQVBJcyBiYXNldXJsLlxuICAgICAqIFxuICAgICAqIEBwYXJhbSBiYXNldXJsIFBhdGggb2YgdGhlIEFQSXMgYmFzZXVybCAtIGV4OiBcIi9leHQvYmMvYXZtXCJcbiAgICAgKi9cbiAgICBzZXRCYXNlVVJMID0gKGJhc2V1cmw6c3RyaW5nKSA9PiB7XG4gICAgICAgIGlmKHRoaXMuZGIgJiYgdGhpcy5iYXNldXJsICE9PSBiYXNldXJsKXtcbiAgICAgICAgICAgIGxldCBiYWNrdXAgPSB0aGlzLmRiLmdldEFsbCgpO1xuICAgICAgICAgICAgdGhpcy5kYi5jbGVhckFsbCgpO1xuICAgICAgICAgICAgdGhpcy5iYXNldXJsID0gYmFzZXVybDtcbiAgICAgICAgICAgIHRoaXMuZGIgPSBEQi5nZXROYW1lc3BhY2UoYmFzZXVybCk7XG4gICAgICAgICAgICB0aGlzLmRiLnNldEFsbChiYWNrdXAsIHRydWUpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5iYXNldXJsID0gYmFzZXVybDtcbiAgICAgICAgICAgIHRoaXMuZGIgPSBEQi5nZXROYW1lc3BhY2UoYmFzZXVybCk7XG4gICAgICAgIH1cbiAgICB9IFxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyB0aGUgYmFzZXVybCdzIHBhdGguIFxuICAgICAqL1xuICAgIGdldEJhc2VVUkwgPSAoKSA6IHN0cmluZyA9PiB7XG4gICAgICAgIHJldHVybiB0aGlzLmJhc2V1cmw7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyB0aGUgYmFzZXVybCdzIGRhdGFiYXNlLlxuICAgICAqL1xuICAgIGdldERCID0gKCk6U3RvcmVBUEkgPT4ge1xuICAgICAgICByZXR1cm4gdGhpcy5kYjtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBcbiAgICAgKiBAcGFyYW0gY29yZSBSZWZlcmVuY2UgdG8gdGhlIFNsb3BlcyBpbnN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qcnBjVmVyc2lvbiAhPSBcIjEuMFwiKSB7XG4gICAgICAgICAgICBycGNbXCJqc29ucnBjXCJdID0gdGhpcy5qcnBjVmVyc2lvbjtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBoZWFkZXJzOm9iamVjdCA9IHtcIkNvbnRlbnQtVHlwZVwiOiBcImFwcGxpY2F0aW9uL2pzb247Y2hhcnNldD1VVEYtOFwifTtcblxuICAgICAgICBsZXQgYXhDb25mOkF4aW9zUmVxdWVzdENvbmZpZyA9IHtcbiAgICAgICAgICAgIGJhc2VVUkw6dGhpcy5jb3JlLmdldFByb3RvY29sKCkrXCI6Ly9cIit0aGlzLmNvcmUuZ2V0SVAoKStcIjpcIit0aGlzLmNvcmUuZ2V0UG9ydCgpLFxuICAgICAgICAgICAgcmVzcG9uc2VUeXBlOiAnanNvbidcbiAgICAgICAgfTtcblxuICAgICAgICByZXR1cm4gdGhpcy5jb3JlLnBvc3QoZXAsIHt9LCBKU09OLnN0cmluZ2lmeShycGMpLCBoZWFkZXJzLCBheENvbmYpLnRoZW4oIChyZXNwOlJlcXVlc3RSZXNwb25zZURhdGEpID0+IHtcbiAgICAgICAgICAgIGlmKHJlc3Auc3RhdHVzID49IDIwMCAmJiByZXNwLnN0YXR1cyA8IDMwMCl7XG4gICAgICAgICAgICAgICAgdGhpcy5ycGNpZCArPSAxO1xuICAgICAgICAgICAgICAgIGlmKHR5cGVvZiByZXNwLmRhdGEgPT09IFwic3RyaW5nXCIpe1xuICAgICAgICAgICAgICAgICAgICByZXNwLmRhdGEgPSBKU09OLnBhcnNlKHJlc3AuZGF0YSk7XG4gICAgICAgICAgICAgICAgICAgIFxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZih0eXBlb2YgcmVzcC5kYXRhID09PSAnb2JqZWN0JyAmJiAnZXJyb3InIGluIHJlc3AuZGF0YSkge1xuICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoXCJFcnJvciByZXR1cm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Ml9wbGF0Zm9ybSk7XG5uMTIzNDVfcGxhdGZvcm1bXCJibG9ja2NoYWluSURcIl0gPSBcIjExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExTHBvWVlcIjtcbmxldCBuMTIzNDVfY29udHJhY3RzID0gT2JqZWN0LmFzc2lnbih7fSwgbjJfY29udHJhY3RzKTtcbm4xMjM0NV9wbGF0Zm9ybVtcImJsb2NrY2hhaW5JRFwiXSA9IFwidFpHbTZSQ2tlR3BWRVRVVHAxMURXM1VZRlptbTY5emZxeGNocEhyU0Y3d2d5OHJtd1wiO1xuXG5leHBvcnQgY2xhc3MgRGVmYXVsdHMge1xuICAgIHN0YXRpYyBuZXR3b3JrID0ge1xuICAgICAgICBcIjFcIjoge30sIC8vdXBkYXRlIGJlZm9yZSBtYWlubmV0XG4gICAgICAgIFwiMlwiOiB7XG4gICAgICAgICAgICBcImF2bVwiOiBuMl9hdm0sXG4gICAgICAgICAgICBcIlhcIjogbjJfYXZtLFxuICAgICAgICAgICAgXCI0a3RSanNBS3hnTXIyYUV6djlTV21yVTdYazVGbmlIVXJWQ1g0UDFUWlNmVExaV0ZNXCI6IG4yX2F2bSxcbiAgICAgICAgICAgIFwicGxhdGZvcm1cIjogbjJfcGxhdGZvcm0sXG4gICAgICAgICAgICBcIlBcIjogbjJfcGxhdGZvcm0sXG4gICAgICAgICAgICBcIjExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExTHBvWVlcIjogbjJfcGxhdGZvcm0sXG4gICAgICAgICAgICBcImNvbnRyYWN0c1wiOiBuMl9jb250cmFjdHMsXG4gICAgICAgICAgICBcIkNcIjogbjJfY29udHJhY3RzLFxuICAgICAgICAgICAgXCIybVVZU1hmTHJEdGlnd2J6ajFMeEtWc0h3RUxnaGM1c2lzb1hyekp3THFBQVFIRjRpXCI6IG4yX2NvbnRyYWN0c1xuICAgICAgICB9LFxuICAgICAgICBcIjEyMzQ1XCI6IHtcbiAgICAgICAgICAgIFwiYXZtXCI6IG4xMjM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1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IGhlYWRlcnM6b2JqZWN0ID0ge1wiQ29udGVudC1UeXBlXCI6IFwiYXBwbGljYXRpb24vanNvbjtjaGFyc2V0PVVURi04XCJ9O1xuXG4gICAgICAgIGxldCBheENvbmY6QXhpb3NSZXF1ZXN0Q29uZmlnID0ge1xuICAgICAgICAgICAgYmFzZVVSTDp0aGlzLmNvcmUuZ2V0UHJvdG9jb2woKStcIjovL1wiK3RoaXMuY29yZS5nZXRJUCgpK1wiOlwiK3RoaXMuY29yZS5nZXRQb3J0KCksXG4gICAgICAgICAgICByZXNwb25zZVR5cGU6ICdqc29uJ1xuICAgICAgICB9O1xuXG4gICAgICAgIHJldHVybiB0aGlzLmNvcmUucG9zdChlcCwge30sIEpTT04uc3RyaW5naWZ5KHJwYyksIGhlYWRlcnMsIGF4Q29uZikudGhlbiggKHJlc3A6UmVxdWVzdFJlc3BvbnNlRGF0YSkgPT4ge1xuICAgICAgICAgICAgaWYocmVzcC5zdGF0dXMgPj0gMjAwICYmIHJlc3Auc3RhdHVzIDwgMzAwKXtcbiAgICAgICAgICAgICAgICB0aGlzLnJwY2lkICs9IDE7XG4gICAgICAgICAgICAgICAgaWYodHlwZW9mIHJlc3AuZGF0YSA9PT0gXCJzdHJpbmdcIil7XG4gICAgICAgICAgICAgICAgICAgIHJlc3AuZGF0YSA9IEpTT04ucGFyc2UocmVzcC5kYXRhKTtcbiAgICAgICAgICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmKHR5cGVvZiByZXNwLmRhdGEgPT09ICdvYmplY3QnICYmICdlcnJvcicgaW4gcmVzcC5kYXRhKSB7XG4gICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihcIkVycm9yIHJldHVybmVkOiBcIiArIEpTT04uc3RyaW5naWZ5KHJlc3AuZGF0YSkpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICByZXR1cm4gcm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2hhaW5JRFwiXSA9IFwiMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTFMcG9ZWVwiO1xubGV0IG4xMjM0NV9jb250cmFjdHMgPSBPYmplY3QuYXNzaWduKHt9LCBuMl9jb250cmFjdHMpO1xubjEyMzQ1X2NvbnRyYWN0c1tcImJsb2NrY2hhaW5JRFwiXSA9IFwidFpHbTZSQ2tlR3BWRVRVVHAxMURXM1VZRlptbTY5emZxeGNocEhyU0Y3d2d5OHJtd1wiO1xuXG5leHBvcnQgY2xhc3MgRGVmYXVsdHMge1xuICAgIHN0YXRpYyBuZXR3b3JrID0ge1xuICAgICAgICBcIjFcIjoge30sIC8vdXBkYXRlIGJlZm9yZSBtYWlubmV0XG4gICAgICAgIFwiMlwiOiB7XG4gICAgICAgICAgICBcImF2bVwiOiBuMl9hdm0sXG4gICAgICAgICAgICBcIlhcIjogbjJfYXZtLFxuICAgICAgICAgICAgXCI0a3RSanNBS3hnTXIyYUV6djlTV21yVTdYazVGbmlIVXJWQ1g0UDFUWlNmVExaV0ZNXCI6IG4yX2F2bSxcbiAgICAgICAgICAgIFwicGxhdGZvcm1cIjogbjJfcGxhdGZvcm0sXG4gICAgICAgICAgICBcIlBcIjogbjJfcGxhdGZvcm0sXG4gICAgICAgICAgICBcIjExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExTHBvWVlcIjogbjJfcGxhdGZvcm0sXG4gICAgICAgICAgICBcImNvbnRyYWN0c1wiOiBuMl9jb250cmFjdHMsXG4gICAgICAgICAgICBcIkNcIjogbjJfY29udHJhY3RzLFxuICAgICAgICAgICAgXCIybVVZU1hmTHJEdGlnd2J6ajFMeEtWc0h3RUxnaGM1c2lzb1hyekp3THFBQVFIRjRpXCI6IG4yX2NvbnRyYWN0c1xuICAgICAgICB9LFxuICAgICAgICBcIjEyMzQ1XCI6IHtcbiAgICAgICAgICAgIFwiYXZtXCI6IG4xMjM0NV9hdm0sXG4gICAgICAgICAgICBcIlhcIjogbjEyMzQ1X2F2bSxcbiAgICAgICAgICAgIFwiNFI1cDJSWERHTHFhaWZaRTRoSFdIOW93ZTM0cGZvQlVMbjFEclFUV2l2amc4bzRhSFwiOiBuMTIzNDVfYXZtLFxuICAgICAgICAgICAgXCJwbGF0Zm9ybVwiOiBuMTIzNDVfcGxhdGZvcm0sXG4gICAgICAgICAgICBcIlBcIjogbjEyMzQ1X3BsYXRmb3JtLFxuICAgICAgICAgICAgXCIxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMUxwb1lZXCI6IG4xMjM0NV9wbGF0Zm9ybSxcbiAgICAgICAgICAgIFwiY29udHJhY3RzXCI6IG4xMjM0NV9jb250cmFjdHMsXG4gICAgICAgICAgICBcIkNcIjogbjEyMzQ1X2NvbnRyYWN0cyxcbiAgICAgICAgICAgIFwidFpHbTZSQ2tlR3BWRVRVVHAxMURXM1VZRlptbTY5emZxeGNocEhyU0Y3d2d5OHJtd1wiOiBuMTIzNDVfY29udHJhY3RzXG4gICAgICAgIH1cbiAgICB9O1xufSJdfQ==

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