@omer-x/next-openapi-json-generator 1.1.0 → 1.1.1

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
@@ -195,7 +195,7 @@ function deepEqual(a, b) {
195
195
  }
196
196
 
197
197
  // src/core/zod-to-openapi.ts
198
- var import_zod_to_json_schema = __toESM(require("zod-to-json-schema"), 1);
198
+ var import_zod_to_json_schema = require("zod-to-json-schema");
199
199
 
200
200
  // src/utils/zod-schema.ts
201
201
  function isFile(schema) {
@@ -205,7 +205,7 @@ function isFile(schema) {
205
205
 
206
206
  // src/core/zod-to-openapi.ts
207
207
  function convertToOpenAPI(schema, isArray) {
208
- const result = (0, import_zod_to_json_schema.default)(isArray ? schema.array() : schema, {
208
+ const result = (0, import_zod_to_json_schema.zodToJsonSchema)(isArray ? schema.array() : schema, {
209
209
  target: "openApi3",
210
210
  $refStrategy: "none"
211
211
  });
package/dist/index.js CHANGED
@@ -159,7 +159,7 @@ function deepEqual(a, b) {
159
159
  }
160
160
 
161
161
  // src/core/zod-to-openapi.ts
162
- import zodToJsonSchema from "zod-to-json-schema";
162
+ import { zodToJsonSchema } from "zod-to-json-schema";
163
163
 
164
164
  // src/utils/zod-schema.ts
165
165
  function isFile(schema) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omer-x/next-openapi-json-generator",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "a Next.js plugin to generate OpenAPI documentation from route handlers",
5
5
  "keywords": [
6
6
  "next.js",
@@ -45,7 +45,7 @@
45
45
  "build": "tsup"
46
46
  },
47
47
  "dependencies": {
48
- "@omer-x/package-metadata": "^0.1.2",
48
+ "@omer-x/package-metadata": "^1.0.0",
49
49
  "minimatch": "^10.0.1",
50
50
  "typescript": "^5.6.3",
51
51
  "zod-to-json-schema": "^3.23.3"
@@ -53,9 +53,9 @@
53
53
  "devDependencies": {
54
54
  "@omer-x/eslint-config": "^1.0.7",
55
55
  "@omer-x/openapi-types": "^0.2.1",
56
- "@types/node": "^22.7.5",
56
+ "@types/node": "^22.7.9",
57
57
  "eslint": "^8.57.1",
58
- "semantic-release": "^24.1.2",
58
+ "semantic-release": "^24.1.3",
59
59
  "ts-jest": "^29.2.5",
60
60
  "ts-node": "^10.9.2",
61
61
  "tsup": "^8.3.0",