Comparing version 0.0.0-20240815T025133 to 0.0.0-20240815T030024
import { type HexToBytesErrorType } from '../bytes/toBytes.js'; | ||
import { type CreateCursorErrorType } from '../cursor.js'; | ||
import { type BaseErrorType } from '../errors/base.js'; | ||
@@ -7,3 +8,2 @@ import { type InvalidHexValueErrorType } from '../errors/data.js'; | ||
import type { Bytes, Hex } from '../types/data.js'; | ||
import { type CreateCursorErrorType } from '../utils/cursor.js'; | ||
import type { RecursiveArray } from './toRlp.js'; | ||
@@ -10,0 +10,0 @@ type To = 'hex' | 'bytes'; |
@@ -7,6 +7,6 @@ "use strict"; | ||
const toBytes_js_1 = require("../bytes/toBytes.js"); | ||
const cursor_js_1 = require("../cursor.js"); | ||
const base_js_1 = require("../errors/base.js"); | ||
const data_js_1 = require("../errors/data.js"); | ||
const toHex_js_1 = require("../hex/toHex.js"); | ||
const cursor_js_1 = require("../utils/cursor.js"); | ||
function fromRlp(value, to_) { | ||
@@ -13,0 +13,0 @@ const to = to_ ?? (typeof value === 'string' ? 'hex' : 'bytes'); |
import { type HexToBytesErrorType } from '../bytes/toBytes.js'; | ||
import { type CreateCursorErrorType } from '../cursor.js'; | ||
import type { ErrorType } from '../errors/error.js'; | ||
import { type BytesToHexErrorType } from '../hex/toHex.js'; | ||
import type { Bytes, Hex } from '../types/data.js'; | ||
import { type CreateCursorErrorType } from '../utils/cursor.js'; | ||
export type RecursiveArray<T> = T | readonly RecursiveArray<T>[]; | ||
@@ -7,0 +7,0 @@ type To = 'hex' | 'bytes'; |
@@ -7,5 +7,5 @@ "use strict"; | ||
const toBytes_js_1 = require("../bytes/toBytes.js"); | ||
const cursor_js_1 = require("../cursor.js"); | ||
const base_js_1 = require("../errors/base.js"); | ||
const toHex_js_1 = require("../hex/toHex.js"); | ||
const cursor_js_1 = require("../utils/cursor.js"); | ||
function toRlp(bytes, to_) { | ||
@@ -12,0 +12,0 @@ const encodable = getEncodable(bytes); |
@@ -1,2 +0,2 @@ | ||
export declare const version = "0.0.0-20240815T025133"; | ||
export declare const version = "0.0.0-20240815T030024"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = '0.0.0-20240815T025133'; | ||
exports.version = '0.0.0-20240815T030024'; | ||
//# sourceMappingURL=version.js.map |
import { type HexToBytesErrorType } from '../bytes/toBytes.js'; | ||
import { type CreateCursorErrorType } from '../cursor.js'; | ||
import { type BaseErrorType } from '../errors/base.js'; | ||
@@ -7,3 +8,2 @@ import { type InvalidHexValueErrorType } from '../errors/data.js'; | ||
import type { Bytes, Hex } from '../types/data.js'; | ||
import { type CreateCursorErrorType } from '../utils/cursor.js'; | ||
import type { RecursiveArray } from './toRlp.js'; | ||
@@ -10,0 +10,0 @@ type To = 'hex' | 'bytes'; |
import { hexToBytes } from '../bytes/toBytes.js'; | ||
import { createCursor, } from '../cursor.js'; | ||
import { BaseError } from '../errors/base.js'; | ||
import { InvalidHexValueError, } from '../errors/data.js'; | ||
import { bytesToHex } from '../hex/toHex.js'; | ||
import { createCursor, } from '../utils/cursor.js'; | ||
/** | ||
@@ -7,0 +7,0 @@ * Decodes a Recursive-Length Prefix (RLP) value into a decoded {@link Bytes} or {@link Hex} value. |
import { type HexToBytesErrorType } from '../bytes/toBytes.js'; | ||
import { type CreateCursorErrorType } from '../cursor.js'; | ||
import type { ErrorType } from '../errors/error.js'; | ||
import { type BytesToHexErrorType } from '../hex/toHex.js'; | ||
import type { Bytes, Hex } from '../types/data.js'; | ||
import { type CreateCursorErrorType } from '../utils/cursor.js'; | ||
export type RecursiveArray<T> = T | readonly RecursiveArray<T>[]; | ||
@@ -7,0 +7,0 @@ type To = 'hex' | 'bytes'; |
import { hexToBytes } from '../bytes/toBytes.js'; | ||
import { createCursor, } from '../cursor.js'; | ||
import { BaseError } from '../errors/base.js'; | ||
import { bytesToHex } from '../hex/toHex.js'; | ||
import { createCursor, } from '../utils/cursor.js'; | ||
/** | ||
@@ -6,0 +6,0 @@ * Encodes a {@link Bytes} or {@link Hex} value into a Recursive-Length Prefix (RLP) value. |
/** @internal */ | ||
export declare const version = "0.0.0-20240815T025133"; | ||
export declare const version = "0.0.0-20240815T030024"; | ||
//# sourceMappingURL=version.d.ts.map |
/** @internal */ | ||
export const version = '0.0.0-20240815T025133'; | ||
export const version = '0.0.0-20240815T030024'; | ||
//# sourceMappingURL=version.js.map |
import { type HexToBytesErrorType, hexToBytes } from '../bytes/toBytes.js' | ||
import { | ||
type CreateCursorErrorType, | ||
type Cursor, | ||
createCursor, | ||
} from '../cursor.js' | ||
import { BaseError, type BaseErrorType } from '../errors/base.js' | ||
@@ -10,7 +15,2 @@ import { | ||
import type { Bytes, Hex } from '../types/data.js' | ||
import { | ||
type CreateCursorErrorType, | ||
type Cursor, | ||
createCursor, | ||
} from '../utils/cursor.js' | ||
import type { RecursiveArray } from './toRlp.js' | ||
@@ -17,0 +17,0 @@ |
import { type HexToBytesErrorType, hexToBytes } from '../bytes/toBytes.js' | ||
import { | ||
type CreateCursorErrorType, | ||
type Cursor, | ||
createCursor, | ||
} from '../cursor.js' | ||
import { BaseError } from '../errors/base.js' | ||
@@ -6,7 +11,2 @@ import type { ErrorType } from '../errors/error.js' | ||
import type { Bytes, Hex } from '../types/data.js' | ||
import { | ||
type CreateCursorErrorType, | ||
type Cursor, | ||
createCursor, | ||
} from '../utils/cursor.js' | ||
@@ -13,0 +13,0 @@ export type RecursiveArray<T> = T | readonly RecursiveArray<T>[] |
{ | ||
"name": "ox", | ||
"description": "Ethereum Standard Library", | ||
"version": "0.0.0-20240815T025133", | ||
"version": "0.0.0-20240815T030024", | ||
"main": "./_cjs/index.js", | ||
@@ -6,0 +6,0 @@ "module": "./_esm/index.js", |
/** @internal */ | ||
export const version = '0.0.0-20240815T025133' | ||
export const version = '0.0.0-20240815T030024' |
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
425345