Socket
Socket
Sign inDemoInstall

nestia

Package Overview
Dependencies
Maintainers
1
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nestia - npm Package Compare versions

Comparing version 6.0.1 to 6.0.2-dev.20240905

2

bin/internal/ArgumentParser.js

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

options.runtime =
((_c = options.runtime) !== null && _c !== void 0 ? _c : (yield select("swagger")("Transform Runtime Swagger")([
((_c = options.runtime) !== null && _c !== void 0 ? _c : (yield select("transform")("Transform Runtime Swagger")([
"true",

@@ -86,0 +86,0 @@ "false",

@@ -45,7 +45,5 @@ "use strict";

p.transform === "typia/lib/transform");
const swagger = args.runtime === false
? true
: !!plugins.find((p) => typeof p === "object" &&
p !== null &&
p.transform === "@nestia/sdk/lib/transform");
const swagger = plugins.find((p) => typeof p === "object" &&
p !== null &&
p.transform === "@nestia/sdk/lib/transform");
if (strictNullChecks !== false &&

@@ -88,3 +86,3 @@ (strict === true || strictNullChecks === true) &&

}`));
if (swagger === false)
if (swagger === undefined && args.runtime === true)
plugins.push(comment_json_1.default.parse(`{ "transform": "@nestia/sdk/lib/transform" }`));

@@ -91,0 +89,0 @@ if (typia === undefined)

{
"name": "nestia",
"version": "6.0.1",
"version": "6.0.2-dev.20240905",
"description": "Nestia CLI tool",

@@ -5,0 +5,0 @@ "main": "bin/index.js",

@@ -100,3 +100,3 @@ import commander from "commander";

((options.runtime as string | undefined) ??
(await select("swagger")("Transform Runtime Swagger")([
(await select("transform")("Transform Runtime Swagger")([
"true",

@@ -103,0 +103,0 @@ "false",

@@ -52,11 +52,8 @@ import comments from "comment-json";

);
const swagger: boolean =
args.runtime === false
? true
: !!plugins.find(
(p) =>
typeof p === "object" &&
p !== null &&
p.transform === "@nestia/sdk/lib/transform",
);
const swagger: comments.CommentObject | undefined = plugins.find(
(p) =>
typeof p === "object" &&
p !== null &&
p.transform === "@nestia/sdk/lib/transform",
);
if (

@@ -105,3 +102,3 @@ strictNullChecks !== false &&

);
if (swagger === false)
if (swagger === undefined && args.runtime === true)
plugins.push(

@@ -108,0 +105,0 @@ comments.parse(

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