Socket
Socket
Sign inDemoInstall

data-transfer-object

Package Overview
Dependencies
3
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

0.4.0

Diff

danielegarciav
published 0.3.0 •

Changelog

Source

0.3.0 (2021-01-27)

Bug Fixes

  • types: skip function types properly (6c1a7d4)

    • The type of the object returned by toJSON() was erroneously including function names in its return type. This has been fixed.

      import { DataTransferObject, IsString } from 'data-transfer-object';
      
      class MyDto extends DataTransferObject {
        @IsString()
        key!: string;
      }
      
      const input = new MyDto({ key: 'value' });
      const data = input.toJSON();
      
      // before 0.3.0
      typeof data = {
        key: string;
        toJSON: never;
        validate: never;
        validateAsync: never;
      }
      
      // 0.3.0 onwards
      typeof data = {
        key: string;
      }
      
danielegarciav
published 0.2.1 •

Changelog

Source

0.2.1 (2021-01-26)

danielegarciav
published 0.2.0 •

Changelog

Source

0.2.0 (2021-01-26)

Bug Fixes

  • use symbols for private properties (03f4d24)
danielegarciav
published 0.1.0 •

Changelog

Source

0.1.0 (2021-01-26)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc