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

openapi-gen-typescript

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-gen-typescript - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

2

dist/utils/getInterfaceInfo.js

@@ -55,3 +55,3 @@ "use strict";

const splitRef = ref.replace(/^[^/]+\/components\//, '').split('/');
const result = _.get(openApiData.components, splitRef.join('.'));
const result = _.get(openApiData.components, splitRef);
const { content, description } = result;

@@ -58,0 +58,0 @@ const requestBodyCode = yield genCodeFromContent(content, typename, description, arr);

{
"name": "openapi-gen-typescript",
"version": "0.4.1",
"version": "0.4.2",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

@@ -57,3 +57,3 @@ // @ts-ignore

const splitRef = ref.replace(/^[^/]+\/components\//, '').split('/');
const result = _.get(openApiData.components, splitRef.join('.'));
const result = _.get(openApiData.components, splitRef);
const { content, description }: ReferenceObject & RequestBodyObject = result as any;

@@ -60,0 +60,0 @@ const requestBodyCode = await genCodeFromContent(content, typename, description, arr);

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