Socket
Socket
Sign inDemoInstall

rlp

Package Overview
Dependencies
1
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.0 to 2.2.1

17

CHANGELOG.md

@@ -9,4 +9,21 @@ # Changelog

## [v2.2.1] - 2018-12-20
- Fixed a bug introduced in `v2.2.0` causing the CLI `bin/rlp` command not to
work, see PR [#60](https://github.com/ethereumjs/rlp/pull/60)
- Additional exports of types used by `decode` and `encode`
(PR [#59](https://github.com/ethereumjs/rlp/pull/59)):
- `Input`: input type for `encode()`
- `Dictionary` and `List`: interfaces for possible `Input` values
- `Decoded`: interface for `decode()` return type
- Additional test structure and new integration tests for distribution and
`bin/rlp` CLI command, see PR [#57](https://github.com/ethereumjs/rlp/pull/57)
[v2.2.1]: https://github.com/ethereumjs/rlp/compare/2.2.0...v2.2.1
## [v2.2.0] - 2018-12-17
[DEPRECATED] Please update to `v2.2.1`, release contains a broken CLI `bin/rlp`
command!
First `TypeScript` based release of `EthereumJS` libraries, thanks @krzkaczor,

@@ -13,0 +30,0 @@ @GrandSchtroumpf, @whymarrh, @holgerd77 for the great work on this!

9

dist/index.d.ts
/// <reference types="node" />
import { RLPInput, RLPDecoded } from './types';
import { Decoded, Dictionary, Input, List } from './types';
export { Decoded, Dictionary, Input, List };
/**

@@ -9,3 +10,3 @@ * RLP Encoding based on: https://github.com/ethereum/wiki/wiki/%5BEnglish%5D-RLP

**/
export declare function encode(input: RLPInput): Buffer;
export declare function encode(input: Input): Buffer;
/**

@@ -19,3 +20,3 @@ * RLP Decoding based on: {@link https://github.com/ethereum/wiki/wiki/%5BEnglish%5D-RLP|RLP}

export declare function decode(input: Buffer[], stream?: boolean): Buffer[];
export declare function decode(input: RLPInput, stream?: boolean): Buffer[] | Buffer | RLPDecoded;
export declare function decode(input: Input, stream?: boolean): Buffer[] | Buffer | Decoded;
/**

@@ -26,2 +27,2 @@ * Get the length of the RLP input

*/
export declare function getLength(input: RLPInput): Buffer | number;
export declare function getLength(input: Input): Buffer | number;
/// <reference types="node" />
import BN = require('bn.js');
export declare type RLPInput = Buffer | string | number | Uint8Array | BN | RLPObject | RLPArray | null;
export interface RLPArray extends Array<RLPInput> {
export declare type Input = Buffer | string | number | Uint8Array | BN | Dictionary | List | null;
export interface List extends Array<Input> {
}
interface RLPObject {
[x: string]: RLPInput;
export interface Dictionary {
[x: string]: Input;
}
export interface RLPDecoded {
export interface Decoded {
data: Buffer | Buffer[];
remainder: Buffer;
}
export {};
{
"name": "rlp",
"version": "2.2.0",
"version": "2.2.1",
"description": "Recursive Length Prefix Encoding Module",

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

"prepublishOnly": "npm run test && npm run build",
"coverage": "nyc mocha --reporter spec --require ts-node/register test/index.ts",
"coverage": "nyc mocha --reporter spec --require ts-node/register test/*.spec.ts",
"coveralls": "npm run coverage && nyc report --reporter=text-lcov | coveralls",

@@ -24,3 +24,3 @@ "format": "prettier --list-different **/*.{ts,json,md,gql}",

"lint:fix": "npm run format:fix && npm run tslint:fix && npm run tsc",
"unitTests": "mocha --reporter spec --require ts-node/register test/index.ts",
"unitTests": "mocha --reporter spec --require ts-node/register test/*.spec.ts",
"test": "npm run lint && npm run unitTests",

@@ -27,0 +27,0 @@ "test:fix": "npm run lint:fix && npm run unitTests",

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc