@polkadot/util
Advanced tools
Comparing version 9.4.2-8 to 9.4.2-9
// Copyright 2017-2022 @polkadot/util authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
import { createCmp } from "./helpers.js"; | ||
/** @internal */ | ||
function gt(a, b) { | ||
return a > b; | ||
} | ||
/** @internal */ | ||
function lt(a, b) { | ||
return a < b; | ||
} | ||
/** | ||
@@ -20,4 +9,3 @@ * @name nMax | ||
export const nMax = createCmp(gt); | ||
export const nMax = createCmp((a, b) => a > b); | ||
/** | ||
@@ -28,2 +16,2 @@ * @name nMin | ||
export const nMin = createCmp(lt); | ||
export const nMin = createCmp((a, b) => a < b); |
@@ -5,12 +5,2 @@ // Copyright 2017-2022 @polkadot/util authors & contributors | ||
/** @internal */ | ||
function gt(a, b) { | ||
return a.gt(b); | ||
} | ||
/** @internal */ | ||
function lt(a, b) { | ||
return a.lt(b); | ||
} | ||
/** | ||
@@ -29,5 +19,3 @@ * @name bnMax | ||
*/ | ||
export const bnMax = createCmp(gt); | ||
export const bnMax = createCmp((a, b) => a.gt(b)); | ||
/** | ||
@@ -47,2 +35,2 @@ * @name bnMin | ||
export const bnMin = createCmp(lt); | ||
export const bnMin = createCmp((a, b) => a.lt(b)); |
@@ -13,12 +13,2 @@ "use strict"; | ||
/** @internal */ | ||
function gt(a, b) { | ||
return a > b; | ||
} | ||
/** @internal */ | ||
function lt(a, b) { | ||
return a < b; | ||
} | ||
/** | ||
@@ -28,5 +18,3 @@ * @name nMax | ||
*/ | ||
const nMax = (0, _helpers.createCmp)(gt); | ||
const nMax = (0, _helpers.createCmp)((a, b) => a > b); | ||
/** | ||
@@ -38,3 +26,3 @@ * @name nMin | ||
exports.nMax = nMax; | ||
const nMin = (0, _helpers.createCmp)(lt); | ||
const nMin = (0, _helpers.createCmp)((a, b) => a < b); | ||
exports.nMin = nMin; |
@@ -13,12 +13,2 @@ "use strict"; | ||
/** @internal */ | ||
function gt(a, b) { | ||
return a.gt(b); | ||
} | ||
/** @internal */ | ||
function lt(a, b) { | ||
return a.lt(b); | ||
} | ||
/** | ||
@@ -37,5 +27,3 @@ * @name bnMax | ||
*/ | ||
const bnMax = (0, _helpers.createCmp)(gt); | ||
const bnMax = (0, _helpers.createCmp)((a, b) => a.gt(b)); | ||
/** | ||
@@ -56,3 +44,3 @@ * @name bnMin | ||
exports.bnMax = bnMax; | ||
const bnMin = (0, _helpers.createCmp)(lt); | ||
const bnMin = (0, _helpers.createCmp)((a, b) => a.lt(b)); | ||
exports.bnMin = bnMin; |
@@ -14,4 +14,4 @@ "use strict"; | ||
type: 'cjs', | ||
version: '9.4.2-8' | ||
version: '9.4.2-9' | ||
}; | ||
exports.packageInfo = packageInfo; |
@@ -23,3 +23,3 @@ { | ||
"type": "module", | ||
"version": "9.4.2-8", | ||
"version": "9.4.2-9", | ||
"main": "./cjs/index.js", | ||
@@ -703,6 +703,6 @@ "module": "./index.js", | ||
"@babel/runtime": "^7.18.3", | ||
"@polkadot/x-bigint": "9.4.2-8", | ||
"@polkadot/x-global": "9.4.2-8", | ||
"@polkadot/x-textdecoder": "9.4.2-8", | ||
"@polkadot/x-textencoder": "9.4.2-8", | ||
"@polkadot/x-bigint": "9.4.2-9", | ||
"@polkadot/x-global": "9.4.2-9", | ||
"@polkadot/x-textdecoder": "9.4.2-9", | ||
"@polkadot/x-textencoder": "9.4.2-9", | ||
"@types/bn.js": "^5.1.0", | ||
@@ -709,0 +709,0 @@ "bn.js": "^5.2.1", |
@@ -8,3 +8,3 @@ // Copyright 2017-2022 @polkadot/util authors & contributors | ||
type: 'esm', | ||
version: '9.4.2-8' | ||
version: '9.4.2-9' | ||
}; |
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
505746
14549
+ Added@polkadot/x-bigint@9.4.2-9(transitive)
+ Added@polkadot/x-global@9.4.2-9(transitive)
+ Added@polkadot/x-textdecoder@9.4.2-9(transitive)
+ Added@polkadot/x-textencoder@9.4.2-9(transitive)
- Removed@polkadot/x-bigint@9.4.2-8(transitive)
- Removed@polkadot/x-global@9.4.2-8(transitive)
- Removed@polkadot/x-textdecoder@9.4.2-8(transitive)
- Removed@polkadot/x-textencoder@9.4.2-8(transitive)
Updated@polkadot/x-bigint@9.4.2-9
Updated@polkadot/x-global@9.4.2-9