@bleedingdev/modern-js-utils 3.9.3-ultramodern.7 → 3.9.3-ultramodern.8
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/dist/compiled/address/provenance.json +1 -1
- package/dist/compiled/browserslist/index.js +7 -7
- package/dist/compiled/browserslist/provenance.json +1 -1
- package/dist/compiled/chalk/provenance.json +1 -1
- package/dist/compiled/chokidar/index.d.mts +18 -9
- package/dist/compiled/chokidar/index.d.ts +18 -9
- package/dist/compiled/chokidar/index.js +194 -171
- package/dist/compiled/chokidar/index.mjs +94 -71
- package/dist/compiled/chokidar/provenance.json +2 -2
- package/dist/compiled/commander/provenance.json +1 -1
- package/dist/compiled/debug/provenance.json +1 -1
- package/dist/compiled/dotenv-expand/LICENSE +11 -7
- package/dist/compiled/dotenv-expand/declaration-licenses/dotenv-expand/LICENSE +11 -7
- package/dist/compiled/dotenv-expand/index.js +5545 -61
- package/dist/compiled/dotenv-expand/licenses-cjs.txt +12 -7
- package/dist/compiled/dotenv-expand/package.json +1 -1
- package/dist/compiled/dotenv-expand/provenance.json +7 -7
- package/dist/compiled/execa/index.d.mts +67 -33
- package/dist/compiled/execa/index.d.ts +67 -33
- package/dist/compiled/execa/index.js +1848 -1369
- package/dist/compiled/execa/index.mjs +1851 -1372
- package/dist/compiled/execa/package.json +1 -1
- package/dist/compiled/execa/provenance.json +3 -3
- package/dist/compiled/filesize/index.js +26 -25
- package/dist/compiled/filesize/index.js.LICENSE.txt +1 -1
- package/dist/compiled/filesize/index.mjs +25 -24
- package/dist/compiled/filesize/index.mjs.LICENSE.txt +1 -1
- package/dist/compiled/filesize/package.json +1 -1
- package/dist/compiled/filesize/provenance.json +4 -4
- package/dist/compiled/fs-extra/provenance.json +1 -1
- package/dist/compiled/glob/provenance.json +3 -3
- package/dist/compiled/globby/index.js +431 -139
- package/dist/compiled/globby/index.mjs +576 -284
- package/dist/compiled/globby/provenance.json +1 -1
- package/dist/compiled/gzip-size/provenance.json +1 -1
- package/dist/compiled/import-lazy/provenance.json +1 -1
- package/dist/compiled/inquirer/index.d.mts +10 -0
- package/dist/compiled/inquirer/index.d.ts +10 -0
- package/dist/compiled/inquirer/index.js +112 -96
- package/dist/compiled/inquirer/index.mjs +98 -82
- package/dist/compiled/inquirer/licenses-cjs.txt +26 -0
- package/dist/compiled/inquirer/licenses-esm.txt +26 -0
- package/dist/compiled/inquirer/package.json +1 -1
- package/dist/compiled/inquirer/provenance.json +18 -18
- package/dist/compiled/js-yaml/index.js +258 -208
- package/dist/compiled/js-yaml/index.js.LICENSE.txt +1 -1
- package/dist/compiled/js-yaml/index.mjs +328 -278
- package/dist/compiled/js-yaml/index.mjs.LICENSE.txt +1 -1
- package/dist/compiled/js-yaml/package.json +1 -1
- package/dist/compiled/js-yaml/provenance.json +4 -4
- package/dist/compiled/json5/provenance.json +1 -1
- package/dist/compiled/lodash/common/function.d.ts +2 -2
- package/dist/compiled/lodash/provenance.json +2 -2
- package/dist/compiled/mime-types/provenance.json +1 -1
- package/dist/compiled/minimist/provenance.json +1 -1
- package/dist/compiled/nanoid/index.d.mts +3 -3
- package/dist/compiled/nanoid/index.d.ts +3 -3
- package/dist/compiled/nanoid/index.js +10 -10
- package/dist/compiled/nanoid/index.mjs +10 -10
- package/dist/compiled/nanoid/package.json +1 -1
- package/dist/compiled/nanoid/provenance.json +4 -4
- package/dist/compiled/ora/index.js +310 -286
- package/dist/compiled/ora/index.mjs +651 -627
- package/dist/compiled/ora/provenance.json +1 -1
- package/dist/compiled/pkg-up/provenance.json +1 -1
- package/dist/compiled/semver/provenance.json +1 -1
- package/dist/compiled/signale/provenance.json +1 -1
- package/dist/compiled/slash/provenance.json +1 -1
- package/dist/compiled/strip-ansi/index.js +1 -1
- package/dist/compiled/strip-ansi/index.mjs +3 -3
- package/dist/compiled/strip-ansi/provenance.json +1 -1
- package/dist/compiled/tsconfig-paths/provenance.json +1 -1
- package/dist/compiled/upath/provenance.json +1 -1
- package/dist/compiled/url-join/index.js +56 -29
- package/dist/compiled/url-join/index.mjs +57 -30
- package/dist/compiled/url-join/package.json +1 -1
- package/dist/compiled/url-join/provenance.json +4 -4
- package/dist/types/compiled.d.ts +2 -2
- package/package.json +8 -8
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
});
|
|
30
30
|
function ansiRegex({ onlyFirst: e = false } = {}) {
|
|
31
31
|
const t = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
32
|
-
const r = `(?:\\u001B\\][\\
|
|
32
|
+
const r = `(?:(?:\\u001B\\]|\\u009D)[^\\u0007\\u001B\\u009C\\u009D]*${t})`;
|
|
33
33
|
const n = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
|
|
34
34
|
const o = `${r}|${n}`;
|
|
35
35
|
return new RegExp(o, e ? void 0 : "g");
|
|
@@ -18,10 +18,10 @@ e.d(n, {
|
|
|
18
18
|
});
|
|
19
19
|
function ansiRegex({ onlyFirst: e = false } = {}) {
|
|
20
20
|
const n = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
21
|
-
const t = `(?:\\u001B\\][\\
|
|
21
|
+
const t = `(?:(?:\\u001B\\]|\\u009D)[^\\u0007\\u001B\\u009C\\u009D]*${n})`;
|
|
22
22
|
const r = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
|
|
23
|
-
const
|
|
24
|
-
return new RegExp(
|
|
23
|
+
const u = `${t}|${r}`;
|
|
24
|
+
return new RegExp(u, e ? void 0 : "g");
|
|
25
25
|
}
|
|
26
26
|
const t = ansiRegex();
|
|
27
27
|
function stripAnsi(e) {
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
var e = {};
|
|
4
4
|
(()=>{
|
|
5
|
-
e.d = (
|
|
6
|
-
for(var
|
|
5
|
+
e.d = (t, r)=>{
|
|
6
|
+
for(var n in r)if (e.o(r, n) && !e.o(t, n)) Object.defineProperty(t, n, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get:
|
|
8
|
+
get: r[n]
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
})();
|
|
12
12
|
(()=>{
|
|
13
|
-
e.o = (e,
|
|
13
|
+
e.o = (e, t)=>Object.prototype.hasOwnProperty.call(e, t);
|
|
14
14
|
})();
|
|
15
15
|
(()=>{
|
|
16
16
|
e.r = (e)=>{
|
|
@@ -22,40 +22,67 @@
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
})();
|
|
25
|
-
var
|
|
26
|
-
e.r(
|
|
27
|
-
e.d(
|
|
25
|
+
var t = {};
|
|
26
|
+
e.r(t);
|
|
27
|
+
e.d(t, {
|
|
28
28
|
default: ()=>urlJoin
|
|
29
29
|
});
|
|
30
30
|
function normalize(e) {
|
|
31
|
-
|
|
31
|
+
const t = [];
|
|
32
|
+
const r = [];
|
|
32
33
|
if (0 === e.length) return "";
|
|
34
|
+
e = e.filter((e)=>"" !== e);
|
|
33
35
|
if ("string" != typeof e[0]) throw new TypeError("Url must be a string. Received " + e[0]);
|
|
34
|
-
if (e[0].match(/^[^/:]+:\/*$/) && e.length > 1)
|
|
35
|
-
|
|
36
|
-
e[0] = t + e[0];
|
|
37
|
-
}
|
|
36
|
+
if (e[0].match(/^[^/:]+:\/*$/) && e.length > 1) e[0] = e.shift() + e[0];
|
|
37
|
+
if ("/" === e[0] && e.length > 1) e[0] = e.shift() + e[0];
|
|
38
38
|
if (e[0].match(/^file:\/\/\//)) e[0] = e[0].replace(/^([^/:]+):\/*/, "$1:///");
|
|
39
|
-
else e[0] = e[0].replace(/^([^/:]+):\/*/, "$1://");
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
else if (!e[0].match(/^\[.*:.*\]/)) e[0] = e[0].replace(/^([^/:]+):\/*/, "$1://");
|
|
40
|
+
let n = false;
|
|
41
|
+
for(let i = 0; i < e.length; i++){
|
|
42
|
+
let o = e[i];
|
|
42
43
|
if ("string" != typeof o) throw new TypeError("Url must be a string. Received " + o);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
const l = o.startsWith("/");
|
|
45
|
+
const s = o.endsWith("/");
|
|
46
|
+
if (i > 0) o = o.replace(/^[\/]+/, "");
|
|
47
|
+
o = i < e.length - 1 ? o.replace(/[\/]+$/, "") : o.replace(/[\/]+$/, "/");
|
|
48
|
+
if ("" === o) {
|
|
49
|
+
n = n || l;
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
t.push(o);
|
|
53
|
+
r.push(l || n);
|
|
54
|
+
n = s;
|
|
55
|
+
}
|
|
56
|
+
let i = "";
|
|
57
|
+
for(let e = 0; e < t.length; e++){
|
|
58
|
+
const n = t[e];
|
|
59
|
+
if (0 === e) {
|
|
60
|
+
i += n;
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
const o = t[e - 1];
|
|
64
|
+
if (o && o.endsWith("?")) {
|
|
65
|
+
i += n;
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
if (o.endsWith("#")) {
|
|
69
|
+
i += (r[e] ? "/" : "") + n;
|
|
70
|
+
continue;
|
|
47
71
|
}
|
|
72
|
+
i += "/" + n;
|
|
48
73
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
74
|
+
i = i.replace(/\/(\?|&|#[^!])/g, "$1");
|
|
75
|
+
const o = i.indexOf("#");
|
|
76
|
+
const l = -1 === o ? i : i.slice(0, o);
|
|
77
|
+
const s = -1 === o ? "" : i.slice(o + 1);
|
|
78
|
+
const [c, ...f] = l.split(/(?:\?|&)+/);
|
|
79
|
+
const a = f.filter(Boolean);
|
|
80
|
+
i = c + (a.length > 0 ? "?" : "") + a.join("&") + (s && s.length > 0 ? "#" + s : "");
|
|
81
|
+
return i;
|
|
54
82
|
}
|
|
55
|
-
function urlJoin() {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return normalize(e);
|
|
83
|
+
function urlJoin(...e) {
|
|
84
|
+
const t = Array.from(Array.isArray(e[0]) ? e[0] : e);
|
|
85
|
+
return normalize(t);
|
|
59
86
|
}
|
|
60
|
-
module.exports =
|
|
87
|
+
module.exports = t;
|
|
61
88
|
})();
|
|
@@ -2,49 +2,76 @@ import { createRequire } from 'node:module';
|
|
|
2
2
|
createRequire(import.meta.url);
|
|
3
3
|
var e = {};
|
|
4
4
|
(()=>{
|
|
5
|
-
e.d = (
|
|
6
|
-
for(var
|
|
5
|
+
e.d = (t, n)=>{
|
|
6
|
+
for(var r in n)if (e.o(n, r) && !e.o(t, r)) Object.defineProperty(t, r, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get:
|
|
8
|
+
get: n[r]
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
})();
|
|
12
12
|
(()=>{
|
|
13
|
-
e.o = (e,
|
|
13
|
+
e.o = (e, t)=>Object.prototype.hasOwnProperty.call(e, t);
|
|
14
14
|
})();
|
|
15
|
-
var
|
|
16
|
-
e.d(
|
|
15
|
+
var t = {};
|
|
16
|
+
e.d(t, {
|
|
17
17
|
A: ()=>urlJoin
|
|
18
18
|
});
|
|
19
19
|
function normalize(e) {
|
|
20
|
-
|
|
20
|
+
const t = [];
|
|
21
|
+
const n = [];
|
|
21
22
|
if (0 === e.length) return "";
|
|
23
|
+
e = e.filter((e)=>"" !== e);
|
|
22
24
|
if ("string" != typeof e[0]) throw new TypeError("Url must be a string. Received " + e[0]);
|
|
23
|
-
if (e[0].match(/^[^/:]+:\/*$/) && e.length > 1)
|
|
24
|
-
|
|
25
|
-
e[0] = t + e[0];
|
|
26
|
-
}
|
|
25
|
+
if (e[0].match(/^[^/:]+:\/*$/) && e.length > 1) e[0] = e.shift() + e[0];
|
|
26
|
+
if ("/" === e[0] && e.length > 1) e[0] = e.shift() + e[0];
|
|
27
27
|
if (e[0].match(/^file:\/\/\//)) e[0] = e[0].replace(/^([^/:]+):\/*/, "$1:///");
|
|
28
|
-
else e[0] = e[0].replace(/^([^/:]+):\/*/, "$1://");
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
if (""
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
else if (!e[0].match(/^\[.*:.*\]/)) e[0] = e[0].replace(/^([^/:]+):\/*/, "$1://");
|
|
29
|
+
let r = false;
|
|
30
|
+
for(let i = 0; i < e.length; i++){
|
|
31
|
+
let o = e[i];
|
|
32
|
+
if ("string" != typeof o) throw new TypeError("Url must be a string. Received " + o);
|
|
33
|
+
const l = o.startsWith("/");
|
|
34
|
+
const s = o.endsWith("/");
|
|
35
|
+
if (i > 0) o = o.replace(/^[\/]+/, "");
|
|
36
|
+
o = i < e.length - 1 ? o.replace(/[\/]+$/, "") : o.replace(/[\/]+$/, "/");
|
|
37
|
+
if ("" === o) {
|
|
38
|
+
r = r || l;
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
t.push(o);
|
|
42
|
+
n.push(l || r);
|
|
43
|
+
r = s;
|
|
44
|
+
}
|
|
45
|
+
let i = "";
|
|
46
|
+
for(let e = 0; e < t.length; e++){
|
|
47
|
+
const r = t[e];
|
|
48
|
+
if (0 === e) {
|
|
49
|
+
i += r;
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
const o = t[e - 1];
|
|
53
|
+
if (o && o.endsWith("?")) {
|
|
54
|
+
i += r;
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
if (o.endsWith("#")) {
|
|
58
|
+
i += (n[e] ? "/" : "") + r;
|
|
59
|
+
continue;
|
|
36
60
|
}
|
|
61
|
+
i += "/" + r;
|
|
37
62
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
63
|
+
i = i.replace(/\/(\?|&|#[^!])/g, "$1");
|
|
64
|
+
const o = i.indexOf("#");
|
|
65
|
+
const l = -1 === o ? i : i.slice(0, o);
|
|
66
|
+
const s = -1 === o ? "" : i.slice(o + 1);
|
|
67
|
+
const [c, ...f] = l.split(/(?:\?|&)+/);
|
|
68
|
+
const a = f.filter(Boolean);
|
|
69
|
+
i = c + (a.length > 0 ? "?" : "") + a.join("&") + (s && s.length > 0 ? "#" + s : "");
|
|
70
|
+
return i;
|
|
43
71
|
}
|
|
44
|
-
function urlJoin() {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
return normalize(e);
|
|
72
|
+
function urlJoin(...e) {
|
|
73
|
+
const t = Array.from(Array.isArray(e[0]) ? e[0] : e);
|
|
74
|
+
return normalize(t);
|
|
48
75
|
}
|
|
49
|
-
var
|
|
50
|
-
export {
|
|
76
|
+
var n = t.A;
|
|
77
|
+
export { n as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"url-join","author":"José F. Romaniello <jfromaniello@gmail.com> (http://joseoncode.com)","version":"5.
|
|
1
|
+
{"name":"url-join","author":"José F. Romaniello <jfromaniello@gmail.com> (http://joseoncode.com)","version":"5.1.1","license":"MIT","types":"index.d.ts"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "url-join",
|
|
3
3
|
"sourceName": "url-join",
|
|
4
|
-
"version": "5.
|
|
5
|
-
"entrySha256": "
|
|
4
|
+
"version": "5.1.1",
|
|
5
|
+
"entrySha256": "70d39d57ba47492dff338f397a0157739d36fcdcb476d86a0bfd2fe67dcbaf3c",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"declarationSources": [
|
|
15
15
|
{
|
|
16
16
|
"name": "url-join",
|
|
17
|
-
"version": "5.
|
|
17
|
+
"version": "5.1.1",
|
|
18
18
|
"license": "MIT"
|
|
19
19
|
}
|
|
20
20
|
],
|
|
21
|
-
"lockfileSha256": "
|
|
21
|
+
"lockfileSha256": "581051621a0801558eea756bc6ec0f69d769c47dae2513e61f5cf51555720121"
|
|
22
22
|
}
|
package/dist/types/compiled.d.ts
CHANGED
|
@@ -14,9 +14,9 @@ export { glob } from '../compiled/glob/index.mjs';
|
|
|
14
14
|
export { globby, globbySync } from '../compiled/globby/index.mjs';
|
|
15
15
|
export { gzipSize } from '../compiled/gzip-size/index.mjs';
|
|
16
16
|
export * as yaml from '../compiled/js-yaml/index.mjs';
|
|
17
|
-
export { default as json5 } from '../compiled/json5
|
|
17
|
+
export { default as json5 } from '../compiled/json5';
|
|
18
18
|
export { default as lodash } from '../compiled/lodash/index.js';
|
|
19
|
-
export { default as minimist } from '../compiled/minimist
|
|
19
|
+
export { default as minimist } from '../compiled/minimist';
|
|
20
20
|
export { nanoid } from '../compiled/nanoid/index.mjs';
|
|
21
21
|
export { default as ora } from '../compiled/ora/index.js';
|
|
22
22
|
export { default as pkgUp } from '../compiled/pkg-up/index.js';
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.9.3-ultramodern.
|
|
20
|
+
"version": "3.9.3-ultramodern.8",
|
|
21
21
|
"types": "./dist/types/index.d.ts",
|
|
22
22
|
"main": "./dist/cjs/index.js",
|
|
23
23
|
"module": "./dist/esm/index.mjs",
|
|
@@ -240,8 +240,8 @@
|
|
|
240
240
|
},
|
|
241
241
|
"dependencies": {
|
|
242
242
|
"@swc/helpers": "^0.5.23",
|
|
243
|
-
"caniuse-lite": "^1.0.
|
|
244
|
-
"dotenv": "18.0.
|
|
243
|
+
"caniuse-lite": "^1.0.30001816",
|
|
244
|
+
"dotenv": "18.0.8",
|
|
245
245
|
"fast-glob": "3.3.3",
|
|
246
246
|
"import-meta-resolve": "^4.2.0",
|
|
247
247
|
"lodash": "^4.18.1",
|
|
@@ -249,16 +249,16 @@
|
|
|
249
249
|
"rslog": "^2.3.0"
|
|
250
250
|
},
|
|
251
251
|
"devDependencies": {
|
|
252
|
-
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.3-ultramodern.
|
|
252
|
+
"@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.3-ultramodern.8",
|
|
253
253
|
"@rslib/core": "1.0.3",
|
|
254
254
|
"@scripts/rstest-config": "2.66.0",
|
|
255
|
-
"@types/node": "^26.6.
|
|
256
|
-
"happy-dom": "^
|
|
255
|
+
"@types/node": "^26.6.5",
|
|
256
|
+
"happy-dom": "^21.0.3",
|
|
257
257
|
"rxjs": "7.8.2"
|
|
258
258
|
},
|
|
259
259
|
"peerDependencies": {
|
|
260
|
-
"react": "^19.
|
|
261
|
-
"react-dom": "^19.
|
|
260
|
+
"react": "^19.3.1",
|
|
261
|
+
"react-dom": "^19.3.1"
|
|
262
262
|
},
|
|
263
263
|
"peerDependenciesMeta": {
|
|
264
264
|
"react": {
|