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

@nestjs/mapped-types

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestjs/mapped-types - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

11

dist/type-helpers.utils.js

@@ -20,7 +20,10 @@ "use strict";

const classValidator = require('class-validator');
const metadataStorage = classValidator.getFromContainer(classValidator.MetadataStorage);
const metadataStorage = classValidator
.getMetadataStorage
? classValidator.getMetadataStorage()
: classValidator.getFromContainer(classValidator.MetadataStorage);
const targetMetadata = metadataStorage.getTargetValidationMetadatas(parentClass, null);
return targetMetadata
.filter(({ propertyName }) => !isPropertyInherited || isPropertyInherited(propertyName))
.map(value => {
.map((value) => {
metadataStorage.addValidationMetadata(Object.assign(Object.assign({}, value), { target: targetClass }));

@@ -47,3 +50,3 @@ return value.propertyName;

];
transformMetadataKeys.forEach(key => inheritTransformerMetadata(key, parentClass, targetClass, isPropertyInherited));
transformMetadataKeys.forEach((key) => inheritTransformerMetadata(key, parentClass, targetClass, isPropertyInherited));
}

@@ -66,3 +69,3 @@ catch (err) {

if (Array.isArray(metadata)) {
const targetMetadata = metadata.map(item => (Object.assign(Object.assign({}, item), { target: targetClass })));
const targetMetadata = metadata.map((item) => (Object.assign(Object.assign({}, item), { target: targetClass })));
return [key, targetMetadata];

@@ -69,0 +72,0 @@ }

{
"name": "@nestjs/mapped-types",
"version": "0.0.2",
"version": "0.0.3",
"description": "Nest - modern, fast, powerful node.js web framework (@mapped-types)",

@@ -23,24 +23,26 @@ "author": "Kamil Mysliwiec",

"@commitlint/config-angular": "8.3.4",
"@nestjs/common": "7.0.8",
"@types/jest": "25.2.1",
"@types/node": "7.10.8",
"@typescript-eslint/eslint-plugin": "2.23.0",
"@typescript-eslint/parser": "2.23.0",
"@typescript-eslint/eslint-plugin": "2.28.0",
"@typescript-eslint/parser": "2.28.0",
"class-transformer": "0.2.3",
"class-validator": "0.11.1",
"class-validator": "0.12.1",
"eslint": "6.8.0",
"eslint-config-prettier": "6.10.1",
"eslint-plugin-import": "2.20.2",
"husky": "4.2.3",
"jest": "25.1.0",
"lint-staged": "10.0.8",
"prettier": "1.19.1",
"husky": "4.2.5",
"jest": "25.4.0",
"lint-staged": "10.1.6",
"prettier": "2.0.4",
"reflect-metadata": "0.1.13",
"release-it": "13.1.1",
"release-it": "13.5.4",
"rimraf": "3.0.2",
"ts-jest": "25.2.1",
"ts-jest": "25.4.0",
"typescript": "3.8.3"
},
"peerDependencies": {
"@nestjs/common": "^7.0.8",
"class-transformer": "^0.2.3",
"class-validator": "^0.11.1",
"class-validator": "^0.11.1 || ^0.12.0",
"reflect-metadata": "^0.1.12"

@@ -47,0 +49,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