@flowfuse/file-server 2.25.1-a930630-202512291204.0 → 2.25.1-ed27b66-202512301348.0

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.
@@ -0,0 +1,54 @@
1
+ import globals from 'globals'
2
+ import js from '@eslint/js'
3
+ import neostandard, { resolveIgnoresFromGitignore } from 'neostandard'
4
+ import stylistic from '@stylistic/eslint-plugin'
5
+ import noOnlyTests from 'eslint-plugin-no-only-tests'
6
+
7
+ export default [
8
+ {
9
+ files: ['**/*.js'],
10
+ languageOptions: {
11
+ globals: {
12
+ ...globals.browser
13
+ },
14
+ sourceType: 'script'
15
+ }
16
+ },
17
+ {
18
+ files: ['test/**/*.js'],
19
+ languageOptions: {
20
+ globals: {
21
+ ...globals.browser,
22
+ ...globals.mocha
23
+ },
24
+ sourceType: 'script'
25
+ }
26
+ },
27
+ {
28
+ ignores: [
29
+ ...resolveIgnoresFromGitignore()
30
+ ]
31
+ },
32
+ js.configs.recommended,
33
+ ...neostandard(),
34
+ {
35
+ plugins: {
36
+ '@stylistic': stylistic,
37
+ 'no-only-tests': noOnlyTests
38
+ },
39
+ rules: {
40
+ // built-in
41
+ 'object-shorthand': ['error'],
42
+ 'no-console': ['error', { allow: ['debug', 'info', 'warn', 'error'] }],
43
+
44
+ // plugin:stylistic
45
+ '@stylistic/indent': ['warn', 4], // https://eslint.style/rules/indent#options
46
+ '@stylistic/spaced-comment': ['error', 'always'], // https://eslint.style/rules/spaced-comment
47
+ '@stylistic/no-multi-spaces': 'error', // https://eslint.style/rules/no-multi-spaces#no-multi-spaces
48
+ '@stylistic/comma-dangle': ['error', 'never'], // https://eslint.style/rules/comma-dangle#comma-dangle
49
+
50
+ // plugin:no-only-tests
51
+ 'no-only-tests/no-only-tests': 'error'
52
+ }
53
+ }
54
+ ]
package/forge/driver.js CHANGED
@@ -13,6 +13,6 @@ module.exports = fp(async function (app, opts) {
13
13
  done()
14
14
  })
15
15
  } catch (err) {
16
- console.log(err)
16
+ console.error(err)
17
17
  }
18
18
  })
@@ -66,7 +66,7 @@ module.exports = async function (app, opts) {
66
66
  }
67
67
  reply.code(200).send()
68
68
  } catch (err) {
69
- console.log(err)
69
+ console.error(err)
70
70
  reply.code(400).send(err)
71
71
  }
72
72
  })
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@flowfuse/file-server",
3
- "version": "2.25.1-a930630-202512291204.0",
3
+ "version": "2.25.1-ed27b66-202512301348.0",
4
4
  "description": "A basic Object Storage backend",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "start": "node index.js",
8
8
  "serve": "cross-env NODE_ENV=development nodemon -w forge index.js",
9
- "lint": "eslint -c .eslintrc \"forge/**/*.js\" \"test/**/*.js\" index.js",
10
- "lint:fix": "eslint -c .eslintrc \"forge/**/*.js\" \"test/**/*.js\" index.js --fix",
9
+ "lint": "eslint -c eslint.config.mjs",
10
+ "lint:fix": "eslint -c eslint.config.mjs --fix",
11
11
  "test": "mocha test/unit/**/*_spec.js --timeout 5000",
12
12
  "test:nopg": "cross-env TEST_POSTGRES=false mocha test/unit/**/*_spec.js --timeout 5000"
13
13
  },
@@ -48,13 +48,14 @@
48
48
  "yaml": "^2.1.3"
49
49
  },
50
50
  "devDependencies": {
51
+ "@eslint/js": "^9.39.2",
51
52
  "cross-env": "^7.0.3",
52
- "eslint": "^8.47.0",
53
- "eslint-config-standard": "^17.1.0",
54
- "eslint-plugin-no-only-tests": "^3.1.0",
55
- "eslint-plugin-promise": "^6.1.1",
53
+ "eslint": "^9.39.2",
54
+ "eslint-plugin-no-only-tests": "^3.3.0",
55
+ "globals": "^16.5.0",
56
56
  "mocha": "^10.1.0",
57
57
  "mocha-cli": "^1.0.1",
58
+ "neostandard": "^0.12.2",
58
59
  "nodemon": "^3.0.1",
59
60
  "should": "^13.2.3"
60
61
  },