Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/reuse-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout git repository
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/reuse-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout git repository
uses: actions/checkout@v4
uses: actions/checkout@v5

- uses: actions/setup-node@v3
- uses: actions/setup-node@v5
with:
node-version: 24
cache: 'npm'
Expand All @@ -19,4 +19,8 @@ jobs:
run: npm ci

- name: Run quality checks
run: npm run quality
run: npm run quality

- name: Docker logs in case of failure
if: failure()
run: docker compose logs data-fair
12 changes: 6 additions & 6 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"main": "index.ts",
"type": "module",
"scripts": {
"dev": "NODE_ENV=development DEBUG=webhooks-* IGNORE_ASSERT_REQ_INTERNAL=true node --watch --experimental-strip-types index.ts"
"dev": "NODE_ENV=development DEBUG=webhooks-* IGNORE_ASSERT_REQ_INTERNAL=true node --watch index.ts"
},
"imports": {
"#config": "./src/config.ts",
Expand All @@ -22,15 +22,15 @@
},
"dependencies": {
"@data-fair/catalogs-shared": "*",
"@data-fair/lib-express": "^1.22.1",
"@data-fair/lib-node": "^2.10.2",
"@data-fair/lib-utils": "^1.8.0",
"config": "^4.0.0",
"@data-fair/lib-express": "^1.22.5",
"@data-fair/lib-node": "^2.12.1",
"@data-fair/lib-utils": "^1.10.1",
"config": "^4.4.1",
"express": "^5.2.0",
"fs-extra": "^11.3.0",
"http-terminator": "^3.2.0",
"memoizee": "^0.4.17",
"mongodb": "^6.16.0",
"mongodb": "^6.17.0",
"multer": "^2.0.2",
"nanoid": "^3.3.11",
"prom-client": "^15.1.3",
Expand Down
2 changes: 0 additions & 2 deletions api/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import config from 'config'
const apiConfig = process.env.NODE_ENV === 'test' ? config.util.loadFileConfigs(process.env.NODE_CONFIG_DIR, { skipConfigSources: true }) : config
assertValid(apiConfig, { lang: 'en', name: 'config', internal: true })

config.util.makeImmutable(apiConfig)

export default apiConfig as ApiConfig

export const uiConfig = {}
Expand Down
1 change: 1 addition & 0 deletions api/src/plugins/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export const getPlugin = async (pluginId: string): Promise<CatalogPlugin> => {
*/
export const getPluginThumbnailPath = async (pluginId: string): Promise<string | null> => {
const pluginJsonPath = path.join(pluginsDir, pluginId, 'plugin.json')
if (!fs.existsSync(pluginJsonPath)) return null
const pluginJson = JSON.parse(fs.readFileSync(pluginJsonPath, 'utf8'))
const plugin = await getPlugin(pluginId)
const thumbnailPath = path.join(pluginsDir, pluginId, pluginJson.version, plugin.metadata.thumbnailPath)
Expand Down
Loading
Loading