@modern-js/utils 3.1.1 → 3.1.3
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/browserslist/index.js +1 -1
- package/dist/compiled/chokidar/index.js +1 -1
- package/dist/compiled/execa/index.js +1 -1
- package/dist/compiled/fast-glob/index.js +1 -1
- package/dist/compiled/inquirer/index.js +1 -1
- package/dist/compiled/js-yaml/index.js +1 -1
- package/dist/compiled/json5/index.js +4 -4
- package/dist/compiled/webpack-chain/index.js +1 -1
- package/dist/esm/cli/get/index.mjs +2 -2
- package/dist/esm/compiled.mjs +1 -1
- package/dist/esm/rslib-runtime.mjs +1 -15
- package/dist/esm-node/cli/get/index.mjs +2 -2
- package/package.json +4 -4
|
@@ -1026,7 +1026,7 @@
|
|
|
1026
1026
|
if (Array.isArray(n)) return n;
|
|
1027
1027
|
else if ("object" == typeof n) {
|
|
1028
1028
|
if (!n.defaults) n.defaults = [];
|
|
1029
|
-
return pickEnv(n, e
|
|
1029
|
+
return pickEnv(n, e);
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
1032
|
throw new o("`" + s + "` config exports not an array of queries or an object of envs");
|
|
@@ -19714,7 +19714,7 @@
|
|
|
19714
19714
|
},
|
|
19715
19715
|
6333: (e, t, r)=>{
|
|
19716
19716
|
var n = r(2781);
|
|
19717
|
-
|
|
19717
|
+
e.exports = through;
|
|
19718
19718
|
through.through = through;
|
|
19719
19719
|
function through(e, t, r) {
|
|
19720
19720
|
e = e || function(e) {
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
case R:
|
|
318
318
|
return ">" + blockHeader(t, e.indent) + dropEndingNewline(indentString(foldString(t, l), o));
|
|
319
319
|
case q:
|
|
320
|
-
return '"' + escapeString(t
|
|
320
|
+
return '"' + escapeString(t) + '"';
|
|
321
321
|
default:
|
|
322
322
|
throw new n("impossible error: invalid scalar style");
|
|
323
323
|
}
|
|
@@ -816,7 +816,7 @@
|
|
|
816
816
|
case false:
|
|
817
817
|
return "false";
|
|
818
818
|
}
|
|
819
|
-
if ("string" == typeof e) return quoteString(e
|
|
819
|
+
if ("string" == typeof e) return quoteString(e);
|
|
820
820
|
if ("number" == typeof e) return String(e);
|
|
821
821
|
if ("object" == typeof e) return Array.isArray(e) ? serializeArray(e) : serializeObject(e);
|
|
822
822
|
}
|
|
@@ -903,10 +903,10 @@
|
|
|
903
903
|
return A;
|
|
904
904
|
}
|
|
905
905
|
function serializeKey(u) {
|
|
906
|
-
if (0 === u.length) return quoteString(u
|
|
906
|
+
if (0 === u.length) return quoteString(u);
|
|
907
907
|
const D = String.fromCodePoint(u.codePointAt(0));
|
|
908
|
-
if (!r.isIdStartChar(D)) return quoteString(u
|
|
909
|
-
for(let e = D.length; e < u.length; e++)if (!r.isIdContinueChar(String.fromCodePoint(u.codePointAt(e)))) return quoteString(u
|
|
908
|
+
if (!r.isIdStartChar(D)) return quoteString(u);
|
|
909
|
+
for(let e = D.length; e < u.length; e++)if (!r.isIdContinueChar(String.fromCodePoint(u.codePointAt(e)))) return quoteString(u);
|
|
910
910
|
return u;
|
|
911
911
|
}
|
|
912
912
|
function serializeArray(u) {
|
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
const r = s(210);
|
|
356
356
|
const objectToString = (e, t, s, n)=>{
|
|
357
357
|
if ("function" == typeof Buffer && Buffer.isBuffer(e)) return `Buffer.from(${s(e.toString("base64"))}, 'base64')`;
|
|
358
|
-
if ("object" == typeof global && e === global) return globalToString(e, t, s
|
|
358
|
+
if ("object" == typeof global && e === global) return globalToString(e, t, s);
|
|
359
359
|
const i = o[Object.prototype.toString.call(e)];
|
|
360
360
|
return i ? i(e, t, s, n) : void 0;
|
|
361
361
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from "./data.mjs";
|
|
2
|
-
export * from "./config.mjs";
|
|
3
1
|
import path from "path";
|
|
4
2
|
import { CONFIG_FILE_EXTENSIONS } from "../constants.mjs";
|
|
5
3
|
import { findExists } from "../fs.mjs";
|
|
4
|
+
export * from "./data.mjs";
|
|
5
|
+
export * from "./config.mjs";
|
|
6
6
|
const getServerConfig = async (appDirectory, configFile)=>{
|
|
7
7
|
const configFilePath = findExists(CONFIG_FILE_EXTENSIONS.map((extension)=>path.resolve(appDirectory, `${configFile}${extension}`)));
|
|
8
8
|
return configFilePath;
|
package/dist/esm/compiled.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __webpack_require__ } from "./rslib-runtime.mjs";
|
|
2
1
|
import { createRequire } from "node:module";
|
|
3
2
|
import { Import } from "./import.mjs";
|
|
3
|
+
import { __webpack_require__ } from "./rslib-runtime.mjs";
|
|
4
4
|
import signale from "../compiled/signale/index.js";
|
|
5
5
|
const { Signale: Signale } = signale;
|
|
6
6
|
const getNodeRequire = ()=>{
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
var
|
|
2
|
-
function __webpack_require__(moduleId) {
|
|
3
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
4
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
5
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
6
|
-
exports: {}
|
|
7
|
-
};
|
|
8
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
9
|
-
return module.exports;
|
|
10
|
-
}
|
|
11
|
-
(()=>{
|
|
12
|
-
__webpack_require__.add = function(modules) {
|
|
13
|
-
Object.assign(__webpack_require__.m, modules);
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
1
|
+
var __webpack_require__ = {};
|
|
16
2
|
(()=>{
|
|
17
3
|
__webpack_require__.g = (()=>{
|
|
18
4
|
if ('object' == typeof globalThis) return globalThis;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "node:module";
|
|
2
|
-
export * from "./data.mjs";
|
|
3
|
-
export * from "./config.mjs";
|
|
4
2
|
import path from "path";
|
|
5
3
|
import { CONFIG_FILE_EXTENSIONS } from "../constants.mjs";
|
|
6
4
|
import { findExists } from "../fs.mjs";
|
|
5
|
+
export * from "./data.mjs";
|
|
6
|
+
export * from "./config.mjs";
|
|
7
7
|
const getServerConfig = async (appDirectory, configFile)=>{
|
|
8
8
|
const configFilePath = findExists(CONFIG_FILE_EXTENSIONS.map((extension)=>path.resolve(appDirectory, `${configFile}${extension}`)));
|
|
9
9
|
return configFilePath;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.1.
|
|
18
|
+
"version": "3.1.3",
|
|
19
19
|
"types": "./dist/types/index.d.ts",
|
|
20
20
|
"main": "./dist/cjs/index.js",
|
|
21
21
|
"module": "./dist/esm/index.mjs",
|
|
@@ -142,12 +142,12 @@
|
|
|
142
142
|
"rslog": "^1.3.2"
|
|
143
143
|
},
|
|
144
144
|
"devDependencies": {
|
|
145
|
-
"@rslib/core": "0.
|
|
145
|
+
"@rslib/core": "0.21.0",
|
|
146
146
|
"@types/node": "^20",
|
|
147
|
-
"happy-dom": "^20.8.
|
|
147
|
+
"happy-dom": "^20.8.9",
|
|
148
148
|
"typescript": "^5",
|
|
149
149
|
"@modern-js/rslib": "2.68.10",
|
|
150
|
-
"@modern-js/types": "3.1.
|
|
150
|
+
"@modern-js/types": "3.1.3",
|
|
151
151
|
"@scripts/rstest-config": "2.66.0"
|
|
152
152
|
},
|
|
153
153
|
"peerDependencies": {
|