@nocobase/utils 1.6.0-beta.1 → 1.6.0-beta.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/utils",
3
- "version": "1.6.0-beta.1",
3
+ "version": "1.6.0-beta.11",
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": "69a79d1ed9660beb14ee956ec634f0c6d142acfa"
19
+ "gitHead": "6cff97cdc31b9f191aaecb0f0d358c29e87ebde0"
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}`;