@polkadot/util
Advanced tools
Comparing version 12.4.2 to 12.5.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isWasm = exports.isUtf8 = exports.isUndefined = exports.isU8a = exports.isToBn = exports.isToBigInt = exports.isTestChain = exports.isString = exports.isPromise = exports.isObservable = exports.isObject = exports.isNumber = exports.isNull = exports.isJsonObject = exports.isIp = exports.isInstanceOf = exports.isHex = exports.isFunction = exports.isError = exports.isCompact = exports.isCodec = exports.isClass = exports.isChildClass = exports.isBuffer = exports.isBoolean = exports.isBn = exports.isBigInt = exports.isAscii = exports.isArray = void 0; | ||
exports.isWasm = exports.isUtf8 = exports.isUndefined = exports.isU8a = exports.isToBn = exports.isToBigInt = exports.isTestChain = exports.isString = exports.isRiscV = exports.isPromise = exports.isObservable = exports.isObject = exports.isNumber = exports.isNull = exports.isJsonObject = exports.isIp = exports.isInstanceOf = exports.isHex = exports.isFunction = exports.isError = exports.isCompact = exports.isCodec = exports.isClass = exports.isChildClass = exports.isBuffer = exports.isBoolean = exports.isBn = exports.isBigInt = exports.isAscii = exports.isArray = void 0; | ||
/** | ||
@@ -49,2 +49,4 @@ * @summary Type checking utilities | ||
Object.defineProperty(exports, "isPromise", { enumerable: true, get: function () { return promise_js_1.isPromise; } }); | ||
var riscv_js_1 = require("./riscv.js"); | ||
Object.defineProperty(exports, "isRiscV", { enumerable: true, get: function () { return riscv_js_1.isRiscV; } }); | ||
var string_js_1 = require("./string.js"); | ||
@@ -51,0 +53,0 @@ Object.defineProperty(exports, "isString", { enumerable: true, get: function () { return string_js_1.isString; } }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.packageInfo = void 0; | ||
exports.packageInfo = { name: '@polkadot/util', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '12.4.2' }; | ||
exports.packageInfo = { name: '@polkadot/util', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '12.5.1' }; |
@@ -25,2 +25,3 @@ /** | ||
export { isPromise } from './promise.js'; | ||
export { isRiscV } from './riscv.js'; | ||
export { isString } from './string.js'; | ||
@@ -27,0 +28,0 @@ export { isTestChain } from './testChain.js'; |
@@ -25,2 +25,3 @@ /** | ||
export { isPromise } from './promise.js'; | ||
export { isRiscV } from './riscv.js'; | ||
export { isString } from './string.js'; | ||
@@ -27,0 +28,0 @@ export { isTestChain } from './testChain.js'; |
@@ -21,3 +21,3 @@ { | ||
"type": "module", | ||
"version": "12.4.2", | ||
"version": "12.5.1", | ||
"main": "./cjs/index.js", | ||
@@ -543,2 +543,8 @@ "module": "./index.js", | ||
}, | ||
"./is/riscv": { | ||
"types": "./is/riscv.d.ts", | ||
"module": "./is/riscv.js", | ||
"require": "./cjs/is/riscv.js", | ||
"default": "./is/riscv.js" | ||
}, | ||
"./is/string": { | ||
@@ -878,6 +884,6 @@ "types": "./is/string.d.ts", | ||
"dependencies": { | ||
"@polkadot/x-bigint": "12.4.2", | ||
"@polkadot/x-global": "12.4.2", | ||
"@polkadot/x-textdecoder": "12.4.2", | ||
"@polkadot/x-textencoder": "12.4.2", | ||
"@polkadot/x-bigint": "12.5.1", | ||
"@polkadot/x-global": "12.5.1", | ||
"@polkadot/x-textdecoder": "12.5.1", | ||
"@polkadot/x-textencoder": "12.5.1", | ||
"@types/bn.js": "^5.1.1", | ||
@@ -884,0 +890,0 @@ "bn.js": "^5.2.1", |
@@ -1,1 +0,1 @@ | ||
export const packageInfo = { name: '@polkadot/util', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '12.4.2' }; | ||
export const packageInfo = { name: '@polkadot/util', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '12.5.1' }; |
/// <reference types="bn.js" /> | ||
import type { BN } from './bn/bn.js'; | ||
/** An interface that defines an actual JS class */ | ||
export interface Class<T = any, A extends unknown[] = any[]> { | ||
@@ -29,15 +30,9 @@ prototype: T; | ||
export interface ToBnOptions { | ||
/** | ||
* @description Convert in LE format | ||
*/ | ||
/** Convert in LE format */ | ||
isLe?: boolean; | ||
/** | ||
* @description Number is signed, apply two's complement | ||
*/ | ||
/** Number is signed, apply two's complement */ | ||
isNegative?: boolean; | ||
} | ||
export interface NumberOptions extends ToBnOptions { | ||
/** | ||
* @description Limit to the specified bitLength, despite input length | ||
*/ | ||
/** Limit to the specified bitLength, despite input length */ | ||
bitLength?: number; | ||
@@ -44,0 +39,0 @@ } |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
546426
422
14491
+ Added@polkadot/x-bigint@12.5.1(transitive)
+ Added@polkadot/x-global@12.5.1(transitive)
+ Added@polkadot/x-textdecoder@12.5.1(transitive)
+ Added@polkadot/x-textencoder@12.5.1(transitive)
- Removed@polkadot/x-bigint@12.4.2(transitive)
- Removed@polkadot/x-global@12.4.2(transitive)
- Removed@polkadot/x-textdecoder@12.4.2(transitive)
- Removed@polkadot/x-textencoder@12.4.2(transitive)
Updated@polkadot/x-bigint@12.5.1
Updated@polkadot/x-global@12.5.1