adminizer 4.2.0-build.70 → 4.2.0-build.72

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,7 +1,7 @@
1
1
  {
2
2
  "name": "adminizer",
3
3
  "type": "module",
4
- "version": "4.2.0-build.70",
4
+ "version": "4.2.0-build.72",
5
5
  "main": "index.js",
6
6
  "exports": {
7
7
  ".": "./index.js",
@@ -63,6 +63,7 @@
63
63
  "waterline": "^0.15.2",
64
64
  "winston": "^3.17.0",
65
65
  "image-size": "^2.0.2",
66
+ "sprintf-js": "^1.1.3",
66
67
  "sequelize": "^6.37.7"
67
68
  },
68
69
  "devDependencies": {
@@ -140,7 +141,6 @@
140
141
  "sequelize-typescript": "^2.1.6",
141
142
  "shelljs": "^0.9.2",
142
143
  "sonner": "^2.0.3",
143
- "sprintf-js": "^1.1.3",
144
144
  "sqlite3": "^5.1.7",
145
145
  "tailwind-merge": "^3.0.2",
146
146
  "tailwindcss": "^4.0.15",
@@ -15,7 +15,7 @@ export default function bindMediaManager(adminizer) {
15
15
  }
16
16
  });
17
17
  // Bind media manager public folder
18
- if (adminizer.config.bind?.public)
18
+ if (adminizer.config.bind?.public && adminizer.config.mediamanager?.fileStoragePath)
19
19
  adminizer.app.use(`/public`, serveStatic(adminizer.config.mediamanager.fileStoragePath));
20
20
  // Bind file icons
21
21
  adminizer.app.use(`${adminizer.config.routePrefix}/fileicons`, serveStatic(path.join(import.meta.dirname, '../fileicons')));