Comparing version 0.0.5 to 0.0.6
@@ -152,3 +152,3 @@ var util = require("util"); | ||
} | ||
} else { | ||
@@ -188,2 +188,23 @@ | ||
// date | ||
if (data[i]._source.date) { | ||
if (moment(data[i]._source.date).utc().format() == "Invalid date") delete data[i]._source.date; | ||
} | ||
if (data[i]._source.meta.date) { | ||
if (moment(data[i]._source.meta.date).utc().format() == "Invalid date") delete data[i]._source.meta.date; | ||
} | ||
if (data[i]._source.meta.family) { | ||
var family_arr = data[i]._source.meta.family; | ||
if (Array.isArray(family_arr)) { | ||
for (var j = 0; j < family_arr.length; j++) { | ||
if (family_arr[j].date) { | ||
if (moment(family_arr[j].date).utc().format() == "Invalid date") delete family_arr[j].date; | ||
} | ||
} | ||
} | ||
} | ||
delete data[i]._source.top_words; | ||
@@ -190,0 +211,0 @@ data01.push(data[i]); |
@@ -5,3 +5,3 @@ { | ||
"description": "from elasticdump 0.16.1", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
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
341294
2754