@cedarjs/cli 7.0.0-canary.3224 → 7.0.0-canary.3227
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.
|
@@ -11,10 +11,17 @@ import {
|
|
|
11
11
|
} from '@cedarjs/forms'
|
|
12
12
|
|
|
13
13
|
<% if (fieldsToImport.includes('DatetimeLocalField')) { %>
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Formats a DateTime string from the API for use as the value of a
|
|
16
|
+
* `datetime-local` input, which takes `YYYY-MM-DDTHH:mm`, with no seconds,
|
|
17
|
+
* milliseconds or timezone
|
|
18
|
+
*/
|
|
19
|
+
function formatDatetime(value: string | undefined | null) {
|
|
15
20
|
if (value) {
|
|
16
21
|
return value.replace(/:\d{2}\.\d{3}\w/, '')
|
|
17
22
|
}
|
|
23
|
+
|
|
24
|
+
return undefined
|
|
18
25
|
}
|
|
19
26
|
<% } %>
|
|
20
27
|
|
|
@@ -39,7 +39,7 @@ export const jsonTruncate = (obj: unknown) => {
|
|
|
39
39
|
return truncate(JSON.stringify(obj, null, 2))
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export
|
|
42
|
+
export function timeTag(dateTime: string | undefined | null) {
|
|
43
43
|
let output: string | React.JSX.Element = ''
|
|
44
44
|
|
|
45
45
|
if (dateTime) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "7.0.0-canary.
|
|
3
|
+
"version": "7.0.0-canary.3227",
|
|
4
4
|
"description": "The CedarJS Command Line",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"@babel/preset-typescript": "7.29.7",
|
|
37
37
|
"@babel/traverse": "7.29.8",
|
|
38
38
|
"@babel/types": "7.29.8",
|
|
39
|
-
"@cedarjs/api-server": "7.0.0-canary.
|
|
40
|
-
"@cedarjs/babel-config": "7.0.0-canary.
|
|
41
|
-
"@cedarjs/cli-helpers": "7.0.0-canary.
|
|
42
|
-
"@cedarjs/internal": "7.0.0-canary.
|
|
43
|
-
"@cedarjs/prerender": "7.0.0-canary.
|
|
44
|
-
"@cedarjs/project-config": "7.0.0-canary.
|
|
45
|
-
"@cedarjs/structure": "7.0.0-canary.
|
|
46
|
-
"@cedarjs/telemetry": "7.0.0-canary.
|
|
47
|
-
"@cedarjs/utils": "7.0.0-canary.
|
|
48
|
-
"@cedarjs/vite": "7.0.0-canary.
|
|
49
|
-
"@cedarjs/web-server": "7.0.0-canary.
|
|
39
|
+
"@cedarjs/api-server": "7.0.0-canary.3227",
|
|
40
|
+
"@cedarjs/babel-config": "7.0.0-canary.3227",
|
|
41
|
+
"@cedarjs/cli-helpers": "7.0.0-canary.3227",
|
|
42
|
+
"@cedarjs/internal": "7.0.0-canary.3227",
|
|
43
|
+
"@cedarjs/prerender": "7.0.0-canary.3227",
|
|
44
|
+
"@cedarjs/project-config": "7.0.0-canary.3227",
|
|
45
|
+
"@cedarjs/structure": "7.0.0-canary.3227",
|
|
46
|
+
"@cedarjs/telemetry": "7.0.0-canary.3227",
|
|
47
|
+
"@cedarjs/utils": "7.0.0-canary.3227",
|
|
48
|
+
"@cedarjs/vite": "7.0.0-canary.3227",
|
|
49
|
+
"@cedarjs/web-server": "7.0.0-canary.3227",
|
|
50
50
|
"@listr2/prompt-adapter-enquirer": "4.3.2",
|
|
51
51
|
"@opentelemetry/api": "1.9.1",
|
|
52
52
|
"@opentelemetry/core": "2.11.0",
|
|
@@ -94,10 +94,10 @@
|
|
|
94
94
|
"yargs": "17.7.3"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@cedarjs/framework-tools": "7.0.0-canary.
|
|
97
|
+
"@cedarjs/framework-tools": "7.0.0-canary.3227",
|
|
98
98
|
"@prisma/dmmf": "7.10.0",
|
|
99
99
|
"@types/archiver": "^7.0.0",
|
|
100
|
-
"memfs": "4.
|
|
100
|
+
"memfs": "4.78.1",
|
|
101
101
|
"node-ssh": "13.2.1",
|
|
102
102
|
"ts-dedent": "2.3.0",
|
|
103
103
|
"typescript": "5.9.3",
|