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

class-validator-jsonschema

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

class-validator-jsonschema - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

10

build/index.js

@@ -42,11 +42,11 @@ "use strict";

const constraints = _.get(storage, 'constraintMetadatas');
for (const meta of metadatas) {
return metadatas.map((meta) => {
if (meta.constraintCls) {
const constraint = constraints.find((c) => c.target === meta.constraintCls);
if (constraint) {
meta.type = constraint.name;
return Object.assign(Object.assign({}, meta), { type: constraint.name });
}
}
}
return metadatas;
return meta;
});
}

@@ -95,2 +95,2 @@ function getInheritedMetadatas(target, metadatas) {

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSxzQ0FBcUM7QUFHckMsNEJBQTJCO0FBRzNCLDZDQUFnRDtBQUNoRCwyREFBdUQ7QUFDdkQsdUNBQW9EO0FBRXBELDJDQUF5QztBQUFoQyxrQ0FBQSxVQUFVLENBQUE7QUFLbkIsU0FBZ0IsNEJBQTRCLENBQUMsV0FBK0I7SUFDMUUsTUFBTSxPQUFPLG1DQUNSLHdCQUFjLEdBQ2QsV0FBVyxDQUNmLENBQUE7SUFFRCxNQUFNLFNBQVMsR0FBRyx1QkFBdUIsQ0FDdkMsT0FBTyxDQUFDLDZCQUE2QixDQUN0QyxDQUFBO0lBRUQsTUFBTSxPQUFPLEdBQW9DLENBQUMsQ0FBQyxTQUFTLENBQUM7U0FDMUQsT0FBTyxDQUFDLGFBQWEsQ0FBQztTQUN0QixTQUFTLENBQUMsQ0FBQyxRQUFRLEVBQUUsRUFBRTtRQUN0QixNQUFNLE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QUMsSUFBSSxTQUFTLENBQUMsU0FBUyxDQUFDLENBQUM7WUFDOUQsQ0FBQyxDQUFDLENBQUMsQ0FBQyxVQUFVLENBQUMsR0FBRyxDQUFDLElBQUksVUFBVSxDQUFDLFNBQVMsQ0FBQyxDQUFDLENBQUE7SUFDakQsQ0FBQyxDQUFDO1NBQ0QsSUFBSSxFQUFFO1NBQ04sS0FBSyxFQUFFLENBQUE7QUFDWixDQUFDIn0=

@@ -9,2 +9,6 @@ # Changelog

## [2.0.1] - 2020-05-06
### Fixed
- Fix metadata object mutation breaking validation in routing-controllers [#36](https://github.com/epiphone/class-validator-jsonschema/issues/36)
## [2.0.0] - 2020-05-04

@@ -11,0 +15,0 @@ ### Changed

{
"name": "class-validator-jsonschema",
"version": "2.0.0",
"version": "2.0.1",
"description": "Convert class-validator-decorated classes into JSON schema",

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

@@ -70,3 +70,3 @@ // tslint:disable:no-submodule-imports ban-types

for (const meta of metadatas) {
return metadatas.map((meta) => {
if (meta.constraintCls) {

@@ -77,8 +77,8 @@ const constraint = constraints.find(

if (constraint) {
meta.type = constraint.name
return { ...meta, type: constraint.name }
}
}
}
return metadatas
return meta
})
}

@@ -85,0 +85,0 @@

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