valgen 4.2.0 → 4.2.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # v4.2.1
2
+ [2023-11-15]
3
+
4
+ ### Changes
5
+
6
+ * Fixed generating invalid date string ([`6407ac6`](https://github.com/panates/valgen/commit/6407ac6bd17bf84a8d031efe9b3998d58c5b7f8b))
7
+
1
8
  # v4.2.0
2
9
  [2023-11-15]
3
10
 
@@ -80,7 +80,7 @@ function isDateString(options) {
80
80
  if (trim === 'timezone')
81
81
  return s;
82
82
  if (m[9])
83
- s += '-' + m[9];
83
+ s += m[9];
84
84
  return s;
85
85
  }
86
86
  }
@@ -73,7 +73,7 @@ export function isDateString(options) {
73
73
  if (trim === 'timezone')
74
74
  return s;
75
75
  if (m[9])
76
- s += '-' + m[9];
76
+ s += m[9];
77
77
  return s;
78
78
  }
79
79
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valgen",
3
3
  "description": "Fast runtime type validator, converter and io (encoding/decoding) library",
4
- "version": "4.2.0",
4
+ "version": "4.2.1",
5
5
  "author": "Panates",
6
6
  "contributors": [
7
7
  "Eray Hanoglu <e.hanoglu@panates.com>"