@w3ux/utils 0.5.0 → 0.7.0

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 (3) hide show
  1. package/base.d.cts +1 -1
  2. package/base.d.ts +1 -1
  3. package/package.json +2 -2
package/base.d.cts CHANGED
@@ -66,7 +66,7 @@ declare const appendOr: (condition: boolean | string | undefined, value: string,
66
66
  * @name formatAccountSs58
67
67
  * @summary Formats an address with the supplied ss58 prefix, or returns null if invalid.
68
68
  */
69
- declare const formatAccountSs58: (address: string, ss58Prefix: number) => string;
69
+ declare const formatAccountSs58: (address: string, ss58Prefix: number) => string | null;
70
70
  /**
71
71
  * @name removeHexPrefix
72
72
  * @summary Takes a string str as input and returns a new string with the "0x" prefix removed if it
package/base.d.ts CHANGED
@@ -66,7 +66,7 @@ declare const appendOr: (condition: boolean | string | undefined, value: string,
66
66
  * @name formatAccountSs58
67
67
  * @summary Formats an address with the supplied ss58 prefix, or returns null if invalid.
68
68
  */
69
- declare const formatAccountSs58: (address: string, ss58Prefix: number) => string;
69
+ declare const formatAccountSs58: (address: string, ss58Prefix: number) => string | null;
70
70
  /**
71
71
  * @name removeHexPrefix
72
72
  * @summary Takes a string str as input and returns a new string with the "0x" prefix removed if it
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@w3ux/utils",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "license": "GPL-3.0-only",
5
5
  "dependencies": {
6
- "@polkadot/util": "^12.6.2",
6
+ "@polkadot/util": "^13.1.1",
7
7
  "@polkadot/util-crypto": "^13.1.1",
8
8
  "bignumber.js": "^9.1.1"
9
9
  },