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

@kubb/parser

Package Overview
Dependencies
Maintainers
1
Versions
219
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kubb/parser - npm Package Compare versions

Comparing version 1.12.0-canary.20231016T092149 to 1.12.0-canary.20231016T100000

3

dist/index.d.ts

@@ -37,3 +37,4 @@ import ts from 'typescript';

}): ts.TypeNode | null;
declare function createPropertySignature({ modifiers, name, questionToken, type, }: {
declare function createPropertySignature({ readOnly, modifiers, name, questionToken, type, }: {
readOnly?: boolean;
modifiers?: Array<ts.Modifier>;

@@ -40,0 +41,0 @@ name: ts.PropertyName | string;

@@ -78,3 +78,4 @@ import { createRequire } from 'module';

function createPropertySignature({
modifiers: modifiers2,
readOnly,
modifiers: modifiers2 = [],
name,

@@ -84,3 +85,8 @@ questionToken: questionToken2,

}) {
return factory.createPropertySignature(modifiers2, propertyName(name), createQuestionToken(questionToken2), type);
return factory.createPropertySignature(
[...modifiers2, readOnly ? factory.createToken(ts.SyntaxKind.ReadonlyKeyword) : void 0].filter(Boolean),
propertyName(name),
createQuestionToken(questionToken2),
type
);
}

@@ -87,0 +93,0 @@ function createParameterSignature(name, {

{
"name": "@kubb/parser",
"version": "1.12.0-canary.20231016T092149",
"version": "1.12.0-canary.20231016T100000",
"description": "Generator parser",

@@ -5,0 +5,0 @@ "keywords": [

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