@w3ux/utils 2.0.6 → 2.0.7-alpha.2
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/index.cjs +3 -3
- package/package.json +2 -2
- package/unit.cjs +1 -1
- package/unit.js +3 -1
package/index.cjs
CHANGED
|
@@ -17,8 +17,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
|
|
19
19
|
// src/index.ts
|
|
20
|
-
var
|
|
21
|
-
__export(
|
|
20
|
+
var index_exports = {};
|
|
21
|
+
__export(index_exports, {
|
|
22
22
|
addedTo: () => addedTo,
|
|
23
23
|
appendOr: () => appendOr,
|
|
24
24
|
appendOrEmpty: () => appendOrEmpty,
|
|
@@ -59,7 +59,7 @@ __export(src_exports, {
|
|
|
59
59
|
varToUrlHash: () => varToUrlHash,
|
|
60
60
|
withTimeout: () => withTimeout
|
|
61
61
|
});
|
|
62
|
-
module.exports = __toCommonJS(
|
|
62
|
+
module.exports = __toCommonJS(index_exports);
|
|
63
63
|
|
|
64
64
|
// src/base.ts
|
|
65
65
|
var import_substrate_bindings = require("@polkadot-api/substrate-bindings");
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w3ux/utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7-alpha.2",
|
|
4
4
|
"license": "GPL-3.0-only",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@polkadot-api/substrate-bindings": "^0.
|
|
6
|
+
"@polkadot-api/substrate-bindings": "^0.11.1"
|
|
7
7
|
},
|
|
8
8
|
"main": "index.cjs",
|
|
9
9
|
"module": "index.js",
|
package/unit.cjs
CHANGED
|
@@ -43,6 +43,7 @@ __export(unit_exports, {
|
|
|
43
43
|
varToUrlHash: () => varToUrlHash
|
|
44
44
|
});
|
|
45
45
|
module.exports = __toCommonJS(unit_exports);
|
|
46
|
+
var import_substrate_bindings2 = require("@polkadot-api/substrate-bindings");
|
|
46
47
|
|
|
47
48
|
// src/base.ts
|
|
48
49
|
var import_substrate_bindings = require("@polkadot-api/substrate-bindings");
|
|
@@ -50,7 +51,6 @@ var rmCommas = (val) => val.replace(/,/g, "");
|
|
|
50
51
|
var rmDecimals = (str) => str.split(".")[0];
|
|
51
52
|
|
|
52
53
|
// src/unit.ts
|
|
53
|
-
var import_substrate_bindings2 = require("@polkadot-api/substrate-bindings");
|
|
54
54
|
var planckToUnit = (val, units) => {
|
|
55
55
|
try {
|
|
56
56
|
units = Math.max(Math.round(units), 0);
|
package/unit.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
// src/unit.ts
|
|
2
|
+
import { AccountId as AccountId2 } from "@polkadot-api/substrate-bindings";
|
|
3
|
+
|
|
1
4
|
// src/base.ts
|
|
2
5
|
import { AccountId } from "@polkadot-api/substrate-bindings";
|
|
3
6
|
var rmCommas = (val) => val.replace(/,/g, "");
|
|
4
7
|
var rmDecimals = (str) => str.split(".")[0];
|
|
5
8
|
|
|
6
9
|
// src/unit.ts
|
|
7
|
-
import { AccountId as AccountId2 } from "@polkadot-api/substrate-bindings";
|
|
8
10
|
var planckToUnit = (val, units) => {
|
|
9
11
|
try {
|
|
10
12
|
units = Math.max(Math.round(units), 0);
|