apeframework 0.0.0-dev.16 → 0.0.0-dev.17

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": "apeframework",
3
- "version": "0.0.0-dev.16",
3
+ "version": "0.0.0-dev.17",
4
4
  "license": "MIT",
5
5
  "author": "Matthieu Symoens",
6
6
  "description": "Node.js app framework",
@@ -0,0 +1,2 @@
1
+ declare const isValidIsoDate: (date: string) => boolean;
2
+ export { isValidIsoDate, };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isValidIsoDate = void 0;
4
+ const isValidIsoDate = (date) => {
5
+ const d = new Date(date);
6
+ return !isNaN(d.getTime()) && date === d.toISOString();
7
+ };
8
+ exports.isValidIsoDate = isValidIsoDate;
@@ -0,0 +1,9 @@
1
+ const isValidIsoDate = (date: string): boolean => {
2
+ const d = new Date(date)
3
+
4
+ return !isNaN(d.getTime()) && date === d.toISOString()
5
+ }
6
+
7
+ export {
8
+ isValidIsoDate,
9
+ }