@modern-js/create 3.0.0-alpha.2 → 3.0.0
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/index.js +0 -3
- package/package.json +4 -4
- package/template/.browserslistrc +4 -5
package/dist/index.js
CHANGED
|
@@ -3,7 +3,6 @@ import node_path from "node:path";
|
|
|
3
3
|
import node_readline from "node:readline";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
import "node:module";
|
|
6
|
-
/*#__PURE__*/ import.meta.url;
|
|
7
6
|
class I18CLILanguageDetector {
|
|
8
7
|
formatShellLocale(rawLC) {
|
|
9
8
|
if (!rawLC) return '';
|
|
@@ -392,7 +391,6 @@ function isString(value) {
|
|
|
392
391
|
return 'string' == typeof value || !lodash_es_isArray(value) && lodash_es_isObjectLike(value) && _baseGetTag(value) == stringTag;
|
|
393
392
|
}
|
|
394
393
|
const lodash_es_isString = isString;
|
|
395
|
-
/*#__PURE__*/ import.meta.url;
|
|
396
394
|
function getObjKeyMap(obj, prefix = '') {
|
|
397
395
|
const result = {};
|
|
398
396
|
Object.keys(obj).forEach((key)=>{
|
|
@@ -401,7 +399,6 @@ function getObjKeyMap(obj, prefix = '') {
|
|
|
401
399
|
});
|
|
402
400
|
return result;
|
|
403
401
|
}
|
|
404
|
-
/*#__PURE__*/ import.meta.url;
|
|
405
402
|
class I18n {
|
|
406
403
|
format(msg, vars) {
|
|
407
404
|
return msg.replace(/\{(\w+)\}/g, (_match, capture)=>Object.prototype.hasOwnProperty.call(vars, capture) ? vars[capture] : capture);
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=20"
|
|
21
21
|
},
|
|
22
|
-
"version": "3.0.0
|
|
22
|
+
"version": "3.0.0",
|
|
23
23
|
"types": "./dist/types/index.d.ts",
|
|
24
24
|
"main": "./dist/index.js",
|
|
25
25
|
"bin": {
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"bin.js"
|
|
35
35
|
],
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@rslib/core": "0.19.
|
|
37
|
+
"@rslib/core": "0.19.4",
|
|
38
38
|
"@types/node": "^20",
|
|
39
39
|
"tsx": "^4.21.0",
|
|
40
40
|
"typescript": "^5",
|
|
41
|
-
"@modern-js/
|
|
42
|
-
"@modern-js/
|
|
41
|
+
"@modern-js/rslib": "2.68.10",
|
|
42
|
+
"@modern-js/i18n-utils": "3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"registry": "https://registry.npmjs.org/",
|
package/template/.browserslistrc
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
chrome >=
|
|
2
|
-
edge >=
|
|
3
|
-
firefox >=
|
|
4
|
-
safari >=
|
|
5
|
-
ios_saf >= 10
|
|
1
|
+
chrome >= 87
|
|
2
|
+
edge >= 88
|
|
3
|
+
firefox >= 78
|
|
4
|
+
safari >= 14
|