mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(worker): 🐛 Remove old bull-board patch, use official fix instead
Explicitely specifying the path prevents the module from using `eval`
This commit is contained in:
parent
512e0295a2
commit
2908fcc9e8
1
bun.lock
1
bun.lock
|
|
@ -114,7 +114,6 @@
|
||||||
],
|
],
|
||||||
"patchedDependencies": {
|
"patchedDependencies": {
|
||||||
"giget@2.0.0": "patches/giget@2.0.0.patch",
|
"giget@2.0.0": "patches/giget@2.0.0.patch",
|
||||||
"@bull-board/api@6.8.2": "patches/@bull-board%2Fapi@6.5.3.patch",
|
|
||||||
},
|
},
|
||||||
"packages": {
|
"packages": {
|
||||||
"@algolia/autocomplete-core": ["@algolia/autocomplete-core@1.17.7", "", { "dependencies": { "@algolia/autocomplete-plugin-algolia-insights": "1.17.7", "@algolia/autocomplete-shared": "1.17.7" } }, "sha512-BjiPOW6ks90UKl7TwMv7oNQMnzU+t/wk9mgIDi6b1tXpUek7MW0lbNOUHpvam9pe3lVCf4xPFT+lK7s+e+fs7Q=="],
|
"@algolia/autocomplete-core": ["@algolia/autocomplete-core@1.17.7", "", { "dependencies": { "@algolia/autocomplete-plugin-algolia-insights": "1.17.7", "@algolia/autocomplete-shared": "1.17.7" } }, "sha512-BjiPOW6ks90UKl7TwMv7oNQMnzU+t/wk9mgIDi6b1tXpUek7MW0lbNOUHpvam9pe3lVCf4xPFT+lK7s+e+fs7Q=="],
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,6 @@
|
||||||
"zod-validation-error": "^3.4.0"
|
"zod-validation-error": "^3.4.0"
|
||||||
},
|
},
|
||||||
"patchedDependencies": {
|
"patchedDependencies": {
|
||||||
"@bull-board/api@6.8.2": "patches/@bull-board%2Fapi@6.5.3.patch",
|
|
||||||
"giget@2.0.0": "patches/giget@2.0.0.patch"
|
"giget@2.0.0": "patches/giget@2.0.0.patch"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/dist/src/index.js b/dist/src/index.js
|
|
||||||
index b7fa76b4861aefc96e27b3167b1511c3723ad318..c56d37721672b9ede3c85c84cb40c91c4ed2cc83 100644
|
|
||||||
--- a/dist/src/index.js
|
|
||||||
+++ b/dist/src/index.js
|
|
||||||
@@ -10,7 +10,7 @@ const queuesApi_1 = require("./queuesApi");
|
|
||||||
const routes_1 = require("./routes");
|
|
||||||
function createBullBoard({ queues, serverAdapter, options = { uiConfig: {} }, }) {
|
|
||||||
const { bullBoardQueues, setQueues, replaceQueues, addQueue, removeQueue } = (0, queuesApi_1.getQueuesApi)(queues);
|
|
||||||
- const uiBasePath = options.uiBasePath || path_1.default.dirname(eval(`require.resolve('@bull-board/ui/package.json')`));
|
|
||||||
+ const uiBasePath = options.uiBasePath || path_1.default.dirname(import.meta.require.resolve('@bull-board/ui/package.json'));
|
|
||||||
serverAdapter
|
|
||||||
.setQueues(bullBoardQueues)
|
|
||||||
.setViewsPath(path_1.default.join(uiBasePath, 'dist'))
|
|
||||||
|
|
@ -38,6 +38,7 @@ export const applyToHono = (app: Hono<HonoEnv>): void => {
|
||||||
height: 40,
|
height: 40,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
uiBasePath: "node_modules/@bull-board/ui",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue