@w3ux/utils 0.6.0 → 0.8.0-alpha.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.
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@w3ux/utils",
3
- "version": "0.6.0",
3
+ "version": "0.8.0-alpha.0",
4
4
  "license": "GPL-3.0-only",
5
5
  "dependencies": {
6
6
  "@polkadot/util": "^13.1.1",
@@ -0,0 +1,23 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/util-crypto.ts
17
+ var util_crypto_exports = {};
18
+ module.exports = __toCommonJS(util_crypto_exports);
19
+ __reExport(util_crypto_exports, require("@polkadot/util-crypto"), module.exports);
20
+ // Annotate the CommonJS export names for ESM import in node:
21
+ 0 && (module.exports = {
22
+ ...require("@polkadot/util-crypto")
23
+ });
@@ -0,0 +1,2 @@
1
+ export * from '@polkadot/util-crypto';
2
+ import '@polkadot/util';
@@ -0,0 +1,2 @@
1
+ export * from '@polkadot/util-crypto';
2
+ import '@polkadot/util';
package/util-crypto.js ADDED
@@ -0,0 +1,2 @@
1
+ // src/util-crypto.ts
2
+ export * from "@polkadot/util-crypto";
package/util.cjs ADDED
@@ -0,0 +1,23 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/util.ts
17
+ var util_exports = {};
18
+ module.exports = __toCommonJS(util_exports);
19
+ __reExport(util_exports, require("@polkadot/util"), module.exports);
20
+ // Annotate the CommonJS export names for ESM import in node:
21
+ 0 && (module.exports = {
22
+ ...require("@polkadot/util")
23
+ });
package/util.d.cts ADDED
@@ -0,0 +1 @@
1
+ export * from '@polkadot/util';
package/util.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '@polkadot/util';
package/util.js ADDED
@@ -0,0 +1,2 @@
1
+ // src/util.ts
2
+ export * from "@polkadot/util";