Socket
Socket
Sign inDemoInstall

@tsed/platform-params

Package Overview
Dependencies
Maintainers
0
Versions
504
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsed/platform-params - npm Package Compare versions

Comparing version 7.82.2 to 7.82.3

1

lib/cjs/builder/PlatformParams.js

@@ -14,3 +14,2 @@ "use strict";

let PlatformParams = class PlatformParams {
injector;
getPipes(param) {

@@ -17,0 +16,0 @@ const get = (pipe) => {

7

lib/cjs/errors/ParamValidationError.js

@@ -8,5 +8,6 @@ "use strict";

class ParamValidationError extends exceptions_1.BadRequest {
name = "PARAM_VALIDATION_ERROR";
dataPath;
requestType;
constructor() {
super(...arguments);
this.name = "PARAM_VALIDATION_ERROR";
}
static from(metadata, origin = {}) {

@@ -13,0 +14,0 @@ if (origin instanceof ValidationError_js_1.ValidationError || origin instanceof exceptions_1.BadRequest) {

@@ -7,3 +7,6 @@ "use strict";

class RequiredValidationError extends ValidationError_js_1.ValidationError {
name = "REQUIRED_VALIDATION_ERROR";
constructor() {
super(...arguments);
this.name = "REQUIRED_VALIDATION_ERROR";
}
static from(metadata) {

@@ -10,0 +13,0 @@ const name = (0, core_1.nameOf)(metadata.paramType);

@@ -6,6 +6,5 @@ "use strict";

class ValidationError extends exceptions_1.BadRequest {
name = "VALIDATION_ERROR";
errors;
constructor(message, errors = []) {
super(message);
this.name = "VALIDATION_ERROR";
this.errors = errors;

@@ -12,0 +11,0 @@ }

@@ -21,3 +21,2 @@ "use strict";

let ValidationPipe = class ValidationPipe {
validator;
constructor(validators) {

@@ -24,0 +23,0 @@ this.validator = validators[0];

@@ -11,3 +11,2 @@ import { __decorate, __metadata } from "tslib";

let PlatformParams = class PlatformParams {
injector;
getPipes(param) {

@@ -14,0 +13,0 @@ const get = (pipe) => {

@@ -5,5 +5,6 @@ import { nameOf } from "@tsed/core";

export class ParamValidationError extends BadRequest {
name = "PARAM_VALIDATION_ERROR";
dataPath;
requestType;
constructor() {
super(...arguments);
this.name = "PARAM_VALIDATION_ERROR";
}
static from(metadata, origin = {}) {

@@ -10,0 +11,0 @@ if (origin instanceof ValidationError || origin instanceof BadRequest) {

import { nameOf } from "@tsed/core";
import { ValidationError } from "./ValidationError.js";
export class RequiredValidationError extends ValidationError {
name = "REQUIRED_VALIDATION_ERROR";
constructor() {
super(...arguments);
this.name = "REQUIRED_VALIDATION_ERROR";
}
static from(metadata) {

@@ -6,0 +9,0 @@ const name = nameOf(metadata.paramType);

import { BadRequest } from "@tsed/exceptions";
export class ValidationError extends BadRequest {
name = "VALIDATION_ERROR";
errors;
constructor(message, errors = []) {
super(message);
this.name = "VALIDATION_ERROR";
this.errors = errors;

@@ -8,0 +7,0 @@ }

@@ -18,3 +18,2 @@ import { __decorate, __metadata, __param } from "tslib";

let ValidationPipe = class ValidationPipe {
validator;
constructor(validators) {

@@ -21,0 +20,0 @@ this.validator = validators[0];

@@ -5,3 +5,3 @@ {

"type": "commonjs",
"version": "7.82.2",
"version": "7.82.3",
"source": "./src/index.ts",

@@ -30,9 +30,9 @@ "main": "./lib/cjs/index.js",

"devDependencies": {
"@tsed/barrels": "7.82.2",
"@tsed/core": "7.82.2",
"@tsed/di": "7.82.2",
"@tsed/exceptions": "7.82.2",
"@tsed/json-mapper": "7.82.2",
"@tsed/schema": "7.82.2",
"@tsed/typescript": "7.82.2",
"@tsed/barrels": "7.82.3",
"@tsed/core": "7.82.3",
"@tsed/di": "7.82.3",
"@tsed/exceptions": "7.82.3",
"@tsed/json-mapper": "7.82.3",
"@tsed/schema": "7.82.3",
"@tsed/typescript": "7.82.3",
"eslint": "^8.57.0",

@@ -43,7 +43,7 @@ "typescript": "4.9.5",

"peerDependencies": {
"@tsed/core": "7.82.2",
"@tsed/di": "7.82.2",
"@tsed/exceptions": "7.82.2",
"@tsed/json-mapper": "7.82.2",
"@tsed/schema": "7.82.2"
"@tsed/core": "7.82.3",
"@tsed/di": "7.82.3",
"@tsed/exceptions": "7.82.3",
"@tsed/json-mapper": "7.82.3",
"@tsed/schema": "7.82.3"
},

@@ -50,0 +50,0 @@ "peerDependenciesMeta": {

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

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

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