@sv443-network/userutils 9.0.3 → 9.0.4
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/CHANGELOG.md +6 -0
- package/dist/index.cjs +2 -2
- package/dist/index.global.js +3 -3
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1692,11 +1692,11 @@ var templateLiteralTransform = [
|
|
|
1692
1692
|
}
|
|
1693
1693
|
];
|
|
1694
1694
|
var percentTransform = [
|
|
1695
|
-
|
|
1695
|
+
/%(\d+)/gm,
|
|
1696
1696
|
({ matches, trArgs, trValue }) => {
|
|
1697
1697
|
let str = String(trValue);
|
|
1698
1698
|
for (const match of matches) {
|
|
1699
|
-
const repl = match[1] !== undefined ? trArgs[
|
|
1699
|
+
const repl = match[1] !== undefined ? trArgs == null ? undefined : trArgs[Number(match[1]) - 1] : undefined;
|
|
1700
1700
|
if (typeof repl !== "undefined")
|
|
1701
1701
|
str = str.replace(match[0], String(repl));
|
|
1702
1702
|
}
|
package/dist/index.global.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// ==UserLibrary==
|
|
9
9
|
// @name UserUtils
|
|
10
10
|
// @description Lightweight library with various utilities for userscripts - register listeners for when CSS selectors exist, intercept events, create persistent & synchronous data stores, modify the DOM more easily and much more
|
|
11
|
-
// @version 9.0.
|
|
11
|
+
// @version 9.0.4
|
|
12
12
|
// @license MIT
|
|
13
13
|
// @copyright Sv443 (https://github.com/Sv443)
|
|
14
14
|
|
|
@@ -1730,11 +1730,11 @@ Has: ${checksum}`);
|
|
|
1730
1730
|
}
|
|
1731
1731
|
];
|
|
1732
1732
|
var percentTransform = [
|
|
1733
|
-
|
|
1733
|
+
/%(\d+)/gm,
|
|
1734
1734
|
({ matches, trArgs, trValue }) => {
|
|
1735
1735
|
let str = String(trValue);
|
|
1736
1736
|
for (const match of matches) {
|
|
1737
|
-
const repl = match[1] !== undefined ? trArgs[
|
|
1737
|
+
const repl = match[1] !== undefined ? trArgs == null ? undefined : trArgs[Number(match[1]) - 1] : undefined;
|
|
1738
1738
|
if (typeof repl !== "undefined")
|
|
1739
1739
|
str = str.replace(match[0], String(repl));
|
|
1740
1740
|
}
|
package/dist/index.js
CHANGED
|
@@ -1690,11 +1690,11 @@ var templateLiteralTransform = [
|
|
|
1690
1690
|
}
|
|
1691
1691
|
];
|
|
1692
1692
|
var percentTransform = [
|
|
1693
|
-
|
|
1693
|
+
/%(\d+)/gm,
|
|
1694
1694
|
({ matches, trArgs, trValue }) => {
|
|
1695
1695
|
let str = String(trValue);
|
|
1696
1696
|
for (const match of matches) {
|
|
1697
|
-
const repl = match[1] !== undefined ? trArgs[
|
|
1697
|
+
const repl = match[1] !== undefined ? trArgs == null ? undefined : trArgs[Number(match[1]) - 1] : undefined;
|
|
1698
1698
|
if (typeof repl !== "undefined")
|
|
1699
1699
|
str = str.replace(match[0], String(repl));
|
|
1700
1700
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sv443-network/userutils",
|
|
3
3
|
"libName": "UserUtils",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.4",
|
|
5
5
|
"description": "Lightweight library with various utilities for userscripts - register listeners for when CSS selectors exist, intercept events, create persistent & synchronous data stores, modify the DOM more easily and much more",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|