@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.
- package/README.md +4 -4
- package/array/chunk.d.ts +1 -1
- package/array/filter.d.ts +1 -1
- package/array/flatten.d.ts +1 -1
- package/array/range.d.ts +1 -1
- package/assert.d.ts +1 -1
- package/bn/min.d.ts +2 -2
- package/bn/sqrt.d.ts +1 -1
- package/bn/toBn.d.ts +1 -1
- package/bn/toHex.d.ts +1 -1
- package/bn/toU8a.d.ts +1 -1
- package/buffer/toU8a.d.ts +1 -1
- package/{bundle-polkadot-util.js → bundle-pezkuwi-util.js} +5 -5
- package/cjs/array/chunk.d.ts +1 -1
- package/cjs/array/filter.d.ts +1 -1
- package/cjs/array/flatten.d.ts +1 -1
- package/cjs/array/range.d.ts +1 -1
- package/cjs/assert.d.ts +1 -1
- package/cjs/bn/min.d.ts +2 -2
- package/cjs/bn/sqrt.d.ts +1 -1
- package/cjs/bn/toBn.d.ts +1 -1
- package/cjs/bn/toHex.d.ts +1 -1
- package/cjs/bn/toU8a.d.ts +1 -1
- package/cjs/buffer/toU8a.d.ts +1 -1
- package/cjs/compact/addLength.d.ts +1 -1
- package/cjs/compact/fromU8a.d.ts +1 -1
- package/cjs/compact/stripLength.d.ts +1 -1
- package/cjs/compact/toU8a.d.ts +1 -1
- package/cjs/detectPackage.d.ts +1 -1
- package/cjs/extractTime.d.ts +1 -1
- package/cjs/hex/addPrefix.d.ts +1 -1
- package/cjs/hex/fixLength.d.ts +1 -1
- package/cjs/hex/hasPrefix.d.ts +1 -1
- package/cjs/hex/stripPrefix.d.ts +1 -1
- package/cjs/hex/toBn.d.ts +1 -1
- package/cjs/hex/toNumber.d.ts +1 -1
- package/cjs/hex/toString.d.ts +1 -1
- package/cjs/hex/toU8a.d.ts +1 -1
- package/cjs/hex/toU8aBuffer.d.ts +1 -1
- package/cjs/is/bigInt.d.ts +1 -1
- package/cjs/is/bn.d.ts +1 -1
- package/cjs/is/boolean.d.ts +1 -1
- package/cjs/is/buffer.d.ts +1 -1
- package/cjs/is/childClass.d.ts +1 -1
- package/cjs/is/error.d.ts +1 -1
- package/cjs/is/function.d.ts +1 -1
- package/cjs/is/hex.d.ts +1 -1
- package/cjs/is/instanceOf.d.ts +1 -1
- package/cjs/is/ip.d.ts +1 -1
- package/cjs/is/jsonObject.d.ts +1 -1
- package/cjs/is/null.d.ts +1 -1
- package/cjs/is/number.d.ts +1 -1
- package/cjs/is/object.d.ts +1 -1
- package/cjs/is/observable.d.ts +1 -1
- package/cjs/is/string.d.ts +1 -1
- package/cjs/is/u8a.d.ts +1 -1
- package/cjs/is/undefined.d.ts +1 -1
- package/cjs/logger.d.ts +1 -1
- package/cjs/number/toHex.d.ts +1 -1
- package/cjs/number/toU8a.d.ts +1 -1
- package/cjs/packageInfo.js +1 -1
- package/cjs/promisify.d.ts +1 -1
- package/cjs/string/lowerFirst.d.ts +2 -2
- package/cjs/string/shorten.d.ts +1 -1
- package/cjs/string/toHex.d.ts +1 -1
- package/cjs/string/toU8a.d.ts +1 -1
- package/cjs/u8a/cmp.d.ts +1 -1
- package/cjs/u8a/concat.d.ts +1 -1
- package/cjs/u8a/concatBuffer.d.ts +1 -1
- package/cjs/u8a/eq.d.ts +1 -1
- package/cjs/u8a/fixLength.d.ts +1 -1
- package/cjs/u8a/sorted.d.ts +1 -1
- package/cjs/u8a/toBn.d.ts +1 -1
- package/cjs/u8a/toBuffer.d.ts +1 -1
- package/cjs/u8a/toHex.d.ts +1 -1
- package/cjs/u8a/toHexBuffer.d.ts +1 -1
- package/cjs/u8a/toString.d.ts +1 -1
- package/cjs/u8a/toU8a.d.ts +1 -1
- package/compact/addLength.d.ts +1 -1
- package/compact/fromU8a.d.ts +1 -1
- package/compact/stripLength.d.ts +1 -1
- package/compact/toU8a.d.ts +1 -1
- package/detectPackage.d.ts +1 -1
- package/extractTime.d.ts +1 -1
- package/hex/addPrefix.d.ts +1 -1
- package/hex/fixLength.d.ts +1 -1
- package/hex/hasPrefix.d.ts +1 -1
- package/hex/stripPrefix.d.ts +1 -1
- package/hex/toBn.d.ts +1 -1
- package/hex/toNumber.d.ts +1 -1
- package/hex/toString.d.ts +1 -1
- package/hex/toU8a.d.ts +1 -1
- package/hex/toU8aBuffer.d.ts +1 -1
- package/is/bigInt.d.ts +1 -1
- package/is/bn.d.ts +1 -1
- package/is/boolean.d.ts +1 -1
- package/is/buffer.d.ts +1 -1
- package/is/childClass.d.ts +1 -1
- package/is/error.d.ts +1 -1
- package/is/function.d.ts +1 -1
- package/is/hex.d.ts +1 -1
- package/is/instanceOf.d.ts +1 -1
- package/is/ip.d.ts +1 -1
- package/is/jsonObject.d.ts +1 -1
- package/is/null.d.ts +1 -1
- package/is/number.d.ts +1 -1
- package/is/object.d.ts +1 -1
- package/is/observable.d.ts +1 -1
- package/is/string.d.ts +1 -1
- package/is/u8a.d.ts +1 -1
- package/is/undefined.d.ts +1 -1
- package/logger.d.ts +1 -1
- package/number/toHex.d.ts +1 -1
- package/number/toU8a.d.ts +1 -1
- package/package.json +9 -9
- package/packageInfo.js +1 -1
- package/promisify.d.ts +1 -1
- package/string/lowerFirst.d.ts +2 -2
- package/string/shorten.d.ts +1 -1
- package/string/toHex.d.ts +1 -1
- package/string/toU8a.d.ts +1 -1
- package/u8a/cmp.d.ts +1 -1
- package/u8a/concat.d.ts +1 -1
- package/u8a/concatBuffer.d.ts +1 -1
- package/u8a/eq.d.ts +1 -1
- package/u8a/fixLength.d.ts +1 -1
- package/u8a/sorted.d.ts +1 -1
- package/u8a/toBn.d.ts +1 -1
- package/u8a/toBuffer.d.ts +1 -1
- package/u8a/toHex.d.ts +1 -1
- package/u8a/toHexBuffer.d.ts +1 -1
- package/u8a/toString.d.ts +1 -1
- 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/
|
|
4
|
-
"description": "A collection of useful utilities for @
|
|
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/
|
|
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/
|
|
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.
|
|
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.
|
|
1989
|
-
"@pezkuwi/x-global": "14.0.
|
|
1990
|
-
"@pezkuwi/x-textdecoder": "14.0.
|
|
1991
|
-
"@pezkuwi/x-textencoder": "14.0.
|
|
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
|
+
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 '@
|
|
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!`
|
package/string/lowerFirst.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type { AnyString } from '../types.js';
|
|
|
8
8
|
* <BR>
|
|
9
9
|
*
|
|
10
10
|
* ```javascript
|
|
11
|
-
* import { stringLowerFirst } from '@
|
|
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 '@
|
|
26
|
+
* import { stringUpperFirst } from '@pezkuwi/util';
|
|
27
27
|
*
|
|
28
28
|
* stringUpperFirst('abc'); // => 'Abc'
|
|
29
29
|
* ```
|
package/string/shorten.d.ts
CHANGED
package/string/toHex.d.ts
CHANGED
package/string/toU8a.d.ts
CHANGED
package/u8a/cmp.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* <BR>
|
|
8
8
|
*
|
|
9
9
|
* ```javascript
|
|
10
|
-
* import { u8aCmp } from '@
|
|
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
package/u8a/concatBuffer.d.ts
CHANGED
package/u8a/eq.d.ts
CHANGED
package/u8a/fixLength.d.ts
CHANGED
package/u8a/sorted.d.ts
CHANGED
package/u8a/toBn.d.ts
CHANGED
package/u8a/toBuffer.d.ts
CHANGED
package/u8a/toHex.d.ts
CHANGED
package/u8a/toHexBuffer.d.ts
CHANGED
package/u8a/toString.d.ts
CHANGED
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 '@
|
|
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])
|