@cedarjs/cli 7.0.0-canary.3224 → 7.0.0-canary.3225

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
- const formatDatetime = (value) => {
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 const timeTag = (dateTime?: string) => {
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.3224",
3
+ "version": "7.0.0-canary.3225",
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.3224",
40
- "@cedarjs/babel-config": "7.0.0-canary.3224",
41
- "@cedarjs/cli-helpers": "7.0.0-canary.3224",
42
- "@cedarjs/internal": "7.0.0-canary.3224",
43
- "@cedarjs/prerender": "7.0.0-canary.3224",
44
- "@cedarjs/project-config": "7.0.0-canary.3224",
45
- "@cedarjs/structure": "7.0.0-canary.3224",
46
- "@cedarjs/telemetry": "7.0.0-canary.3224",
47
- "@cedarjs/utils": "7.0.0-canary.3224",
48
- "@cedarjs/vite": "7.0.0-canary.3224",
49
- "@cedarjs/web-server": "7.0.0-canary.3224",
39
+ "@cedarjs/api-server": "7.0.0-canary.3225",
40
+ "@cedarjs/babel-config": "7.0.0-canary.3225",
41
+ "@cedarjs/cli-helpers": "7.0.0-canary.3225",
42
+ "@cedarjs/internal": "7.0.0-canary.3225",
43
+ "@cedarjs/prerender": "7.0.0-canary.3225",
44
+ "@cedarjs/project-config": "7.0.0-canary.3225",
45
+ "@cedarjs/structure": "7.0.0-canary.3225",
46
+ "@cedarjs/telemetry": "7.0.0-canary.3225",
47
+ "@cedarjs/utils": "7.0.0-canary.3225",
48
+ "@cedarjs/vite": "7.0.0-canary.3225",
49
+ "@cedarjs/web-server": "7.0.0-canary.3225",
50
50
  "@listr2/prompt-adapter-enquirer": "4.3.2",
51
51
  "@opentelemetry/api": "1.9.1",
52
52
  "@opentelemetry/core": "2.11.0",
@@ -94,7 +94,7 @@
94
94
  "yargs": "17.7.3"
95
95
  },
96
96
  "devDependencies": {
97
- "@cedarjs/framework-tools": "7.0.0-canary.3224",
97
+ "@cedarjs/framework-tools": "7.0.0-canary.3225",
98
98
  "@prisma/dmmf": "7.10.0",
99
99
  "@types/archiver": "^7.0.0",
100
100
  "memfs": "4.76.0",