@inzombieland/core 1.18.55 → 1.18.57

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.
@@ -97,19 +97,9 @@ function parseData(data) {
97
97
  }
98
98
  function stringToDate(dateString) {
99
99
  if (typeof dateString !== "string" || dateString === "0001-01-01T00:00:00Z") {
100
- return void 0;
100
+ return;
101
101
  }
102
- const parts = isoExp.exec(dateString);
103
- if (!parts) {
104
- return new Date(Number.NaN);
105
- }
106
- const year = Number(parts[1]);
107
- const month = Number(parts[2]) - 1;
108
- const day = Number(parts[3]);
109
- const hours = Number(parts[4]);
110
- const minutes = Number(parts[5]);
111
- const seconds = Number(parts[6]);
112
- return parts.at(-1) === "Z" ? new Date(Date.UTC(year, month, day, hours, minutes, seconds)) : new Date(year, month, day, hours, minutes, seconds);
102
+ return new Date(dateString);
113
103
  }
114
104
  function dateToString(date) {
115
105
  const year = date.getFullYear();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inzombieland/core",
3
- "version": "1.18.55",
3
+ "version": "1.18.57",
4
4
  "type": "module",
5
5
  "license": "ISC",
6
6
  "main": "./index.mjs",