@moneko/core 3.10.6 → 3.11.0-beta.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/lib/dev/mock.d.mts +1 -1
- package/lib/utils/index.d.mts +1 -1
- package/package.json +16 -15
package/lib/dev/mock.d.mts
CHANGED
|
@@ -20,7 +20,7 @@ type Any = any;
|
|
|
20
20
|
* @param {T} data data
|
|
21
21
|
* @returns {Promise} mockData
|
|
22
22
|
*/
|
|
23
|
-
export declare const yApiSchemaMock: <T extends unknown>(option: YApiOptionBySchema, data?: T
|
|
23
|
+
export declare const yApiSchemaMock: <T extends unknown>(option: YApiOptionBySchema, data?: T) => Promise<T>;
|
|
24
24
|
export type YApiOption = {
|
|
25
25
|
/** YApi host */
|
|
26
26
|
host: string;
|
package/lib/utils/index.d.mts
CHANGED
|
@@ -10,7 +10,7 @@ export declare function resolveProgramPath<T extends string>(src: T): ProgramPat
|
|
|
10
10
|
* @param {string} src 路径
|
|
11
11
|
* @returns {string} 位于项目根目录node_modules下的位置
|
|
12
12
|
*/
|
|
13
|
-
export declare const resolveNodeModulesPath: <T extends string>(src: T) =>
|
|
13
|
+
export declare const resolveNodeModulesPath: <T extends string>(src: T) => NodeModulesPath<T>;
|
|
14
14
|
/** 获取模块真实入口位置
|
|
15
15
|
* @param {string} url 路径
|
|
16
16
|
* @returns {string} 模块真实入口路径
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.0-beta.1",
|
|
4
4
|
"description": "core",
|
|
5
5
|
"main": "lib/index.mjs",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"prebuild": "oxlint -c ./eslintrc.json -D correctness -D restriction src",
|
|
9
8
|
"build": "rm -rf ./lib && tsc && swc src -d lib --strip-leading-paths -D",
|
|
10
9
|
"postbuild": "npm run cjs && npm run mjs",
|
|
11
10
|
"cjs": "find ./lib/loader/ -type f -name \"*.js\" -execdir bash -c 'mv \"$1\" \"${1%.js}.cjs\"' _ {} \\;",
|
|
@@ -16,27 +15,27 @@
|
|
|
16
15
|
"license": "MIT",
|
|
17
16
|
"dependencies": {
|
|
18
17
|
"@moneko/mdx": "0.1.26",
|
|
19
|
-
"@moneko/transform-imports": "0.
|
|
20
|
-
"@swc/core": "1.
|
|
18
|
+
"@moneko/transform-imports": "0.4.0",
|
|
19
|
+
"@swc/core": "1.4.11",
|
|
21
20
|
"add-asset-html-webpack-plugin": "6.0.0",
|
|
22
21
|
"chalk": "5.3.0",
|
|
23
22
|
"chokidar": "3.6.0",
|
|
24
|
-
"core-js": "3.36.
|
|
25
|
-
"core-js-compat": "3.36.
|
|
23
|
+
"core-js": "3.36.1",
|
|
24
|
+
"core-js-compat": "3.36.1",
|
|
26
25
|
"cross-env": "7.0.3",
|
|
27
26
|
"css-loader": "6.10.0",
|
|
28
|
-
"express": "4.
|
|
27
|
+
"express": "4.19.2",
|
|
29
28
|
"html-webpack-plugin": "5.6.0",
|
|
30
29
|
"http-proxy-middleware": "2.0.6",
|
|
31
30
|
"less": "4.2.0",
|
|
32
31
|
"less-loader": "12.2.0",
|
|
33
|
-
"lightningcss": "1.
|
|
34
|
-
"mini-css-extract-plugin": "2.8.
|
|
32
|
+
"lightningcss": "1.24.1",
|
|
33
|
+
"mini-css-extract-plugin": "2.8.1",
|
|
35
34
|
"mock-json-schema": "1.1.1",
|
|
36
35
|
"multer": "1.4.5-lts.1",
|
|
37
36
|
"style-loader": "3.3.4",
|
|
38
37
|
"swc-loader": "0.2.6",
|
|
39
|
-
"typescript": "5.
|
|
38
|
+
"typescript": "5.4.3",
|
|
40
39
|
"webpack": "5.90.2",
|
|
41
40
|
"webpack-bundle-analyzer": "4.10.1",
|
|
42
41
|
"webpack-dev-middleware": "7.0.0",
|
|
@@ -47,16 +46,18 @@
|
|
|
47
46
|
"xml2js": "0.6.2"
|
|
48
47
|
},
|
|
49
48
|
"devDependencies": {
|
|
50
|
-
"@swc/cli": "0.3.
|
|
49
|
+
"@swc/cli": "0.3.12",
|
|
51
50
|
"@types/express": "4.17.21",
|
|
52
51
|
"@types/multer": "1.4.11",
|
|
53
|
-
"
|
|
54
|
-
"sass": "1.
|
|
55
|
-
"sass-loader": "14.1.0"
|
|
52
|
+
"sass": "1.72.0",
|
|
53
|
+
"sass-loader": "14.1.1"
|
|
56
54
|
},
|
|
57
55
|
"files": [
|
|
58
56
|
"lib",
|
|
59
57
|
"typings/global.d.ts",
|
|
60
58
|
"typings/bundle-analyzer.d.ts"
|
|
61
|
-
]
|
|
59
|
+
],
|
|
60
|
+
"resolutions": {
|
|
61
|
+
"@types/mime": "3.0.4"
|
|
62
|
+
}
|
|
62
63
|
}
|