@flowfuse/driver-localfs 2.25.1-22d5670-202512231015.0 → 2.25.1-61ac7fa-202512301454.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.
@@ -19,7 +19,7 @@ on:
19
19
 
20
20
  jobs:
21
21
  build:
22
- uses: 'flowfuse/github-actions-workflows/.github/workflows/build_node_package.yml@v0.44.0'
22
+ uses: 'flowfuse/github-actions-workflows/.github/workflows/build_node_package.yml@v0.45.0'
23
23
  with:
24
24
  node: '[
25
25
  {"version": "18", "tests": false, "lint": true},
@@ -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/localfs.js CHANGED
@@ -553,7 +553,7 @@ module.exports = {
553
553
  const info = JSON.parse((await got.get(infoURL)).body)
554
554
  return info
555
555
  } catch (err) {
556
- console.log(err)
556
+ console.error(err)
557
557
  // TODO
558
558
  }
559
559
  },
@@ -828,13 +828,13 @@ module.exports = {
828
828
  try {
829
829
  await got.post(`http://localhost:${broker.settings.port}/api/v1/commands/start`)
830
830
  } catch (err) {
831
- console.log(err)
831
+ console.error(err)
832
832
  }
833
833
  } else if (command === 'stop') {
834
834
  try {
835
835
  await got.post(`http://localhost:${broker.settings.port}/api/v1/commands/stop`)
836
836
  } catch (err) {
837
- console.log(err)
837
+ console.error(err)
838
838
  }
839
839
  }
840
840
  },
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@flowfuse/driver-localfs",
3
- "version": "2.25.1-22d5670-202512231015.0",
3
+ "version": "2.25.1-61ac7fa-202512301454.0",
4
4
  "description": "Local Filesystem FlowFuse Project driver",
5
5
  "main": "localfs.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
8
- "lint": "eslint -c .eslintrc \"**/*.js\"",
9
- "lint:fix": "eslint -c .eslintrc \"**/*.js\" --fix"
8
+ "lint": "eslint -c eslint.config.mjs",
9
+ "lint:fix": "eslint -c eslint.config.mjs--fix"
10
10
  },
11
11
  "repository": {
12
12
  "type": "git",
@@ -22,14 +22,17 @@
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
24
  "@flowfuse/mqtt-schema-agent": "^1.0.0",
25
- "@flowfuse/nr-launcher": "2.25.1-53a6f2f-202512231014.0",
25
+ "@flowfuse/nr-launcher": "2.25.1-53a6f2f-202512231018.0",
26
26
  "form-data": "^4.0.0",
27
27
  "got": "^11.8.5",
28
28
  "semver": "~7.6.0",
29
29
  "ws": "^8.18.2"
30
30
  },
31
31
  "devDependencies": {
32
- "eslint": "^8.25.0",
33
- "eslint-config-standard": "^17.0.0"
32
+ "@eslint/js": "^9.39.2",
33
+ "eslint": "^9.39.2",
34
+ "eslint-plugin-no-only-tests": "^3.3.0",
35
+ "globals": "^16.5.0",
36
+ "neostandard": "^0.12.2"
34
37
  }
35
38
  }
package/.eslintrc DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "root": true,
3
- "env": {
4
- "browser": true,
5
- "commonjs": true,
6
- "es2021": true,
7
- "mocha": true
8
- },
9
- "extends": [
10
- "standard"
11
- ],
12
- "parserOptions": {
13
- "ecmaVersion": 12
14
- },
15
- "rules": {
16
- "indent": ["error", 4],
17
- "object-shorthand": ["error"]
18
- }
19
- }