@nocobase/utils 1.6.0-alpha.9 → 1.6.0-beta.10

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/lib/date.js CHANGED
@@ -209,7 +209,7 @@ const getPickerFormat = /* @__PURE__ */ __name((picker) => {
209
209
  const getDateTimeFormat = /* @__PURE__ */ __name((picker, format, showTime, timeFormat) => {
210
210
  if (picker === "date") {
211
211
  if (showTime) {
212
- return format + timeFormat || "HH:mm:ss";
212
+ return `${format} ${timeFormat || "HH:mm:ss"}`;
213
213
  }
214
214
  return format;
215
215
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/utils",
3
- "version": "1.6.0-alpha.9",
3
+ "version": "1.6.0-beta.10",
4
4
  "main": "lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "license": "AGPL-3.0",
@@ -16,5 +16,5 @@
16
16
  "multer": "^1.4.5-lts.1",
17
17
  "object-path": "^0.11.8"
18
18
  },
19
- "gitHead": "c6136fc6c9a2daab33fb1a20716cd9768e9a147f"
19
+ "gitHead": "72684ad7261e46b67969ecc4db0f1bcbea545a8d"
20
20
  }
package/plugin-symlink.js CHANGED
@@ -6,7 +6,12 @@ async function getStoragePluginNames(target) {
6
6
  const items = await readdir(target);
7
7
  for (const item of items) {
8
8
  if (item.startsWith('@')) {
9
- const children = await getStoragePluginNames(resolve(target, item));
9
+ const dirPath = resolve(target, item);
10
+ const s = await stat(dirPath);
11
+ if (!s.isDirectory()) {
12
+ continue;
13
+ }
14
+ const children = await getStoragePluginNames(dirPath);
10
15
  plugins.push(
11
16
  ...children.map((child) => {
12
17
  return `${item}/${child}`;