@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/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "author": "Jaco Greeff <jacogr@gmail.com>",
3
- "bugs": "https://github.com/polkadot-js/common/issues",
4
- "description": "A collection of useful utilities for @polkadot",
3
+ "bugs": "https://github.com/pezkuwichain/pezkuwi-common/issues",
4
+ "description": "A collection of useful utilities for @pezkuwi",
5
5
  "engines": {
6
6
  "node": ">=18"
7
7
  },
8
- "homepage": "https://github.com/polkadot-js/common/tree/master/packages/util#readme",
8
+ "homepage": "https://github.com/pezkuwichain/pezkuwi-common/tree/master/packages/util#readme",
9
9
  "license": "Apache-2.0",
10
10
  "name": "@pezkuwi/util",
11
11
  "repository": {
12
12
  "directory": "packages/util",
13
13
  "type": "git",
14
- "url": "https://github.com/polkadot-js/common.git"
14
+ "url": "https://github.com/pezkuwichain/pezkuwi-common.git"
15
15
  },
16
16
  "sideEffects": [
17
17
  "./packageDetect.js",
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "14.0.5",
21
+ "version": "14.0.7",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -1985,10 +1985,10 @@
1985
1985
  }
1986
1986
  },
1987
1987
  "dependencies": {
1988
- "@pezkuwi/x-bigint": "14.0.5",
1989
- "@pezkuwi/x-global": "14.0.5",
1990
- "@pezkuwi/x-textdecoder": "14.0.5",
1991
- "@pezkuwi/x-textencoder": "14.0.5",
1988
+ "@pezkuwi/x-bigint": "14.0.1",
1989
+ "@pezkuwi/x-global": "14.0.1",
1990
+ "@pezkuwi/x-textdecoder": "14.0.1",
1991
+ "@pezkuwi/x-textencoder": "14.0.1",
1992
1992
  "@types/bn.js": "^5.1.6",
1993
1993
  "bn.js": "^5.2.1",
1994
1994
  "tslib": "^2.8.0"
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@pezkuwi/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: '14.0.1' };
1
+ export const packageInfo = { name: '@pezkuwi/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: '14.0.6' };
package/promisify.d.ts CHANGED
@@ -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
  * ```
package/string/toHex.d.ts CHANGED
@@ -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
  * ```
package/string/toU8a.d.ts CHANGED
@@ -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/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
package/u8a/concat.d.ts CHANGED
@@ -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/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
package/u8a/sorted.d.ts CHANGED
@@ -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/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
  * ```
package/u8a/toBuffer.d.ts CHANGED
@@ -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
  * ```
package/u8a/toHex.d.ts CHANGED
@@ -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
  * ```
package/u8a/toString.d.ts CHANGED
@@ -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
  * ```
package/u8a/toU8a.d.ts CHANGED
@@ -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])