typed-openapi 0.9.0 → 0.10.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/dist/{chunk-TKIDWJ3F.js → chunk-WT2PCM73.js} +1 -1
- package/dist/cli.cjs +2 -2
- package/dist/cli.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/generator.ts +1 -1
|
@@ -438,7 +438,7 @@ export type EndpointParameters = {
|
|
|
438
438
|
};
|
|
439
439
|
|
|
440
440
|
export type MutationMethod = "post" | "put" | "patch" | "delete";
|
|
441
|
-
export type Method = "get" | "head" | MutationMethod;
|
|
441
|
+
export type Method = "get" | "head" | "options" | MutationMethod;
|
|
442
442
|
|
|
443
443
|
type RequestFormat = "json" | "form-data" | "form-url" | "binary" | "text";
|
|
444
444
|
|
package/dist/cli.cjs
CHANGED
|
@@ -31,7 +31,7 @@ var import_promises = require("fs/promises");
|
|
|
31
31
|
|
|
32
32
|
// package.json
|
|
33
33
|
var name = "typed-openapi";
|
|
34
|
-
var version = "0.
|
|
34
|
+
var version = "0.10.0";
|
|
35
35
|
|
|
36
36
|
// src/generator.ts
|
|
37
37
|
var import_server2 = require("pastable/server");
|
|
@@ -473,7 +473,7 @@ export type EndpointParameters = {
|
|
|
473
473
|
};
|
|
474
474
|
|
|
475
475
|
export type MutationMethod = "post" | "put" | "patch" | "delete";
|
|
476
|
-
export type Method = "get" | "head" | MutationMethod;
|
|
476
|
+
export type Method = "get" | "head" | "options" | MutationMethod;
|
|
477
477
|
|
|
478
478
|
type RequestFormat = "json" | "form-data" | "form-url" | "binary" | "text";
|
|
479
479
|
|
package/dist/cli.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
allowedRuntimes,
|
|
3
3
|
generateFile,
|
|
4
4
|
mapOpenApiEndpoints
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WT2PCM73.js";
|
|
6
6
|
|
|
7
7
|
// src/cli.ts
|
|
8
8
|
import SwaggerParser from "@apidevtools/swagger-parser";
|
|
@@ -13,7 +13,7 @@ import { writeFile } from "fs/promises";
|
|
|
13
13
|
|
|
14
14
|
// package.json
|
|
15
15
|
var name = "typed-openapi";
|
|
16
|
-
var version = "0.
|
|
16
|
+
var version = "0.10.0";
|
|
17
17
|
|
|
18
18
|
// src/cli.ts
|
|
19
19
|
var cwd = process.cwd();
|
package/dist/index.cjs
CHANGED
|
@@ -481,7 +481,7 @@ export type EndpointParameters = {
|
|
|
481
481
|
};
|
|
482
482
|
|
|
483
483
|
export type MutationMethod = "post" | "put" | "patch" | "delete";
|
|
484
|
-
export type Method = "get" | "head" | MutationMethod;
|
|
484
|
+
export type Method = "get" | "head" | "options" | MutationMethod;
|
|
485
485
|
|
|
486
486
|
type RequestFormat = "json" | "form-data" | "form-url" | "binary" | "text";
|
|
487
487
|
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typed-openapi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"bin": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@apidevtools/swagger-parser": "^10.1.0",
|
|
17
17
|
"@changesets/cli": "^2.26.2",
|
|
18
|
-
"@sinclair/typebox-codegen": "^0.10.
|
|
18
|
+
"@sinclair/typebox-codegen": "^0.10.5",
|
|
19
19
|
"arktype": "1.0.18-alpha",
|
|
20
20
|
"cac": "^6.7.14",
|
|
21
21
|
"openapi3-ts": "^4.1.2",
|
package/src/generator.ts
CHANGED
|
@@ -234,7 +234,7 @@ export type EndpointParameters = {
|
|
|
234
234
|
};
|
|
235
235
|
|
|
236
236
|
export type MutationMethod = "post" | "put" | "patch" | "delete";
|
|
237
|
-
export type Method = "get" | "head" | MutationMethod;
|
|
237
|
+
export type Method = "get" | "head" | "options" | MutationMethod;
|
|
238
238
|
|
|
239
239
|
type RequestFormat = "json" | "form-data" | "form-url" | "binary" | "text";
|
|
240
240
|
|