@metascraper/helpers
Advanced tools
Comparing version 5.4.1 to 5.4.2
@@ -6,2 +6,10 @@ # Change Log | ||
## [5.4.2](https://github.com/microlinkhq/metascraper/tree/master/packages/metascraper-helpers/compare/v5.4.1...v5.4.2) (2019-06-05) | ||
**Note:** Version bump only for package @metascraper/helpers | ||
## [5.4.1](https://github.com/microlinkhq/metascraper/tree/master/packages/metascraper-helpers/compare/v5.4.0...v5.4.1) (2019-06-05) | ||
@@ -8,0 +16,0 @@ |
@@ -16,3 +16,4 @@ 'use strict' | ||
lte, | ||
size | ||
size, | ||
isNumber | ||
} = require('lodash') | ||
@@ -174,6 +175,6 @@ | ||
const date = value => { | ||
if (!isString(value)) return false | ||
if (!(isString(value) || isNumber(value))) return false | ||
// remove whitespace for easier parsing | ||
value = value.trim() | ||
if (isString(value)) trim(value) | ||
@@ -180,0 +181,0 @@ // convert isodates to restringify, because sometimes they are truncated |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://nicedoc.io/microlinkhq/metascraper/packages/metascraper-helpers", | ||
"version": "5.4.1", | ||
"version": "5.4.2", | ||
"main": "index.js", | ||
@@ -63,3 +63,3 @@ "repository": { | ||
}, | ||
"gitHead": "d7093767283b5895a2eccaeb95b1defe80cac587" | ||
"gitHead": "3d9f0aefaa5023eecb550e358fca58b3f02458be" | ||
} |
13487
203