@webdeveric/utils 0.66.0 → 0.66.1

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.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isDateString = void 0;
4
- const isDateString = (input) => typeof input === 'string' && !Number.isNaN(new Date(input).getTime());
4
+ const isDateString = (input) => typeof input === 'string' && !Number.isNaN(Date.parse(input));
5
5
  exports.isDateString = isDateString;
@@ -1 +1 @@
1
- export const isDateString = (input) => typeof input === 'string' && !Number.isNaN(new Date(input).getTime());
1
+ export const isDateString = (input) => typeof input === 'string' && !Number.isNaN(Date.parse(input));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webdeveric/utils",
3
3
  "description": "Just another collection of utilities.",
4
- "version": "0.66.0",
4
+ "version": "0.66.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -87,7 +87,7 @@
87
87
  "devDependencies": {
88
88
  "@commitlint/config-conventional": "^19.8.1",
89
89
  "@commitlint/types": "^19.8.1",
90
- "@types/node": "^22.15.34",
90
+ "@types/node": "^22.16.0",
91
91
  "@vitest/coverage-v8": "^3.2.4",
92
92
  "@webdeveric/eslint-config-ts": "^0.11.0",
93
93
  "@webdeveric/prettier-config": "^0.3.0",