Comparing version 0.1.0 to 0.1.1
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25424
60