@polkadot/util
Advanced tools
Comparing version 11.1.4-12 to 12.0.1
/// <reference types="bn.js" /> | ||
import { BN } from './bn.js'; | ||
import type { BN } from './bn.js'; | ||
/** | ||
@@ -4,0 +4,0 @@ * @name bnMax |
@@ -5,3 +5,3 @@ "use strict"; | ||
const helpers_js_1 = require("./helpers.js"); | ||
const checkCodec = /*#__PURE__*/ (0, helpers_js_1.isOnObject)('toHex', 'toU8a'); | ||
const checkCodec = /*#__PURE__*/ (0, helpers_js_1.isOnObject)('toHex', 'toHuman', 'toU8a'); | ||
const checkRegistry = /*#__PURE__*/ (0, helpers_js_1.isOnObject)('get'); | ||
@@ -8,0 +8,0 @@ function isCodec(value) { |
"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: '11.1.4-12' }; | ||
exports.packageInfo = { name: '@polkadot/util', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '12.0.1' }; |
import type { HexString } from '../types.js'; | ||
interface Registry { | ||
get: (...params: unknown[]) => unknown; | ||
get: (...params: never[]) => any; | ||
} | ||
interface Codec { | ||
readonly registry: Registry; | ||
toHex(isLe?: boolean): HexString; | ||
toU8a: (isBare?: unknown) => Uint8Array; | ||
toHex(...params: never[]): HexString; | ||
toHuman(...params: never[]): unknown; | ||
toU8a: (...params: never[]) => Uint8Array; | ||
} | ||
export declare function isCodec<T extends Codec = Codec>(value?: unknown): value is T; | ||
export {}; |
import { isOnObject } from './helpers.js'; | ||
const checkCodec = /*#__PURE__*/ isOnObject('toHex', 'toU8a'); | ||
const checkCodec = /*#__PURE__*/ isOnObject('toHex', 'toHuman', 'toU8a'); | ||
const checkRegistry = /*#__PURE__*/ isOnObject('get'); | ||
@@ -4,0 +4,0 @@ export function isCodec(value) { |
@@ -6,3 +6,3 @@ { | ||
"engines": { | ||
"node": ">=14" | ||
"node": ">=16" | ||
}, | ||
@@ -22,3 +22,3 @@ "homepage": "https://github.com/polkadot-js/common/tree/master/packages/util#readme", | ||
"type": "module", | ||
"version": "11.1.4-12", | ||
"version": "12.0.1", | ||
"main": "./cjs/index.js", | ||
@@ -734,6 +734,6 @@ "module": "./index.js", | ||
"dependencies": { | ||
"@polkadot/x-bigint": "11.1.4-12", | ||
"@polkadot/x-global": "11.1.4-12", | ||
"@polkadot/x-textdecoder": "11.1.4-12", | ||
"@polkadot/x-textencoder": "11.1.4-12", | ||
"@polkadot/x-bigint": "12.0.1", | ||
"@polkadot/x-global": "12.0.1", | ||
"@polkadot/x-textdecoder": "12.0.1", | ||
"@polkadot/x-textencoder": "12.0.1", | ||
"@types/bn.js": "^5.1.1", | ||
@@ -740,0 +740,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: '11.1.4-12' }; | ||
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.0.1' }; |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
535752
14395
0
+ Added@polkadot/x-bigint@12.0.1(transitive)
+ Added@polkadot/x-global@12.0.1(transitive)
+ Added@polkadot/x-textdecoder@12.0.1(transitive)
+ Added@polkadot/x-textencoder@12.0.1(transitive)
- Removed@polkadot/x-bigint@11.1.4-12(transitive)
- Removed@polkadot/x-global@11.1.4-12(transitive)
- Removed@polkadot/x-textdecoder@11.1.4-12(transitive)
- Removed@polkadot/x-textencoder@11.1.4-12(transitive)
Updated@polkadot/x-bigint@12.0.1
Updated@polkadot/x-global@12.0.1