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

@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-internal.1341 to 0.1.1-rc.0

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,6 +6,6 @@ {

},
"version": "0.1.1-internal.1341+f3e1b8f0",
"version": "0.1.1-rc.0",
"description": "Recursive Length Prefix Encoding Module",
"author": "David Murdoch",
"homepage": "https://github.com/trufflesuite/ganache-core/tree/develop/src/packages/rlp#readme",
"homepage": "https://github.com/trufflesuite/ganache/tree/develop/src/packages/rlp#readme",
"license": "MIT",

@@ -25,12 +25,12 @@ "main": "lib/index.js",

"type": "git",
"url": "https://github.com/trufflesuite/ganache-core.git",
"url": "https://github.com/trufflesuite/ganache.git",
"directory": "src/packages/rlp"
},
"scripts": {
"tsc": "ttsc --build",
"tsc": "tsc --build",
"test": "nyc npm run mocha",
"mocha": "cross-env TS_NODE_COMPILER=ttypescript TS_NODE_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'"
},
"bugs": {
"url": "https://github.com/trufflesuite/ganache-core/issues"
"url": "https://github.com/trufflesuite/ganache/issues"
},

@@ -53,15 +53,14 @@ "keywords": [

"dependencies": {
"@ganache/utils": "0.1.1-internal.1341+f3e1b8f0",
"@ganache/utils": "0.1.1-rc.0",
"rlp": "2.2.6"
},
"devDependencies": {
"@types/mocha": "8.2.2",
"cross-env": "7.0.2",
"mocha": "8.4.0",
"@types/mocha": "9.0.0",
"cross-env": "7.0.3",
"mocha": "9.1.3",
"nyc": "15.1.0",
"ts-node": "9.0.0",
"ttypescript": "1.5.12",
"typescript": "4.1.3"
"ts-node": "10.4.0",
"typescript": "4.5.2"
},
"gitHead": "f3e1b8f0152ffc404d4aee0a73237ba6ba57ada7"
"gitHead": "b02135d151819b81667de25c4c3983784886438d"
}

@@ -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

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