Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@polkadot/util

Package Overview
Dependencies
Maintainers
2
Versions
1411
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/util - npm Package Compare versions

Comparing version 11.1.4-12 to 12.0.1

2

bn/min.d.ts
/// <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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc