@automatons/tools
Advanced tools
Comparing version 1.0.6 to 1.0.7
import { Openapi } from "../types"; | ||
export declare const fetch: <T = Openapi>(url: string, openapiPath?: string | undefined) => Promise<T>; | ||
export declare const fetch: <T extends Object = Openapi>(url: string, openapiPath?: string | undefined) => Promise<T>; | ||
//# sourceMappingURL=fetch.d.ts.map |
@@ -32,3 +32,7 @@ "use strict"; | ||
case '.yaml': | ||
return js_yaml_1.safeLoad(data); | ||
const yaml = js_yaml_1.safeLoad(data); | ||
if (typeof yaml === 'object') { | ||
return yaml; | ||
} | ||
throw new Error('Unsupported file format'); | ||
default: | ||
@@ -35,0 +39,0 @@ throw new Error('Unsupported file extension'); |
{ | ||
"name": "@automatons/tools", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"repository": "git@github.com:tanmen/openapi-automatons.git", | ||
@@ -40,3 +40,3 @@ "author": "tanmen <yt.prog@gmail.com>", | ||
}, | ||
"gitHead": "998515bbcb04ac04aed3487f4c388c0ac8f93dbb" | ||
"gitHead": "f4ed72d9cf99bd2ab61d3eea19e4770e1cde0af3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47106
762