Socket
Socket
Sign inDemoInstall

class-transformer

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

class-transformer - npm Package Compare versions

Comparing version 0.1.0-beta.2 to 0.1.0-beta.3

2

package.json
{
"name": "class-transformer",
"version": "0.1.0-beta.2",
"version": "0.1.0-beta.3",
"description": "Proper decorator-based transformation / serialization / deserialization of plain javascript objects to class constructors",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -466,3 +466,3 @@ # class-transformer

@Type(Date)
@Type(() => Date)
registrationDate: Date;

@@ -469,0 +469,0 @@ }

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

var valueKey = key, newValueKey = key, propertyName = key;
if (!this.options.ignoreDecorators) {
if (!this.options.ignoreDecorators && targetType) {
if (this.transformationType === "plainToClass") {

@@ -135,3 +135,3 @@ var exposeMetadata = index_1.defaultMetadataStorage.findExposeMetadataByCustomName(targetType, key);

var keys = strategy === "exposeAll" ? Object.keys(object) : [];
if (!this.options.ignoreDecorators) {
if (!this.options.ignoreDecorators && target) {
// add all exposed to list of keys

@@ -138,0 +138,0 @@ var exposedProperties = index_1.defaultMetadataStorage.getExposedProperties(target, this.transformationType);

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