@dnax/core 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "devDependencies": {
package/utils/index.ts CHANGED
@@ -73,6 +73,8 @@ function toJson(data: object) {
73
73
  function isDate(date: string): boolean {
74
74
  const dateRegex = /^\d{4}-\d{2}-\d{2}$/;
75
75
  let isDate_ = !isNaN(Date.parse(date)) && dateRegex.test(date);
76
+ if (isDate_) return true;
77
+ isDate_ = moment(date).isValid();
76
78
  return isDate_;
77
79
  }
78
80
 
package/utils/test.js ADDED
File without changes