@arrirpc/codegen-ts 0.80.3 → 0.81.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/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -603,7 +603,7 @@ function tsBooleanFromSchema(schema, _context) {
|
|
|
603
603
|
}
|
|
604
604
|
function tsDateFromSchema(schema, _context) {
|
|
605
605
|
const typeName = schema.isNullable ? `Date | null` : "Date";
|
|
606
|
-
const defaultValue = schema.isNullable ? `null` : "new Date()";
|
|
606
|
+
const defaultValue = schema.isNullable ? `null` : "new Date(0)";
|
|
607
607
|
return {
|
|
608
608
|
typeName,
|
|
609
609
|
defaultValue,
|
package/dist/index.mjs
CHANGED
|
@@ -597,7 +597,7 @@ function tsBooleanFromSchema(schema, _context) {
|
|
|
597
597
|
}
|
|
598
598
|
function tsDateFromSchema(schema, _context) {
|
|
599
599
|
const typeName = schema.isNullable ? `Date | null` : "Date";
|
|
600
|
-
const defaultValue = schema.isNullable ? `null` : "new Date()";
|
|
600
|
+
const defaultValue = schema.isNullable ? `null` : "new Date(0)";
|
|
601
601
|
return {
|
|
602
602
|
typeName,
|
|
603
603
|
defaultValue,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arrirpc/codegen-ts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.81.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"prettier": "^3.
|
|
26
|
-
"@arrirpc/codegen-utils": "0.
|
|
25
|
+
"prettier": "^3.7.4",
|
|
26
|
+
"@arrirpc/codegen-utils": "0.81.1"
|
|
27
27
|
}
|
|
28
28
|
}
|