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

@tsoa/runtime

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsoa/runtime - npm Package Compare versions

Comparing version 5.0.0 to 6.0.0-rc.0

./dist/index.js

8

dist/routeGeneration/templateHelpers.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ValidateError = exports.ValidationService = exports.ValidateParam = void 0;
const validator_1 = require("validator");
const validator_1 = __importDefault(require("validator"));
const assertNever_1 = require("../utils/assertNever");

@@ -17,3 +20,2 @@ const tsoa_route_1 = require("./tsoa-route");

ValidateParam(property, rawValue, name = '', fieldErrors, parent = '', minimalSwaggerConfig) {
var _a;
let value = rawValue;

@@ -23,3 +25,3 @@ // If undefined is alowed type, we can move to value validation

// If there's either default value or datatype is union with undefined valid, we can just set it and move to validation
if (property.default !== undefined || (property.dataType === 'union' && ((_a = property.subSchemas) === null || _a === void 0 ? void 0 : _a.some(p => p.dataType === 'undefined')))) {
if (property.default !== undefined || (property.dataType === 'union' && property.subSchemas?.some(p => p.dataType === 'undefined'))) {
value = property.default;

@@ -26,0 +28,0 @@ }

{
"name": "@tsoa/runtime",
"description": "Build swagger-compliant REST APIs using TypeScript and Node",
"version": "5.0.0",
"version": "6.0.0-rc.0",
"main": "./dist/index.js",

@@ -32,10 +32,9 @@ "typings": "./dist/index.d.ts",

"@types/multer": "^1.4.7",
"promise.any": "^2.0.5",
"reflect-metadata": "^0.1.13",
"validator": "^13.7.0"
"validator": "^13.9.0"
},
"devDependencies": {
"@types/node": "^18.7.13",
"@types/validator": "^13.7.6",
"typescript": "^4.5"
"@types/node": "^16.18.23",
"@types/validator": "^13.7.14",
"typescript": "^5.0.3"
},

@@ -48,3 +47,3 @@ "repository": {

"yarn": ">=1.9.4",
"node": ">=12.0.0"
"node": ">=16.0.0"
},

@@ -55,3 +54,3 @@ "engineStrict": true,

},
"gitHead": "7d821087307bf2a003b9fc0d98f3a2951ae6c5fc"
"gitHead": "5e53bbe937c2de32a80ab836c7a3dc6d9000e416"
}

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