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

ripple-binary-codec

Package Overview
Dependencies
Maintainers
7
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ripple-binary-codec - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

2

dist/types/currency.js

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

}
else if (code.toString('hex') === '000000') {
else if (/^0*$/.test(_this.bytes.toString('hex'))) {
_this._iso = 'XRP';

@@ -99,0 +99,0 @@ }

{
"name": "ripple-binary-codec",
"version": "1.2.1",
"version": "1.2.2",
"description": "XRP Ledger binary codec",

@@ -20,3 +20,3 @@ "files": [

"decimal.js": "^10.2.0",
"ripple-address-codec": "^4.2.1"
"ripple-address-codec": "^4.2.2"
},

@@ -46,3 +46,3 @@ "scripts": {

},
"gitHead": "7c6230b18ec2ed031c7e379ffb94e34b940b6542"
"gitHead": "78d9b117941cd9ce06d6f1291eb24e882482ceab"
}

@@ -72,2 +72,3 @@ const { coreTypes } = require('../dist/types')

})
test('can be constructed from a Buffer', function () {

@@ -81,2 +82,8 @@ const xrp = new Currency(Buffer.alloc(20))

})
test('Can handle other non-standard currency codes', () => {
const currency = '0000000000414C6F676F30330000000000000000'
expect(Currency.from(currency).toJSON()).toBe(currency)
})
test('throws on invalid reprs', function () {

@@ -83,0 +90,0 @@ expect(() => Currency.from(Buffer.alloc(19))).toThrow()

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