Socket
Socket
Sign inDemoInstall

@ganache/rlp

Package Overview
Dependencies
Maintainers
3
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ganache/rlp - npm Package Compare versions

Comparing version 0.1.1-beta.1 to 0.1.1-beta.2

12

lib/index.js

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

*
* @param input
* @param input -
**/

@@ -30,3 +30,3 @@ function encodeRange(items, start, length) {

*
* @param ranges
* @param ranges -
* @returns returns a Buffer of encoded data

@@ -54,3 +54,3 @@ */

* RLP Encoding based on: https://github.com/ethereum/wiki/wiki/%5BEnglish%5D-RLP
* @param input
* @param input -
* @returns returns a Buffer of encoded data

@@ -97,5 +97,5 @@ **/

else {
const hexLength = utils_1.uintToBuffer(len);
const hexLength = (0, utils_1.uintToBuffer)(len);
const lLength = hexLength.length;
const firstByte = utils_1.uintToBuffer(offset + 55 + lLength);
const firstByte = (0, utils_1.uintToBuffer)(offset + 55 + lLength);
return Buffer.concat([firstByte, hexLength], firstByte.length + lLength);

@@ -106,5 +106,5 @@ }

function decode(input) {
return rlp_1.decode(input);
return (0, rlp_1.decode)(input);
}
exports.decode = decode;
//# sourceMappingURL=index.js.map

@@ -6,3 +6,3 @@ {

},
"version": "0.1.1-beta.1",
"version": "0.1.1-beta.2",
"description": "Recursive Length Prefix Encoding Module",

@@ -29,5 +29,5 @@ "author": "David Murdoch",

"scripts": {
"tsc": "ttsc --build",
"tsc": "tsc --build",
"test": "nyc npm run mocha",
"mocha": "cross-env TS_NODE_COMPILER=ttypescript DE_FILES=true mocha --exit --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'"
"mocha": "cross-env DE_FILES=true mocha --exit --check-leaks --throw-deprecation --trace-warnings --require ts-node/register 'tests/**/*.test.ts'"
},

@@ -53,3 +53,3 @@ "bugs": {

"dependencies": {
"@ganache/utils": "0.1.1-beta.1",
"@ganache/utils": "0.1.1-beta.2",
"rlp": "2.2.6"

@@ -62,7 +62,6 @@ },

"nyc": "15.1.0",
"ts-node": "9.1.1",
"ttypescript": "1.5.12",
"typescript": "4.1.3"
"ts-node": "10.4.0",
"typescript": "4.5.2"
},
"gitHead": "fd31f6b70e9e5c9acfa2d232d4b34ccbbab2342d"
"gitHead": "ba61f67d4a3f7772e00e66c00b853206dc9e1c9e"
}

@@ -20,3 +20,3 @@ /// <reference types="node" />

*
* @param input
* @param input -
**/

@@ -27,3 +27,3 @@ export declare function encodeRange<T extends EncodingInput | Readonly<EncodingInput>, Start extends RangeOf<T["length"]>>(items: T, start: Start, length: Exclude<Remainders<T["length"], Start>, 0>): EncodedPart;

*
* @param ranges
* @param ranges -
* @returns returns a Buffer of encoded data

@@ -34,3 +34,3 @@ */

* RLP Encoding based on: https://github.com/ethereum/wiki/wiki/%5BEnglish%5D-RLP
* @param input
* @param input -
* @returns returns a Buffer of encoded data

@@ -37,0 +37,0 @@ **/

Sorry, the diff of this file is not supported yet

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