@polkadot/util
Advanced tools
Comparing version 12.2.2 to 12.3.1
@@ -90,5 +90,5 @@ "use strict"; | ||
const env = (has_js_1.hasProcess ? x_global_1.xglobal.process : {}).env || {}; | ||
const maxSize = parseInt(env.DEBUG_MAX || '-1', 10); | ||
const maxSize = parseInt(env['DEBUG_MAX'] || '-1', 10); | ||
return [ | ||
getDebugFlag((env.DEBUG || '').toLowerCase().split(','), type), | ||
getDebugFlag((env['DEBUG'] || '').toLowerCase().split(','), type), | ||
isNaN(maxSize) | ||
@@ -95,0 +95,0 @@ ? -1 |
"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.2.2' }; | ||
exports.packageInfo = { name: '@polkadot/util', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '12.3.1' }; |
@@ -1,2 +0,2 @@ | ||
import type { Constructor } from '../types.js'; | ||
import type { Class } from '../types.js'; | ||
/** | ||
@@ -17,2 +17,2 @@ * @name isChildClass | ||
*/ | ||
export declare function isChildClass<P extends Constructor>(Parent: P, Child?: unknown): Child is P; | ||
export declare function isChildClass<P extends Class>(Parent: P, Child?: unknown): Child is P; |
@@ -1,2 +0,2 @@ | ||
import type { Constructor } from '../types.js'; | ||
import type { Class } from '../types.js'; | ||
/** | ||
@@ -6,2 +6,2 @@ * @name isClass | ||
*/ | ||
export declare const isClass: <T extends Constructor>(value?: unknown) => value is T; | ||
export declare const isClass: <T extends Class>(value?: unknown) => value is T; |
@@ -86,5 +86,5 @@ import { xglobal } from '@polkadot/x-global'; | ||
const env = (hasProcess ? xglobal.process : {}).env || {}; | ||
const maxSize = parseInt(env.DEBUG_MAX || '-1', 10); | ||
const maxSize = parseInt(env['DEBUG_MAX'] || '-1', 10); | ||
return [ | ||
getDebugFlag((env.DEBUG || '').toLowerCase().split(','), type), | ||
getDebugFlag((env['DEBUG'] || '').toLowerCase().split(','), type), | ||
isNaN(maxSize) | ||
@@ -91,0 +91,0 @@ ? -1 |
@@ -21,3 +21,3 @@ { | ||
"type": "module", | ||
"version": "12.2.2", | ||
"version": "12.3.1", | ||
"main": "./cjs/index.js", | ||
@@ -877,6 +877,6 @@ "module": "./index.js", | ||
"dependencies": { | ||
"@polkadot/x-bigint": "12.2.2", | ||
"@polkadot/x-global": "12.2.2", | ||
"@polkadot/x-textdecoder": "12.2.2", | ||
"@polkadot/x-textencoder": "12.2.2", | ||
"@polkadot/x-bigint": "12.3.1", | ||
"@polkadot/x-global": "12.3.1", | ||
"@polkadot/x-textdecoder": "12.3.1", | ||
"@polkadot/x-textencoder": "12.3.1", | ||
"@types/bn.js": "^5.1.1", | ||
@@ -883,0 +883,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.2.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.3.1' }; |
/// <reference types="bn.js" /> | ||
import type { BN } from './bn/bn.js'; | ||
export interface Constructor<T = any> { | ||
export interface Class<T = any, A extends unknown[] = any[]> { | ||
prototype: T; | ||
new (...args: any[]): T; | ||
new (...args: A): T; | ||
hasOwnProperty(prop: string): boolean; | ||
@@ -60,3 +60,3 @@ isPrototypeOf(other: unknown): boolean; | ||
} | ||
export interface BufferObjConstructor extends Constructor<BufferObj> { | ||
export interface BufferObjClass extends Class<BufferObj> { | ||
isBuffer: (value: unknown) => boolean; | ||
@@ -63,0 +63,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
544679
+ Added@polkadot/x-bigint@12.3.1(transitive)
+ Added@polkadot/x-global@12.3.1(transitive)
+ Added@polkadot/x-textdecoder@12.3.1(transitive)
+ Added@polkadot/x-textencoder@12.3.1(transitive)
- Removed@polkadot/x-bigint@12.2.2(transitive)
- Removed@polkadot/x-global@12.2.2(transitive)
- Removed@polkadot/x-textdecoder@12.2.2(transitive)
- Removed@polkadot/x-textencoder@12.2.2(transitive)
Updated@polkadot/x-bigint@12.3.1
Updated@polkadot/x-global@12.3.1