@1szx1/vite-plugin-swagger2ts 1.3.14 → 1.3.15

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/dist/index.cjs CHANGED
@@ -208,7 +208,7 @@ function generatorResponseBodyType(schemas, docsName) {
208
208
  return jsDoc({ description }, { key: "response", result });
209
209
  }
210
210
  function jsDoc({ description, title, format, example, default: default1 }, { key, result, isRoot, isExport, isRequired }) {
211
- if (!(isRoot || isExport) && !/^[^'"]*$/.test(key))
211
+ if (!(isRoot || isExport) && /^[^'"]*$/.test(key))
212
212
  key = `'${key}'`;
213
213
  const jsDoc2 = `
214
214
  /**
package/dist/index.mjs CHANGED
@@ -199,7 +199,7 @@ function generatorResponseBodyType(schemas, docsName) {
199
199
  return jsDoc({ description }, { key: "response", result });
200
200
  }
201
201
  function jsDoc({ description, title, format, example, default: default1 }, { key, result, isRoot, isExport, isRequired }) {
202
- if (!(isRoot || isExport) && !/^[^'"]*$/.test(key))
202
+ if (!(isRoot || isExport) && /^[^'"]*$/.test(key))
203
203
  key = `'${key}'`;
204
204
  const jsDoc2 = `
205
205
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@1szx1/vite-plugin-swagger2ts",
3
3
  "description": "forked from https://github.com/morelearn1990/vite-plugin-swagger2ts",
4
- "version": "1.3.14",
4
+ "version": "1.3.15",
5
5
  "license": "MIT",
6
6
  "author": "1SZX1 <2414126198@qq.com>",
7
7
  "repository": {