@qse/edu-scripts 1.14.1 → 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
@@ -1,5 +1,9 @@
1
1
  # 更新日志
2
2
 
3
+ ## 1.14.1 (2023-10-11)
4
+
5
+ - fix: esbuild 压缩 target 改成 es5
6
+
3
7
  ## 1.14.0 (2023-10-11)
4
8
 
5
9
  - fix: 修改 browserslist 条件范围,保证包括 IE11,iOS>=9, Chrome>=49
@@ -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 {};
package/lib/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { defineConfig } from './utils/defineConfig';
2
+ export { defineMock } from './config/plugins/mock-server/defineMock';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qse/edu-scripts",
3
- "version": "1.14.1",
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.0",
102
+ "father": "^4.3.5",
103
103
  "jest": "^28.1.3"
104
104
  }
105
105
  }