@api-platform/api-doc-parser
Advanced tools
Comparing version 0.14.0 to 0.14.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var cross_fetch_1 = tslib_1.__importDefault(require("cross-fetch")); | ||
var Api_1 = require("../Api"); | ||
@@ -9,3 +8,3 @@ var handleJson_1 = tslib_1.__importStar(require("./handleJson")); | ||
entrypointUrl = (0, handleJson_1.removeTrailingSlash)(entrypointUrl); | ||
return (0, cross_fetch_1.default)(entrypointUrl) | ||
return fetch(entrypointUrl) | ||
.then(function (res) { return Promise.all([res, res.json()]); }) | ||
@@ -12,0 +11,0 @@ .then(function (_a) { |
@@ -1,2 +0,1 @@ | ||
import fetch from "cross-fetch"; | ||
import { Api } from "../Api"; | ||
@@ -3,0 +2,0 @@ import handleJson, { removeTrailingSlash } from "./handleJson"; |
{ | ||
"name": "@api-platform/api-doc-parser", | ||
"version": "0.14.0", | ||
"version": "0.14.1", | ||
"description": "Transform an API documentation (Hydra, OpenAPI, GraphQL) in an intermediate representation that can be used for various tasks such as creating smart API clients, scaffolding code or building administration interfaces.", | ||
@@ -37,3 +37,2 @@ "files": [ | ||
"dependencies": { | ||
"cross-fetch": "^3.0.0", | ||
"graphql": "^16.0.0", | ||
@@ -40,0 +39,0 @@ "inflection": "^1.13.0", |
import { OpenAPIV3 } from "openapi-types"; | ||
import fetch from "cross-fetch"; | ||
import { Api } from "../Api"; | ||
@@ -4,0 +3,0 @@ import handleJson, { removeTrailingSlash } from "./handleJson"; |
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
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
6
375752
8198
8
- Removedcross-fetch@^3.0.0
- Removedcross-fetch@3.1.8(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removedtr46@0.0.3(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)