@scalar/oas-utils
Advanced tools
Comparing version 0.2.91 to 0.2.92
# @scalar/oas-utils | ||
## 0.2.92 | ||
### Patch Changes | ||
- 02b4201: fix(api-client): strict TS config (enable noUncheckedIndexedAccess) | ||
## 0.2.91 | ||
@@ -4,0 +10,0 @@ |
@@ -27,4 +27,4 @@ import { type RequestMethod } from '../entities/spec/requests.js'; | ||
/** Type guard which takes in a string and returns true if it is in fact an HTTPMethod */ | ||
export declare const isHttpMethod: (method: string) => method is RequestMethod; | ||
export declare const isHttpMethod: (method?: string | undefined) => method is RequestMethod; | ||
export {}; | ||
//# sourceMappingURL=httpMethods.d.ts.map |
@@ -70,4 +70,4 @@ import { requestMethods } from '../entities/spec/requests.js'; | ||
/** Type guard which takes in a string and returns true if it is in fact an HTTPMethod */ | ||
const isHttpMethod = (method) => requestMethods.includes(method); | ||
const isHttpMethod = (method) => method ? requestMethods.includes(method) : false; | ||
export { REQUEST_METHODS, canMethodHaveBody, getHttpMethodInfo, isHttpMethod }; |
@@ -19,3 +19,3 @@ { | ||
], | ||
"version": "0.2.91", | ||
"version": "0.2.92", | ||
"engines": { | ||
@@ -121,4 +121,4 @@ "node": ">=18" | ||
"@scalar/object-utils": "1.1.12", | ||
"@scalar/openapi-types": "0.1.5", | ||
"@scalar/themes": "0.9.58", | ||
"@scalar/openapi-types": "0.1.5", | ||
"@scalar/types": "0.0.25" | ||
@@ -131,4 +131,4 @@ }, | ||
"zod-to-ts": "github:amritk/zod-to-ts#build", | ||
"@scalar/openapi-parser": "0.10.2", | ||
"@scalar/build-tooling": "0.1.12", | ||
"@scalar/openapi-parser": "0.10.1", | ||
"@scalar/openapi-types": "0.1.5" | ||
@@ -135,0 +135,0 @@ }, |
Sorry, the diff of this file is not supported yet
465767