Socket
Socket
Sign inDemoInstall

@ethersproject/bytes

Package Overview
Dependencies
1
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.11 to 5.1.0

2

lib.esm/_version.d.ts

@@ -1,2 +0,2 @@

export declare const version = "bytes/5.0.11";
export declare const version = "bytes/5.1.0";
//# sourceMappingURL=_version.d.ts.map

@@ -1,2 +0,2 @@

export const version = "bytes/5.0.11";
export const version = "bytes/5.1.0";
//# sourceMappingURL=_version.js.map

@@ -27,3 +27,3 @@ export declare type Bytes = ArrayLike<number>;

export declare function arrayify(value: BytesLike | Hexable | number, options?: DataOptions): Uint8Array;
export declare function concat(items: Array<BytesLike>): Uint8Array;
export declare function concat(items: ReadonlyArray<BytesLike>): Uint8Array;
export declare function stripZeros(value: BytesLike): Uint8Array;

@@ -35,3 +35,3 @@ export declare function zeroPad(value: BytesLike, length: number): Uint8Array;

export declare function hexDataSlice(data: BytesLike, offset: number, endOffset?: number): string;
export declare function hexConcat(items: Array<BytesLike>): string;
export declare function hexConcat(items: ReadonlyArray<BytesLike>): string;
export declare function hexValue(value: BytesLike | Hexable | number): string;

@@ -38,0 +38,0 @@ export declare function hexStripZeros(value: BytesLike): string;

@@ -324,2 +324,5 @@ "use strict";

}
else if (result.v === 0 || result.v === 1) {
result.recoveryParam = result.v;
}
else {

@@ -326,0 +329,0 @@ result.recoveryParam = 1 - (result.v % 2);

@@ -1,2 +0,2 @@

export declare const version = "bytes/5.0.11";
export declare const version = "bytes/5.1.0";
//# sourceMappingURL=_version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = void 0;
exports.version = "bytes/5.0.11";
exports.version = "bytes/5.1.0";
//# sourceMappingURL=_version.js.map

@@ -27,3 +27,3 @@ export declare type Bytes = ArrayLike<number>;

export declare function arrayify(value: BytesLike | Hexable | number, options?: DataOptions): Uint8Array;
export declare function concat(items: Array<BytesLike>): Uint8Array;
export declare function concat(items: ReadonlyArray<BytesLike>): Uint8Array;
export declare function stripZeros(value: BytesLike): Uint8Array;

@@ -35,3 +35,3 @@ export declare function zeroPad(value: BytesLike, length: number): Uint8Array;

export declare function hexDataSlice(data: BytesLike, offset: number, endOffset?: number): string;
export declare function hexConcat(items: Array<BytesLike>): string;
export declare function hexConcat(items: ReadonlyArray<BytesLike>): string;
export declare function hexValue(value: BytesLike | Hexable | number): string;

@@ -38,0 +38,0 @@ export declare function hexStripZeros(value: BytesLike): string;

@@ -340,2 +340,5 @@ "use strict";

}
else if (result.v === 0 || result.v === 1) {
result.recoveryParam = result.v;
}
else {

@@ -342,0 +345,0 @@ result.recoveryParam = 1 - (result.v % 2);

{
"author": "Richard Moore <me@ricmoo.com>",
"dependencies": {
"@ethersproject/logger": "^5.0.8"
"@ethersproject/logger": "^5.1.0"
},

@@ -18,3 +18,3 @@ "description": "Bytes utility functions for ethers.",

],
"gitHead": "6c43e20e7a68f3f5a141c74527ec63d9fe8458be",
"gitHead": "3b1d3fcee6bfb5178861e26ff1a1e9daa0663ec9",
"keywords": [

@@ -42,5 +42,5 @@ "Ethereum",

"sideEffects": false,
"tarballHash": "0xd86106b58eb62a537aa8c4f91a5a1d855ba2e8a85bd296670bd1e7d413da44d2",
"tarballHash": "0xbf3f9d896c02b5f7ab44c4ecd7b6c6590ed68367714ac7cc0f4b89dfffccf479",
"types": "./lib/index.d.ts",
"version": "5.0.11"
"version": "5.1.0"
}

@@ -1,1 +0,1 @@

export const version = "bytes/5.0.11";
export const version = "bytes/5.1.0";

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

export function concat(items: Array<BytesLike>): Uint8Array {
export function concat(items: ReadonlyArray<BytesLike>): Uint8Array {
const objects = items.map(item => arrayify(item));

@@ -279,3 +279,3 @@ const length = objects.reduce((accum, item) => (accum + item.length), 0);

export function hexConcat(items: Array<BytesLike>): string {
export function hexConcat(items: ReadonlyArray<BytesLike>): string {
let result = "0x";

@@ -395,2 +395,4 @@ items.forEach((item) => {

logger.throwArgumentError("signature missing v and recoveryParam", "signature", signature);
} else if (result.v === 0 || result.v === 1) {
result.recoveryParam = result.v;
} else {

@@ -397,0 +399,0 @@ result.recoveryParam = 1 - (result.v % 2);

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

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

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