@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/cjs/is/u8a.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { isUint8Array } from '@polkadot/util';
10
+ * import { isUint8Array } from '@pezkuwi/util';
11
11
  *
12
12
  * console.log('isU8a', isU8a([])); // => false
13
13
  * ```
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { isUndefined } from '@polkadot/util';
10
+ * import { isUndefined } from '@pezkuwi/util';
11
11
  *
12
12
  * console.log('isUndefined', isUndefined(void(0))); // => true
13
13
  * ```
package/cjs/logger.d.ts CHANGED
@@ -9,7 +9,7 @@ export declare function loggerFormat(value: unknown): unknown;
9
9
  * <BR>
10
10
  *
11
11
  * ```javascript
12
- * import { logger } from '@polkadot/util';
12
+ * import { logger } from '@pezkuwi/util';
13
13
  *
14
14
  * const l = logger('test');
15
15
  * ```
@@ -8,7 +8,7 @@ import type { HexString } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { numberToHex } from '@polkadot/util';
11
+ * import { numberToHex } from '@pezkuwi/util';
12
12
  *
13
13
  * numberToHex(0x1234); // => '0x1234'
14
14
  * numberToHex(0x1234, 32); // => 0x00001234
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { numberToU8a } from '@polkadot/util';
10
+ * import { numberToU8a } from '@pezkuwi/util';
11
11
  *
12
12
  * numberToU8a(0x1234); // => [0x12, 0x34]
13
13
  * ```
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@pezkuwi/util', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.1' };
4
+ exports.packageInfo = { name: '@pezkuwi/util', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.6' };
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * const { promisify } from '@polkadot/util';
10
+ * const { promisify } from '@pezkuwi/util';
11
11
  *
12
12
  * await promisify(null, ((a, cb) => cb(null, a), true); // resolves with `true`
13
13
  * await promisify(null, (cb) => cb(new Error('error!'))); // rejects with `error!`
@@ -8,7 +8,7 @@ import type { AnyString } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { stringLowerFirst } from '@polkadot/util';
11
+ * import { stringLowerFirst } from '@pezkuwi/util';
12
12
  *
13
13
  * stringLowerFirst('ABC'); // => 'aBC'
14
14
  * ```
@@ -23,7 +23,7 @@ export declare const stringLowerFirst: (value?: AnyString | null) => string;
23
23
  * <BR>
24
24
  *
25
25
  * ```javascript
26
- * import { stringUpperFirst } from '@polkadot/util';
26
+ * import { stringUpperFirst } from '@pezkuwi/util';
27
27
  *
28
28
  * stringUpperFirst('abc'); // => 'Abc'
29
29
  * ```
@@ -8,7 +8,7 @@ import type { AnyString } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { stringShorten } from '@polkadot/util';
11
+ * import { stringShorten } from '@pezkuwi/util';
12
12
  *
13
13
  * stringShorten('1234567890', 2); // => 12..90
14
14
  * ```
@@ -8,7 +8,7 @@ import type { AnyString, HexString } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { stringToHex } from '@polkadot/util';
11
+ * import { stringToHex } from '@pezkuwi/util';
12
12
  *
13
13
  * stringToU8a('hello'); // 0x68656c6c6f
14
14
  * ```
@@ -8,7 +8,7 @@ import type { AnyString } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { stringToU8a } from '@polkadot/util';
11
+ * import { stringToU8a } from '@pezkuwi/util';
12
12
  *
13
13
  * stringToU8a('hello'); // [0x68, 0x65, 0x6c, 0x6c, 0x6f]
14
14
  * ```
package/cjs/u8a/cmp.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { u8aCmp } from '@polkadot/util';
10
+ * import { u8aCmp } from '@pezkuwi/util';
11
11
  *
12
12
  * u8aCmp(new Uint8Array([0x67, 0x65]), new Uint8Array([0x68, 0x65])); // -1
13
13
  * u8aCmp(new Uint8Array([0x68, 0x65]), new Uint8Array([0x68, 0x65])); // 0
@@ -8,7 +8,7 @@ import type { U8aLike } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { { u8aConcat } from '@polkadot/util';
11
+ * import { { u8aConcat } from '@pezkuwi/util';
12
12
  *
13
13
  * u8aConcat(
14
14
  * new Uint8Array([1, 2, 3]),
@@ -8,7 +8,7 @@ import type { U8aLike } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { { u8aConcat } from '@polkadot/util';
11
+ * import { { u8aConcat } from '@pezkuwi/util';
12
12
  *
13
13
  * u8aConcat(
14
14
  * new Uint8Array([1, 2, 3]),
package/cjs/u8a/eq.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { u8aEq } from '@polkadot/util';
10
+ * import { u8aEq } from '@pezkuwi/util';
11
11
  *
12
12
  * u8aEq(new Uint8Array([0x68, 0x65]), new Uint8Array([0x68, 0x65])); // true
13
13
  * ```
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { u8aFixLength } from '@polkadot/util';
10
+ * import { u8aFixLength } from '@pezkuwi/util';
11
11
  *
12
12
  * u8aFixLength('0x12') // => 0x12
13
13
  * u8aFixLength('0x12', 16) // => 0x0012
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { u8aSorted} from '@polkadot/util';
10
+ * import { u8aSorted} from '@pezkuwi/util';
11
11
  *
12
12
  * u8aSorted([new Uint8Array([0x69]), new Uint8Array([0x68])]); // [0x68, 0x69]
13
13
  * ```
package/cjs/u8a/toBn.d.ts CHANGED
@@ -13,7 +13,7 @@ import { BN } from '../bn/bn.js';
13
13
  * <BR>
14
14
  *
15
15
  * ```javascript
16
- * import { u8aToBn } from '@polkadot/util';
16
+ * import { u8aToBn } from '@pezkuwi/util';
17
17
  *
18
18
  * u8aToHex(new Uint8Array([0x68, 0x65, 0x6c, 0x6c, 0xf])); // 0x68656c0f
19
19
  * ```
@@ -8,7 +8,7 @@ import type { BufferObject } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { u8aToBuffer } from '@polkadot/util';
11
+ * import { u8aToBuffer } from '@pezkuwi/util';
12
12
  *
13
13
  * console.log('Buffer', u8aToBuffer(new Uint8Array([1, 2, 3])));
14
14
  * ```
@@ -8,7 +8,7 @@ import type { HexString } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { u8aToHex } from '@polkadot/util';
11
+ * import { u8aToHex } from '@pezkuwi/util';
12
12
  *
13
13
  * u8aToHex(new Uint8Array([0x68, 0x65, 0x6c, 0x6c, 0xf])); // 0x68656c0f
14
14
  * ```
@@ -8,7 +8,7 @@ import type { HexString } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { u8aToHex } from '@polkadot/util';
11
+ * import { u8aToHex } from '@pezkuwi/util';
12
12
  *
13
13
  * u8aToHex(new Uint8Array([0x68, 0x65, 0x6c, 0x6c, 0xf])); // 0x68656c0f
14
14
  * ```
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { u8aToString } from '@polkadot/util';
10
+ * import { u8aToString } from '@pezkuwi/util';
11
11
  *
12
12
  * u8aToString(new Uint8Array([0x68, 0x65, 0x6c, 0x6c, 0x6f])); // hello
13
13
  * ```
@@ -10,7 +10,7 @@ import type { U8aLike } from '../types.js';
10
10
  * <BR>
11
11
  *
12
12
  * ```javascript
13
- * import { u8aToU8a } from '@polkadot/util';
13
+ * import { u8aToU8a } from '@pezkuwi/util';
14
14
  *
15
15
  * u8aToU8a(new Uint8Array([0x12, 0x34]); // => Uint8Array([0x12, 0x34])
16
16
  * u8aToU8a(0x1234); // => Uint8Array([0x12, 0x34])
@@ -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 {};
package/extractTime.d.ts CHANGED
@@ -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/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
  * ```
package/hex/toNumber.d.ts CHANGED
@@ -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
  * ```
package/hex/toString.d.ts CHANGED
@@ -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
  * ```
package/hex/toU8a.d.ts CHANGED
@@ -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])
package/is/bigInt.d.ts CHANGED
@@ -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/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
  * ```
package/is/boolean.d.ts CHANGED
@@ -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
  * ```
package/is/buffer.d.ts CHANGED
@@ -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/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
  * ```
package/is/function.d.ts CHANGED
@@ -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/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/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/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
  * ```
package/is/number.d.ts CHANGED
@@ -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
  * ```
package/is/object.d.ts CHANGED
@@ -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
  * ```
package/is/string.d.ts CHANGED
@@ -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
  * ```
package/is/u8a.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { isUint8Array } from '@polkadot/util';
10
+ * import { isUint8Array } from '@pezkuwi/util';
11
11
  *
12
12
  * console.log('isU8a', isU8a([])); // => false
13
13
  * ```
package/is/undefined.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { isUndefined } from '@polkadot/util';
10
+ * import { isUndefined } from '@pezkuwi/util';
11
11
  *
12
12
  * console.log('isUndefined', isUndefined(void(0))); // => true
13
13
  * ```
package/logger.d.ts CHANGED
@@ -9,7 +9,7 @@ export declare function loggerFormat(value: unknown): unknown;
9
9
  * <BR>
10
10
  *
11
11
  * ```javascript
12
- * import { logger } from '@polkadot/util';
12
+ * import { logger } from '@pezkuwi/util';
13
13
  *
14
14
  * const l = logger('test');
15
15
  * ```
package/number/toHex.d.ts CHANGED
@@ -8,7 +8,7 @@ import type { HexString } from '../types.js';
8
8
  * <BR>
9
9
  *
10
10
  * ```javascript
11
- * import { numberToHex } from '@polkadot/util';
11
+ * import { numberToHex } from '@pezkuwi/util';
12
12
  *
13
13
  * numberToHex(0x1234); // => '0x1234'
14
14
  * numberToHex(0x1234, 32); // => 0x00001234
package/number/toU8a.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * <BR>
8
8
  *
9
9
  * ```javascript
10
- * import { numberToU8a } from '@polkadot/util';
10
+ * import { numberToU8a } from '@pezkuwi/util';
11
11
  *
12
12
  * numberToU8a(0x1234); // => [0x12, 0x34]
13
13
  * ```