@pezkuwi/util 14.0.5 → 14.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/README.md +4 -4
  2. package/array/chunk.d.ts +1 -1
  3. package/array/filter.d.ts +1 -1
  4. package/array/flatten.d.ts +1 -1
  5. package/array/range.d.ts +1 -1
  6. package/assert.d.ts +1 -1
  7. package/bn/min.d.ts +2 -2
  8. package/bn/sqrt.d.ts +1 -1
  9. package/bn/toBn.d.ts +1 -1
  10. package/bn/toHex.d.ts +1 -1
  11. package/bn/toU8a.d.ts +1 -1
  12. package/buffer/toU8a.d.ts +1 -1
  13. package/{bundle-polkadot-util.js → bundle-pezkuwi-util.js} +5 -5
  14. package/cjs/array/chunk.d.ts +1 -1
  15. package/cjs/array/filter.d.ts +1 -1
  16. package/cjs/array/flatten.d.ts +1 -1
  17. package/cjs/array/range.d.ts +1 -1
  18. package/cjs/assert.d.ts +1 -1
  19. package/cjs/bn/min.d.ts +2 -2
  20. package/cjs/bn/sqrt.d.ts +1 -1
  21. package/cjs/bn/toBn.d.ts +1 -1
  22. package/cjs/bn/toHex.d.ts +1 -1
  23. package/cjs/bn/toU8a.d.ts +1 -1
  24. package/cjs/buffer/toU8a.d.ts +1 -1
  25. package/cjs/compact/addLength.d.ts +1 -1
  26. package/cjs/compact/fromU8a.d.ts +1 -1
  27. package/cjs/compact/stripLength.d.ts +1 -1
  28. package/cjs/compact/toU8a.d.ts +1 -1
  29. package/cjs/detectPackage.d.ts +1 -1
  30. package/cjs/extractTime.d.ts +1 -1
  31. package/cjs/hex/addPrefix.d.ts +1 -1
  32. package/cjs/hex/fixLength.d.ts +1 -1
  33. package/cjs/hex/hasPrefix.d.ts +1 -1
  34. package/cjs/hex/stripPrefix.d.ts +1 -1
  35. package/cjs/hex/toBn.d.ts +1 -1
  36. package/cjs/hex/toNumber.d.ts +1 -1
  37. package/cjs/hex/toString.d.ts +1 -1
  38. package/cjs/hex/toU8a.d.ts +1 -1
  39. package/cjs/hex/toU8aBuffer.d.ts +1 -1
  40. package/cjs/is/bigInt.d.ts +1 -1
  41. package/cjs/is/bn.d.ts +1 -1
  42. package/cjs/is/boolean.d.ts +1 -1
  43. package/cjs/is/buffer.d.ts +1 -1
  44. package/cjs/is/childClass.d.ts +1 -1
  45. package/cjs/is/error.d.ts +1 -1
  46. package/cjs/is/function.d.ts +1 -1
  47. package/cjs/is/hex.d.ts +1 -1
  48. package/cjs/is/instanceOf.d.ts +1 -1
  49. package/cjs/is/ip.d.ts +1 -1
  50. package/cjs/is/jsonObject.d.ts +1 -1
  51. package/cjs/is/null.d.ts +1 -1
  52. package/cjs/is/number.d.ts +1 -1
  53. package/cjs/is/object.d.ts +1 -1
  54. package/cjs/is/observable.d.ts +1 -1
  55. package/cjs/is/string.d.ts +1 -1
  56. package/cjs/is/u8a.d.ts +1 -1
  57. package/cjs/is/undefined.d.ts +1 -1
  58. package/cjs/logger.d.ts +1 -1
  59. package/cjs/number/toHex.d.ts +1 -1
  60. package/cjs/number/toU8a.d.ts +1 -1
  61. package/cjs/packageInfo.js +1 -1
  62. package/cjs/promisify.d.ts +1 -1
  63. package/cjs/string/lowerFirst.d.ts +2 -2
  64. package/cjs/string/shorten.d.ts +1 -1
  65. package/cjs/string/toHex.d.ts +1 -1
  66. package/cjs/string/toU8a.d.ts +1 -1
  67. package/cjs/u8a/cmp.d.ts +1 -1
  68. package/cjs/u8a/concat.d.ts +1 -1
  69. package/cjs/u8a/concatBuffer.d.ts +1 -1
  70. package/cjs/u8a/eq.d.ts +1 -1
  71. package/cjs/u8a/fixLength.d.ts +1 -1
  72. package/cjs/u8a/sorted.d.ts +1 -1
  73. package/cjs/u8a/toBn.d.ts +1 -1
  74. package/cjs/u8a/toBuffer.d.ts +1 -1
  75. package/cjs/u8a/toHex.d.ts +1 -1
  76. package/cjs/u8a/toHexBuffer.d.ts +1 -1
  77. package/cjs/u8a/toString.d.ts +1 -1
  78. package/cjs/u8a/toU8a.d.ts +1 -1
  79. package/compact/addLength.d.ts +1 -1
  80. package/compact/fromU8a.d.ts +1 -1
  81. package/compact/stripLength.d.ts +1 -1
  82. package/compact/toU8a.d.ts +1 -1
  83. package/detectPackage.d.ts +1 -1
  84. package/extractTime.d.ts +1 -1
  85. package/hex/addPrefix.d.ts +1 -1
  86. package/hex/fixLength.d.ts +1 -1
  87. package/hex/hasPrefix.d.ts +1 -1
  88. package/hex/stripPrefix.d.ts +1 -1
  89. package/hex/toBn.d.ts +1 -1
  90. package/hex/toNumber.d.ts +1 -1
  91. package/hex/toString.d.ts +1 -1
  92. package/hex/toU8a.d.ts +1 -1
  93. package/hex/toU8aBuffer.d.ts +1 -1
  94. package/is/bigInt.d.ts +1 -1
  95. package/is/bn.d.ts +1 -1
  96. package/is/boolean.d.ts +1 -1
  97. package/is/buffer.d.ts +1 -1
  98. package/is/childClass.d.ts +1 -1
  99. package/is/error.d.ts +1 -1
  100. package/is/function.d.ts +1 -1
  101. package/is/hex.d.ts +1 -1
  102. package/is/instanceOf.d.ts +1 -1
  103. package/is/ip.d.ts +1 -1
  104. package/is/jsonObject.d.ts +1 -1
  105. package/is/null.d.ts +1 -1
  106. package/is/number.d.ts +1 -1
  107. package/is/object.d.ts +1 -1
  108. package/is/observable.d.ts +1 -1
  109. package/is/string.d.ts +1 -1
  110. package/is/u8a.d.ts +1 -1
  111. package/is/undefined.d.ts +1 -1
  112. package/logger.d.ts +1 -1
  113. package/number/toHex.d.ts +1 -1
  114. package/number/toU8a.d.ts +1 -1
  115. package/package.json +9 -9
  116. package/packageInfo.js +1 -1
  117. package/promisify.d.ts +1 -1
  118. package/string/lowerFirst.d.ts +2 -2
  119. package/string/shorten.d.ts +1 -1
  120. package/string/toHex.d.ts +1 -1
  121. package/string/toU8a.d.ts +1 -1
  122. package/u8a/cmp.d.ts +1 -1
  123. package/u8a/concat.d.ts +1 -1
  124. package/u8a/concatBuffer.d.ts +1 -1
  125. package/u8a/eq.d.ts +1 -1
  126. package/u8a/fixLength.d.ts +1 -1
  127. package/u8a/sorted.d.ts +1 -1
  128. package/u8a/toBn.d.ts +1 -1
  129. package/u8a/toBuffer.d.ts +1 -1
  130. package/u8a/toHex.d.ts +1 -1
  131. package/u8a/toHexBuffer.d.ts +1 -1
  132. package/u8a/toString.d.ts +1 -1
  133. package/u8a/toU8a.d.ts +1 -1
package/README.md CHANGED
@@ -1,17 +1,17 @@
1
- # @polkadot/util
1
+ # @pezkuwi/util
2
2
 
3
- Various useful utility functions that are used across all projects in the [@polkadot](https://polkadot.js.org) namespace. It provides utility functions with additional safety checks, allowing not only for consistent coding, but also reducing the general boilerplate.
3
+ Various useful utility functions that are used across all projects in the [@pezkuwi](https://pezkuwi.js.org) namespace. It provides utility functions with additional safety checks, allowing not only for consistent coding, but also reducing the general boilerplate.
4
4
 
5
5
  ## Usage
6
6
 
7
7
  Installation -
8
8
 
9
9
  ```
10
- yarn add @polkadot/util
10
+ yarn add @pezkuwi/util
11
11
  ```
12
12
 
13
13
  Functions can be imported directly from the package, e.g.
14
14
 
15
15
  ```js
16
- import { isHex } from '@polkadot/util';
16
+ import { isHex } from '@pezkuwi/util';
17
17
  ```
package/array/chunk.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { arrayChunk } from '@polkadot/util';
10
+ * import { arrayChunk } from '@pezkuwi/util';
11
11
  *
12
12
  * arrayChunk([1, 2, 3, 4, 5]); // [[1, 2], [3, 4], [5]]
13
13
  * ```
package/array/filter.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { arrayFilter } from '@polkadot/util';
10
+ * import { arrayFilter } from '@pezkuwi/util';
11
11
  *
12
12
  * arrayFilter([0, void 0, true, null, false, '']); // [0, true, null, false, '']
13
13
  * arrayFilter([0, void 0, true, null, false, ''], false); // [0, true, false, '']
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { arrayFlatten } from '@polkadot/util';
10
+ * import { arrayFlatten } from '@pezkuwi/util';
11
11
  *
12
12
  * arrayFlatten([[1, 2], [3, 4], [5]]); // [1, 2, 3, 4, 5]
13
13
  * ```
package/array/range.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { arrayRange } from '@polkadot/util';
10
+ * import { arrayRange } from '@pezkuwi/util';
11
11
  *
12
12
  * arrayRange(5); // [0, 1, 2, 3, 4]
13
13
  * arrayRange(3, 5); // [5, 6, 7]
package/assert.d.ts CHANGED
@@ -8,7 +8,7 @@ type MessageFn = () => string;
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * const { assert } from '@polkadot/util';
11
+ * const { assert } from '@pezkuwi/util';
12
12
  *
13
13
  * assert(true, 'True should be true'); // passes
14
14
  * assert(false, 'False should not be true'); // Error thrown
package/bn/min.d.ts CHANGED
@@ -7,7 +7,7 @@ import type { BN } from './bn.js';
7
7
  *
8
8
  * ```javascript
9
9
  * import BN from 'bn.js';
10
- * import { bnMax } from '@polkadot/util';
10
+ * import { bnMax } from '@pezkuwi/util';
11
11
  *
12
12
  * bnMax([new BN(1), new BN(3), new BN(2)]).toString(); // => '3'
13
13
  * ```
@@ -21,7 +21,7 @@ export declare const bnMax: (...items: BN[]) => BN;
21
21
  *
22
22
  * ```javascript
23
23
  * import BN from 'bn.js';
24
- * import { bnMin } from '@polkadot/util';
24
+ * import { bnMin } from '@pezkuwi/util';
25
25
  *
26
26
  * bnMin([new BN(1), new BN(3), new BN(2)]).toString(); // => '1'
27
27
  * ```
package/bn/sqrt.d.ts CHANGED
@@ -8,7 +8,7 @@ import { BN } from './bn.js';
8
8
  *
9
9
  * ```javascript
10
10
  * import BN from 'bn.js';
11
- * import { bnSqrt } from '@polkadot/util';
11
+ * import { bnSqrt } from '@pezkuwi/util';
12
12
  *
13
13
  * bnSqrt(new BN(16)).toString(); // => '4'
14
14
  * ```
package/bn/toBn.d.ts CHANGED
@@ -10,7 +10,7 @@ import { BN } from './bn.js';
10
10
  *
11
11
  * ```javascript
12
12
  * import BN from 'bn.js';
13
- * import { bnToBn } from '@polkadot/util';
13
+ * import { bnToBn } from '@pezkuwi/util';
14
14
  *
15
15
  * bnToBn(0x1234); // => BN(0x1234)
16
16
  * bnToBn(new BN(0x1234)); // => BN(0x1234)
package/bn/toHex.d.ts CHANGED
@@ -10,7 +10,7 @@ import type { BN } from './bn.js';
10
10
  *
11
11
  * ```javascript
12
12
  * import BN from 'bn.js';
13
- * import { bnToHex } from '@polkadot/util';
13
+ * import { bnToHex } from '@pezkuwi/util';
14
14
  *
15
15
  * bnToHex(new BN(0x123456)); // => '0x123456'
16
16
  * ```
package/bn/toU8a.d.ts CHANGED
@@ -9,7 +9,7 @@ import type { BN } from './bn.js';
9
9
  * <BR>
10
10
  *
11
11
  * ```javascript
12
- * import { bnToU8a } from '@polkadot/util';
12
+ * import { bnToU8a } from '@pezkuwi/util';
13
13
  *
14
14
  * bnToU8a(new BN(0x1234)); // => [0x12, 0x34]
15
15
  * ```
package/buffer/toU8a.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { bufferToU8a } from '@polkadot/util';
10
+ * import { bufferToU8a } from '@pezkuwi/util';
11
11
  *
12
12
  * bufferToU8a(Buffer.from([1, 2, 3]));
13
13
  * ```
@@ -1,13 +1,13 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
3
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.polkadotUtil = {}));
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.pezkuwiUtil = {}));
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
7
7
  const global = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : window;
8
8
 
9
9
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
10
- const packageInfo$3 = { name: '@pezkuwi/util', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-util.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-util.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-util.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-util.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.1' };
10
+ const packageInfo$3 = { name: '@pezkuwi/util', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.6' };
11
11
 
12
12
  function arrayChunk(array, chunkSize) {
13
13
  const outputSize = Math.ceil(array.length / chunkSize);
@@ -132,7 +132,7 @@
132
132
  const nMax = createCmp((a, b) => a > b);
133
133
  const nMin = createCmp((a, b) => a < b);
134
134
 
135
- const packageInfo$2 = { name: '@pezkuwi/x-global', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-util.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-util.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-util.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-polkadot-util.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.1' };
135
+ const packageInfo$2 = { name: '@pezkuwi/x-global', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.6' };
136
136
 
137
137
  function evaluateThis(fn) {
138
138
  return fn('return this');
@@ -3121,7 +3121,7 @@
3121
3121
 
3122
3122
  Object.defineProperty(packageInfo$1, "__esModule", { value: true });
3123
3123
  packageInfo$1.packageInfo = void 0;
3124
- packageInfo$1.packageInfo = { name: '@pezkuwi/x-textencoder', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.1' };
3124
+ packageInfo$1.packageInfo = { name: '@pezkuwi/x-textencoder', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.6' };
3125
3125
 
3126
3126
  (function (exports) {
3127
3127
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -3429,7 +3429,7 @@
3429
3429
 
3430
3430
  Object.defineProperty(packageInfo, "__esModule", { value: true });
3431
3431
  packageInfo.packageInfo = void 0;
3432
- packageInfo.packageInfo = { name: '@pezkuwi/x-textdecoder', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.1' };
3432
+ packageInfo.packageInfo = { name: '@pezkuwi/x-textdecoder', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.6' };
3433
3433
 
3434
3434
  (function (exports) {
3435
3435
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { arrayChunk } from '@polkadot/util';
10
+ * import { arrayChunk } from '@pezkuwi/util';
11
11
  *
12
12
  * arrayChunk([1, 2, 3, 4, 5]); // [[1, 2], [3, 4], [5]]
13
13
  * ```
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { arrayFilter } from '@polkadot/util';
10
+ * import { arrayFilter } from '@pezkuwi/util';
11
11
  *
12
12
  * arrayFilter([0, void 0, true, null, false, '']); // [0, true, null, false, '']
13
13
  * arrayFilter([0, void 0, true, null, false, ''], false); // [0, true, false, '']
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { arrayFlatten } from '@polkadot/util';
10
+ * import { arrayFlatten } from '@pezkuwi/util';
11
11
  *
12
12
  * arrayFlatten([[1, 2], [3, 4], [5]]); // [1, 2, 3, 4, 5]
13
13
  * ```
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { arrayRange } from '@polkadot/util';
10
+ * import { arrayRange } from '@pezkuwi/util';
11
11
  *
12
12
  * arrayRange(5); // [0, 1, 2, 3, 4]
13
13
  * arrayRange(3, 5); // [5, 6, 7]
package/cjs/assert.d.ts CHANGED
@@ -8,7 +8,7 @@ type MessageFn = () => string;
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * const { assert } from '@polkadot/util';
11
+ * const { assert } from '@pezkuwi/util';
12
12
  *
13
13
  * assert(true, 'True should be true'); // passes
14
14
  * assert(false, 'False should not be true'); // Error thrown
package/cjs/bn/min.d.ts CHANGED
@@ -7,7 +7,7 @@ import type { BN } from './bn.js';
7
7
  *
8
8
  * ```javascript
9
9
  * import BN from 'bn.js';
10
- * import { bnMax } from '@polkadot/util';
10
+ * import { bnMax } from '@pezkuwi/util';
11
11
  *
12
12
  * bnMax([new BN(1), new BN(3), new BN(2)]).toString(); // => '3'
13
13
  * ```
@@ -21,7 +21,7 @@ export declare const bnMax: (...items: BN[]) => BN;
21
21
  *
22
22
  * ```javascript
23
23
  * import BN from 'bn.js';
24
- * import { bnMin } from '@polkadot/util';
24
+ * import { bnMin } from '@pezkuwi/util';
25
25
  *
26
26
  * bnMin([new BN(1), new BN(3), new BN(2)]).toString(); // => '1'
27
27
  * ```
package/cjs/bn/sqrt.d.ts CHANGED
@@ -8,7 +8,7 @@ import { BN } from './bn.js';
8
8
  *
9
9
  * ```javascript
10
10
  * import BN from 'bn.js';
11
- * import { bnSqrt } from '@polkadot/util';
11
+ * import { bnSqrt } from '@pezkuwi/util';
12
12
  *
13
13
  * bnSqrt(new BN(16)).toString(); // => '4'
14
14
  * ```
package/cjs/bn/toBn.d.ts CHANGED
@@ -10,7 +10,7 @@ import { BN } from './bn.js';
10
10
  *
11
11
  * ```javascript
12
12
  * import BN from 'bn.js';
13
- * import { bnToBn } from '@polkadot/util';
13
+ * import { bnToBn } from '@pezkuwi/util';
14
14
  *
15
15
  * bnToBn(0x1234); // => BN(0x1234)
16
16
  * bnToBn(new BN(0x1234)); // => BN(0x1234)
package/cjs/bn/toHex.d.ts CHANGED
@@ -10,7 +10,7 @@ import type { BN } from './bn.js';
10
10
  *
11
11
  * ```javascript
12
12
  * import BN from 'bn.js';
13
- * import { bnToHex } from '@polkadot/util';
13
+ * import { bnToHex } from '@pezkuwi/util';
14
14
  *
15
15
  * bnToHex(new BN(0x123456)); // => '0x123456'
16
16
  * ```
package/cjs/bn/toU8a.d.ts CHANGED
@@ -9,7 +9,7 @@ import type { BN } from './bn.js';
9
9
  * <BR>
10
10
  *
11
11
  * ```javascript
12
- * import { bnToU8a } from '@polkadot/util';
12
+ * import { bnToU8a } from '@pezkuwi/util';
13
13
  *
14
14
  * bnToU8a(new BN(0x1234)); // => [0x12, 0x34]
15
15
  * ```
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { bufferToU8a } from '@polkadot/util';
10
+ * import { bufferToU8a } from '@pezkuwi/util';
11
11
  *
12
12
  * bufferToU8a(Buffer.from([1, 2, 3]));
13
13
  * ```
@@ -5,7 +5,7 @@
5
5
  * <BR>
6
6
  *
7
7
  * ```javascript
8
- * import { compactAddLength } from '@polkadot/util';
8
+ * import { compactAddLength } from '@pezkuwi/util';
9
9
  *
10
10
  * console.log(compactAddLength(new Uint8Array([0xde, 0xad, 0xbe, 0xef]))); // Uint8Array([4 << 2, 0xde, 0xad, 0xbe, 0xef])
11
11
  * ```
@@ -7,7 +7,7 @@ import { BN } from '../bn/index.js';
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { compactFromU8a } from '@polkadot/util';
10
+ * import { compactFromU8a } from '@pezkuwi/util';
11
11
  *
12
12
  * const [offset, length] = compactFromU8a(new Uint8Array([254, 255, 3, 0]));
13
13
  *
@@ -5,7 +5,7 @@
5
5
  * <BR>
6
6
  *
7
7
  * ```javascript
8
- * import { compactStripLength } from '@polkadot/util';
8
+ * import { compactStripLength } from '@pezkuwi/util';
9
9
  *
10
10
  * console.log(compactStripLength(new Uint8Array([2 << 2, 0xde, 0xad]))); // [2, Uint8Array[0xde, 0xad]]
11
11
  * ```
@@ -6,7 +6,7 @@ import { BN } from '../bn/index.js';
6
6
  * <BR>
7
7
  *
8
8
  * ```javascript
9
- * import { compactToU8a } from '@polkadot/util';
9
+ * import { compactToU8a } from '@pezkuwi/util';
10
10
  *
11
11
  * console.log(compactToU8a(511, 32)); // Uint8Array([0b11111101, 0b00000111])
12
12
  * ```
@@ -11,7 +11,7 @@ export declare const POLKADOTJS_DISABLE_ESM_CJS_WARNING_FLAG = "POLKADOTJS_DISAB
11
11
  /**
12
12
  * @name detectPackage
13
13
  * @summary Checks that a specific package is only imported once
14
- * @description A `@polkadot/*` version detection utility, checking for one occurrence of a package in addition to checking for dependency versions.
14
+ * @description A `@pezkuwi/*` version detection utility, checking for one occurrence of a package in addition to checking for dependency versions.
15
15
  */
16
16
  export declare function detectPackage({ name, path, type, version }: PackageInfo, pathOrFn?: FnString | string | false | null, deps?: PackageInfo[]): void;
17
17
  export {};
@@ -6,7 +6,7 @@ import type { Time } from './types.js';
6
6
  * <BR>
7
7
  *
8
8
  * ```javascript
9
- * import { extractTime } from '@polkadot/util';
9
+ * import { extractTime } from '@pezkuwi/util';
10
10
  *
11
11
  * const { days, minutes, hours, seconds, milliseconds } = extractTime(6000); // 0, 0, 10, 0, 0
12
12
  * ```
@@ -8,7 +8,7 @@ import type { HexString } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { hexAddPrefix } from '@polkadot/util';
11
+ * import { hexAddPrefix } from '@pezkuwi/util';
12
12
  *
13
13
  * console.log('With prefix', hexAddPrefix('0a0b12')); // => 0x0a0b12
14
14
  * ```
@@ -8,7 +8,7 @@ import type { HexString } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { hexFixLength } from '@polkadot/util';
11
+ * import { hexFixLength } from '@pezkuwi/util';
12
12
  *
13
13
  * console.log('fixed', hexFixLength('0x12', 16)); // => 0x12
14
14
  * console.log('fixed', hexFixLength('0x12', 16, true)); // => 0x0012
@@ -8,7 +8,7 @@ import type { HexString } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { hexHasPrefix } from '@polkadot/util';
11
+ * import { hexHasPrefix } from '@pezkuwi/util';
12
12
  *
13
13
  * console.log('has prefix', hexHasPrefix('0x1234')); // => true
14
14
  * ```
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { hexStripPrefix } from '@polkadot/util';
10
+ * import { hexStripPrefix } from '@pezkuwi/util';
11
11
  *
12
12
  * console.log('stripped', hexStripPrefix('0x1234')); // => 1234
13
13
  * ```
package/cjs/hex/toBn.d.ts CHANGED
@@ -13,7 +13,7 @@ import { BN } from '../bn/bn.js';
13
13
  * <BR>
14
14
  *
15
15
  * ```javascript
16
- * import { hexToBn } from '@polkadot/util';
16
+ * import { hexToBn } from '@pezkuwi/util';
17
17
  *
18
18
  * hexToBn('0x123480001f'); // => BN(0x123480001f)
19
19
  * ```
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { hexToNumber } from '@polkadot/util';
10
+ * import { hexToNumber } from '@pezkuwi/util';
11
11
  *
12
12
  * hexToNumber('0x1234'); // => 0x1234
13
13
  * ```
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { hexToString } from '@polkadot/util';
10
+ * import { hexToString } from '@pezkuwi/util';
11
11
  *
12
12
  * hexToU8a('0x68656c6c6f'); // hello
13
13
  * ```
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { hexToU8a } from '@polkadot/util';
10
+ * import { hexToU8a } from '@pezkuwi/util';
11
11
  *
12
12
  * hexToU8a('0x80001f'); // Uint8Array([0x80, 0x00, 0x1f])
13
13
  * hexToU8a('0x80001f', 32); // Uint8Array([0x00, 0x80, 0x00, 0x1f])
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { hexToU8a } from '@polkadot/util';
10
+ * import { hexToU8a } from '@pezkuwi/util';
11
11
  *
12
12
  * hexToU8a('0x80001f'); // Uint8Array([0x80, 0x00, 0x1f])
13
13
  * hexToU8a('0x80001f', 32); // Uint8Array([0x00, 0x80, 0x00, 0x1f])
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { isBigInt } from '@polkadot/util';
10
+ * import { isBigInt } from '@pezkuwi/util';
11
11
  *
12
12
  * console.log('isBigInt', isBigInt(123_456n)); // => true
13
13
  * ```
package/cjs/is/bn.d.ts CHANGED
@@ -9,7 +9,7 @@ import { BN } from '../bn/bn.js';
9
9
  *
10
10
  * ```javascript
11
11
  * import BN from 'bn.js';
12
- * import { isBn } from '@polkadot/util';
12
+ * import { isBn } from '@pezkuwi/util';
13
13
  *
14
14
  * console.log('isBn', isBn(new BN(1))); // => true
15
15
  * ```
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { isBoolean } from '@polkadot/util';
10
+ * import { isBoolean } from '@pezkuwi/util';
11
11
  *
12
12
  * isBoolean(false); // => true
13
13
  * ```
@@ -8,7 +8,7 @@ import type { BufferObject } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { isBuffer } from '@polkadot/util';
11
+ * import { isBuffer } from '@pezkuwi/util';
12
12
  *
13
13
  * console.log('isBuffer', isBuffer(Buffer.from([]))); // => true
14
14
  * ```
@@ -8,7 +8,7 @@ import type { Class } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { isChildClass } from '@polkadot/util';
11
+ * import { isChildClass } from '@pezkuwi/util';
12
12
  *
13
13
  * console.log('isChildClass', isChildClass(BN, BN); // => true
14
14
  * console.log('isChildClass', isChildClass(BN, Uint8Array); // => false
package/cjs/is/error.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { isError } from '@polkadot/util';
10
+ * import { isError } from '@pezkuwi/util';
11
11
  *
12
12
  * console.log('isError', isError(new Error('message'))); // => true
13
13
  * ```
@@ -8,7 +8,7 @@ type FnType = Function;
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { isFunction } from '@polkadot/util';
11
+ * import { isFunction } from '@pezkuwi/util';
12
12
  *
13
13
  * isFunction(() => false); // => true
14
14
  * ```
package/cjs/is/hex.d.ts CHANGED
@@ -10,7 +10,7 @@ export declare const REGEX_HEX_NOPREFIX: RegExp;
10
10
  * <BR>
11
11
  *
12
12
  * ```javascript
13
- * import { isHex } from '@polkadot/util';
13
+ * import { isHex } from '@pezkuwi/util';
14
14
  *
15
15
  * isHex('0x1234'); // => true
16
16
  * isHex('0x1234', 8); // => false
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { isInstanceOf } from '@polkadot/util';
10
+ * import { isInstanceOf } from '@pezkuwi/util';
11
11
  *
12
12
  * console.log('isInstanceOf', isInstanceOf(new Array(0), Array)); // => true
13
13
  * ```
package/cjs/is/ip.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { isIp } from '@polkadot/util';
10
+ * import { isIp } from '@pezkuwi/util';
11
11
  *
12
12
  * isIp('192.168.0.1')); // => true
13
13
  * isIp('1:2:3:4:5:6:7:8'); // => true
@@ -9,7 +9,7 @@ type ObjectIndexed = Record<string, any>;
9
9
  * <BR>
10
10
  *
11
11
  * ```javascript
12
- * import { isJsonObject } from '@polkadot/util';
12
+ * import { isJsonObject } from '@pezkuwi/util';
13
13
  *
14
14
  * isJsonObject({}); // => true
15
15
  * isJsonObject({
package/cjs/is/null.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { isNull } from '@polkadot/util';
10
+ * import { isNull } from '@pezkuwi/util';
11
11
  *
12
12
  * console.log('isNull', isNull(null)); // => true
13
13
  * ```
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { isNumber } from '@polkadot/util';
10
+ * import { isNumber } from '@pezkuwi/util';
11
11
  *
12
12
  * console.log('isNumber', isNumber(1234)); // => true
13
13
  * ```
@@ -8,7 +8,7 @@ type ObjectIndexed = Record<string, any>;
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { isObject } from '@polkadot/util';
11
+ * import { isObject } from '@pezkuwi/util';
12
12
  *
13
13
  * isObject({}); // => true
14
14
  * isObject('something'); // => false
@@ -8,7 +8,7 @@ import type { Observable } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { isObservable } from '@polkadot/util';
11
+ * import { isObservable } from '@pezkuwi/util';
12
12
  *
13
13
  * console.log('isObservable', isObservable(...));
14
14
  * ```
@@ -8,7 +8,7 @@ import type { AnyString } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { isString } from '@polkadot/util';
11
+ * import { isString } from '@pezkuwi/util';
12
12
  *
13
13
  * console.log('isString', isString('test')); // => true
14
14
  * ```