+2
-2
@@ -0,1 +1,2 @@ | ||
| const isostring = require('isostring') | ||
| const {duration} = require('moment') | ||
@@ -50,4 +51,3 @@ | ||
| // Date | ||
| const date = new Date(value) | ||
| if(date.toString() !== 'Invalid Date') return date | ||
| if(isostring(value)) return new Date(value) | ||
@@ -54,0 +54,0 @@ // JSON |
+3
-2
| { | ||
| "name": "string2js", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "description": "Create Javascript objects and primitives from their string representation", | ||
@@ -26,4 +26,5 @@ "main": "index.js", | ||
| "dependencies": { | ||
| "moment": "^2.22.0" | ||
| "isostring": "0.0.1", | ||
| "moment": "^2.22.1" | ||
| } | ||
| } |
3576
0.76%2
100%+ Added
+ Added
Updated