Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@api-platform/api-doc-parser

Package Overview
Dependencies
Maintainers
6
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@api-platform/api-doc-parser - npm Package Compare versions

Comparing version 0.14.0 to 0.14.1

3

lib/cjs/openapi3/parseOpenApi3Documentation.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc