@dazhicheng/utils 1.3.39 → 1.3.41

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/openapi.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazhicheng/utils",
3
- "version": "1.3.39",
3
+ "version": "1.3.41",
4
4
  "description": "工具库",
5
5
  "main": "./dist/index.esm.js",
6
6
  "type": "module",
@@ -51,7 +51,7 @@
51
51
  "defu": "^6.1.4",
52
52
  "klona": "^2.0.6",
53
53
  "tailwind-merge": "^3.5.0",
54
- "@dazhicheng/openapi": "1.1.11"
54
+ "@dazhicheng/openapi": "1.1.13"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "axios": "^1.13.4",
package/src/openapi.ts CHANGED
@@ -150,10 +150,11 @@ export async function runOpenAPI(
150
150
  },
151
151
  };
152
152
 
153
+ const authHeader = await resolveAuthorization();
154
+
153
155
  for (const config of services) {
154
156
  console.log(`🚀 [${env}] 正在生成: ${config.projectName} -> ${config.schemaPath}`);
155
157
  try {
156
- const authHeader = await resolveAuthorization();
157
158
  await ttOpenAPI({
158
159
  ...config,
159
160
  authorization: authHeader,