@qse/edu-scripts 1.14.0 → 1.14.2
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
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RequestHandler } from 'express';
|
|
2
|
+
type Method = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'CONNECT' | 'TRACE';
|
|
3
|
+
type API = string;
|
|
4
|
+
export type MockConfig = Record<`${Method} ${API}`, string | number | null | undefined | boolean | Record<string, any> | RequestHandler>;
|
|
5
|
+
export declare function defineMock(config: MockConfig): MockConfig;
|
|
6
|
+
export {};
|
|
@@ -361,7 +361,7 @@ module.exports = function getWebpackConfig(args, override) {
|
|
|
361
361
|
drop: ["debugger"],
|
|
362
362
|
keepNames: false,
|
|
363
363
|
legalComments: "none",
|
|
364
|
-
target: "
|
|
364
|
+
target: "es5"
|
|
365
365
|
}),
|
|
366
366
|
// This is only used in production mode
|
|
367
367
|
override.minify === "terser" && new TerserPlugin({
|
package/lib/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qse/edu-scripts",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"author": "Kinoko",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "教育工程化基础框架",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"@types/yargs": "^17.0.24",
|
|
100
100
|
"dumi": "^1.1.50",
|
|
101
101
|
"eslint-config-qsb-react": "^1.1.1",
|
|
102
|
-
"father": "^4.3.
|
|
102
|
+
"father": "^4.3.5",
|
|
103
103
|
"jest": "^28.1.3"
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -387,7 +387,7 @@ module.exports = function getWebpackConfig(args, override) {
|
|
|
387
387
|
drop: ['debugger'],
|
|
388
388
|
keepNames: false,
|
|
389
389
|
legalComments: 'none',
|
|
390
|
-
target: '
|
|
390
|
+
target: 'es5',
|
|
391
391
|
}),
|
|
392
392
|
// This is only used in production mode
|
|
393
393
|
override.minify === 'terser' &&
|