@w3ux/utils 0.7.0 → 0.8.0-alpha.1
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/package.json +1 -1
- package/unit.d.cts +1 -1
- package/unit.d.ts +1 -1
- package/util/index.cjs +23 -0
- package/util/index.d.cts +2 -0
- package/util/index.d.ts +2 -0
- package/util/index.js +2 -0
- package/util-crypto/index.cjs +23 -0
- package/util-crypto/index.d.cts +1 -0
- package/util-crypto/index.d.ts +1 -0
- package/util-crypto/index.js +2 -0
package/package.json
CHANGED
package/unit.d.cts
CHANGED
|
@@ -79,7 +79,7 @@ declare const removeVarFromUrlHash: (key: string) => void;
|
|
|
79
79
|
* @name sortWithNull
|
|
80
80
|
* @summary Sorts an array with nulls last.
|
|
81
81
|
*/
|
|
82
|
-
declare const sortWithNull: (ascending: boolean) => (a: AnyJson, b: AnyJson) =>
|
|
82
|
+
declare const sortWithNull: (ascending: boolean) => (a: AnyJson, b: AnyJson) => 1 | 0 | -1;
|
|
83
83
|
/**
|
|
84
84
|
* @name applyWidthAsPadding
|
|
85
85
|
* @summary Applies width of subject to paddingRight of container.
|
package/unit.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ declare const removeVarFromUrlHash: (key: string) => void;
|
|
|
79
79
|
* @name sortWithNull
|
|
80
80
|
* @summary Sorts an array with nulls last.
|
|
81
81
|
*/
|
|
82
|
-
declare const sortWithNull: (ascending: boolean) => (a: AnyJson, b: AnyJson) =>
|
|
82
|
+
declare const sortWithNull: (ascending: boolean) => (a: AnyJson, b: AnyJson) => 1 | 0 | -1;
|
|
83
83
|
/**
|
|
84
84
|
* @name applyWidthAsPadding
|
|
85
85
|
* @summary Applies width of subject to paddingRight of container.
|
package/util/index.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/index.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/index.d.cts
ADDED
package/util/index.d.ts
ADDED
package/util/index.js
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-crypto/index.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 @@
|
|
|
1
|
+
export * from '@polkadot/util-crypto';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@polkadot/util-crypto';
|