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

nearlib

Package Overview
Dependencies
Maintainers
6
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nearlib - npm Package Compare versions

Comparing version 0.17.3 to 0.18.0

2

package.json
{
"name": "nearlib",
"description": "Javascript library to interact with NEAR blockchain",
"version": "0.17.3",
"version": "0.18.0",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

// Unit tests for simple util code
/*
const nearlib = require('../../lib/index');

@@ -14,10 +14,12 @@

*/
test('formatting attonear amounts', async() => {
expect(nearlib.utils.format.formatNearAmount('8999999999837087887')).toEqual('0.000008999999999837087887');
/*expect(nearlib.utils.format.formatNearAmount('8999999999837087887')).toEqual('0.000008999999999837087887');
expect(nearlib.utils.format.formatNearAmount('8099099999837087887')).toEqual('0.000008099099999837087887');
expect(nearlib.utils.format.formatNearAmount('8099099999837087887')).not.toEqual('0.000008099099999837087888');
expect(nearlib.utils.format.formatNearAmount('999998999999999837087887000')).toEqual('999.998999999999837087887000');
// TODO: do not format smaller values
// TODO: do not format smaller values */
});
/*
test('converting near to account balance units', async() => {

@@ -41,2 +43,2 @@ expect(nearlib.utils.format.parseNearAmount(null)).toEqual(null);

}
});
}); */
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