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.
@@ -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.9.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-TKIDWJ3F.js";
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.9.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
@@ -7,7 +7,7 @@ import {
7
7
  openApiSchemaToTs,
8
8
  tsFactory,
9
9
  unwrap
10
- } from "./chunk-TKIDWJ3F.js";
10
+ } from "./chunk-WT2PCM73.js";
11
11
  export {
12
12
  createBoxFactory,
13
13
  createFactory,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "typed-openapi",
3
3
  "type": "module",
4
- "version": "0.9.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.3",
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