New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

api-typescript-generator

Package Overview
Dependencies
Maintainers
0
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-typescript-generator - npm Package Compare versions

Comparing version 2.4.17 to 2.4.18

4

lib/schema-to-typescript/common.js

@@ -109,7 +109,7 @@ "use strict";

let jsdoc = (0, jsdoc_1.extractJsDoc)(fieldSchema);
const currentProcessJsDocPath = processJsDocPath !== null && processJsDocPath !== void 0 ? processJsDocPath : [];
const currentProcessJsDocPath = (processJsDocPath !== null && processJsDocPath !== void 0 ? processJsDocPath : []).concat(fieldName);
if (processJsDoc) {
jsdoc = processJsDoc(jsdoc, fieldSchema, currentProcessJsDocPath);
}
return (0, jsdoc_1.attachJsDocComment)(Object.assign((0, types_1.tsPropertySignature)(objectPropertyKey(fieldName), (0, types_1.tsTypeAnnotation)(generateSchemaType(Object.assign(Object.assign({ schema: fieldSchema }, commonSchemaGenerationOptions), { processJsDocPath: currentProcessJsDocPath.concat(fieldName) })))), {
return (0, jsdoc_1.attachJsDocComment)(Object.assign((0, types_1.tsPropertySignature)(objectPropertyKey(fieldName), (0, types_1.tsTypeAnnotation)(generateSchemaType(Object.assign(Object.assign({ schema: fieldSchema }, commonSchemaGenerationOptions), { processJsDocPath: currentProcessJsDocPath })))), {
optional: !requiredFieldsIndex[fieldName]

@@ -116,0 +116,0 @@ }), (0, jsdoc_1.renderJsDoc)(jsdoc, jsDocRenderConfig));

{
"name": "api-typescript-generator",
"version": "2.4.17",
"version": "2.4.18",
"description": "Generates OpenAPI TypeScript client. Extremely fast and flexible.",

@@ -5,0 +5,0 @@ "license": "MIT",

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