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

dto4j

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dto4j - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "dto4j",
"version": "0.1.0",
"version": "0.1.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/dto4j.js",

@@ -30,3 +30,3 @@ # dto4j

helloWorld: function () {
return new Date(this.hello.world)
return new Date(this.hello.world).toDateString()
},

@@ -43,3 +43,3 @@ hello_world: 'hello.world',

// age: 0,
// helloWorld: Tue Mar 14 2017 13:49:59 GMT+0800 (CST),
// helloWorld: 'Tue Mar 14 2017 13:49:59 GMT+0800 (CST)',
// hello_world: 1489470599650,

@@ -49,2 +49,8 @@ // array: [ { a: 1 }, { b: 2 }, { c: 3 } ],

// }
// 也可以传入一个参数,返回一个 dto 转换器,以便后面执行多次转换
var dto1 = dto4j(convert)
console.log(dto1(data))
// console.log(dto1(data2))
// console.log(dto1(data3))
```

@@ -51,0 +57,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