Socket
Socket
Sign inDemoInstall

rlp

Package Overview
Dependencies
2
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.2 to 2.2.3

10

CHANGELOG.md

@@ -9,2 +9,12 @@ # Changelog

## [v2.2.3] - 2019-03-19
- More robust `Array` type checking in `RLP.encode()` function,
PR [#70](https://github.com/ethereumjs/rlp/pull/70)
- Library now throws an error when trying to encode negative integer
values (e.g. `RLP.encode(-1)`),
PR [#71](https://github.com/ethereumjs/rlp/pull/70)
[v2.2.3]: https://github.com/ethereumjs/rlp/compare/2.2.1...v2.2.3
## [v2.2.2] - 2019-01-15

@@ -11,0 +21,0 @@

5

dist/index.js

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

function encode(input) {
if (input instanceof Array) {
if (Array.isArray(input)) {
var output = [];

@@ -191,2 +191,5 @@ for (var i = 0; i < input.length; i++) {

function intToHex(integer) {
if (integer < 0) {
throw new Error('Invalid integer as argument, must be unsigned!');
}
var hex = integer.toString(16);

@@ -193,0 +196,0 @@ return hex.length % 2 ? "0" + hex : hex;

4

package.json
{
"name": "rlp",
"version": "2.2.2",
"version": "2.2.3",
"description": "Recursive Length Prefix Encoding Module",

@@ -59,3 +59,3 @@ "main": "./dist/index.js",

"@types/mocha": "^5.2.5",
"@types/node": "^10.12.2",
"@types/node": "^10.12.2",
"coveralls": "^2.11.4",

@@ -62,0 +62,0 @@ "mocha": "4.1.0",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc