@aomex/openapi 3.28.2 → 3.29.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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.29.0](https://github.com/aomex/aomex/compare/v3.28.3...v3.29.0) (2025-07-17)
7
+
8
+ **Note:** Version bump only for package @aomex/openapi
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.28.3](https://github.com/aomex/aomex/compare/v3.28.2...v3.28.3) (2025-07-10)
15
+
16
+ **Note:** Version bump only for package @aomex/openapi
17
+
18
+
19
+
20
+
21
+
6
22
  ## [3.28.2](https://github.com/aomex/aomex/compare/v3.28.1...v3.28.2) (2025-07-09)
7
23
 
8
24
  **Note:** Version bump only for package @aomex/openapi
package/dist/index.js CHANGED
@@ -27,10 +27,10 @@ var esm_default = n;
27
27
 
28
28
  // src/lib/generate-document-with-spinner.ts
29
29
  import { pathToFiles } from "@aomex/internal-file-import";
30
- import path4 from "node:path";
30
+ import path4 from "path";
31
31
 
32
32
  // src/lib/validate-openapi.ts
33
- import { createRequire } from "node:module";
33
+ import { createRequire } from "module";
34
34
  var requireCJS = createRequire(import.meta.url);
35
35
  var _spectral = null;
36
36
  var initSpectral = () => {
@@ -114,8 +114,8 @@ var methodParameterToPathParameter = (document) => {
114
114
  };
115
115
 
116
116
  // src/lib/save-to-file.ts
117
- import path from "node:path";
118
- import { mkdir, writeFile } from "node:fs/promises";
117
+ import path from "path";
118
+ import { mkdir, writeFile } from "fs/promises";
119
119
  import YAML from "yaml";
120
120
  import { bytes } from "@aomex/internal-tools";
121
121
  var saveToFile = async (document, filename, fileMode) => {
@@ -129,8 +129,8 @@ var saveToFile = async (document, filename, fileMode) => {
129
129
  };
130
130
 
131
131
  // src/lib/initialize-document.ts
132
- import { readFile } from "node:fs/promises";
133
- import path2 from "node:path";
132
+ import { readFile } from "fs/promises";
133
+ import path2 from "path";
134
134
  var initializeDocument = async (basic) => {
135
135
  const document = JSON.parse(JSON.stringify(basic || {}));
136
136
  document.openapi ||= "3.0.3";
@@ -154,7 +154,7 @@ var readPackageJson = async () => {
154
154
  // src/lib/parse-files.ts
155
155
  import { getFileValues } from "@aomex/internal-file-import";
156
156
  import { Router, WebMiddleware } from "@aomex/web";
157
- import path3 from "node:path";
157
+ import path3 from "path";
158
158
 
159
159
  // src/lib/method-to-verb.ts
160
160
  var methodToVerb = (method, uri) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aomex/openapi",
3
- "version": "3.28.2",
3
+ "version": "3.29.0",
4
4
  "description": "Openapi文档生成工具",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "@stoplight/spectral-core": "^1.19.1",
42
42
  "@stoplight/spectral-rulesets": "^1.20.2",
43
43
  "lodash.snakecase": "^4.1.1",
44
- "yaml": "^2.6.0"
44
+ "yaml": "^2.8.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@aomex/common": "",