@flowfuse/driver-docker 2.24.5 → 2.26.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.
- package/.github/workflows/release-publish.yml +1 -1
- package/CHANGELOG.md +10 -0
- package/docker.js +3 -3
- package/eslint.config.mjs +56 -0
- package/package.json +8 -5
- package/.eslintrc +0 -19
|
@@ -13,6 +13,6 @@ jobs:
|
|
|
13
13
|
with:
|
|
14
14
|
node-version: 18
|
|
15
15
|
- run: npm ci --omit dev
|
|
16
|
-
- uses: JS-DevTools/npm-publish@
|
|
16
|
+
- uses: JS-DevTools/npm-publish@d2fef917d9aa6e1f0ee5eac28ed023eb4921ce51 # v4.1.3
|
|
17
17
|
with:
|
|
18
18
|
token: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
#### 2.26.0: Release
|
|
2
|
+
|
|
3
|
+
- Bump JS-DevTools/npm-publish from 4.1.2 to 4.1.3 (#176)
|
|
4
|
+
- Bump JS-DevTools/npm-publish from 4.1.1 to 4.1.2 (#174) @app/dependabot
|
|
5
|
+
- fix eqeqeq & quotes (#175) @hardillb
|
|
6
|
+
- Convert to eslint v9 (#173) @hardillb
|
|
7
|
+
|
|
8
|
+
#### 2.25.0: Release
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
#### 2.24.5: Release
|
|
2
12
|
|
|
3
13
|
- Update Node.js version in build workflow (#168)
|
package/docker.js
CHANGED
|
@@ -357,7 +357,7 @@ module.exports = {
|
|
|
357
357
|
container = undefined
|
|
358
358
|
}
|
|
359
359
|
} catch (err) {
|
|
360
|
-
console.
|
|
360
|
+
console.error(err)
|
|
361
361
|
}
|
|
362
362
|
if (container) {
|
|
363
363
|
const state = await container.inspect()
|
|
@@ -420,7 +420,7 @@ module.exports = {
|
|
|
420
420
|
createMQttTopicAgent(broker)
|
|
421
421
|
}
|
|
422
422
|
} catch (err) {
|
|
423
|
-
console.
|
|
423
|
+
console.error(err)
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
}
|
|
@@ -749,7 +749,7 @@ module.exports = {
|
|
|
749
749
|
await container.stop()
|
|
750
750
|
await container.remove()
|
|
751
751
|
} catch (err) {
|
|
752
|
-
console.
|
|
752
|
+
console.error(err)
|
|
753
753
|
}
|
|
754
754
|
},
|
|
755
755
|
getBrokerAgentState: async (broker) => {
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
eqeqeq: 'error',
|
|
42
|
+
'object-shorthand': ['error'],
|
|
43
|
+
'no-console': ['error', { allow: ['debug', 'info', 'warn', 'error'] }],
|
|
44
|
+
quotes: ['off', 'error', 'single', { avoidEscape: true }],
|
|
45
|
+
|
|
46
|
+
// plugin:stylistic
|
|
47
|
+
'@stylistic/indent': ['warn', 4], // https://eslint.style/rules/indent#options
|
|
48
|
+
'@stylistic/spaced-comment': ['error', 'always'], // https://eslint.style/rules/spaced-comment
|
|
49
|
+
'@stylistic/no-multi-spaces': 'error', // https://eslint.style/rules/no-multi-spaces#no-multi-spaces
|
|
50
|
+
'@stylistic/comma-dangle': ['error', 'never'], // https://eslint.style/rules/comma-dangle#comma-dangle
|
|
51
|
+
|
|
52
|
+
// plugin:no-only-tests
|
|
53
|
+
'no-only-tests/no-only-tests': 'error'
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
]
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowfuse/driver-docker",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.26.0",
|
|
4
4
|
"description": "Docker driver for FlowFuse",
|
|
5
5
|
"main": "docker.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
-
"lint": "eslint -c .
|
|
9
|
-
"lint:fix": "eslint -c .
|
|
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",
|
|
@@ -26,7 +26,10 @@
|
|
|
26
26
|
"got": "^11.8.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"eslint": "^
|
|
30
|
-
"eslint
|
|
29
|
+
"@eslint/js": "^9.39.2",
|
|
30
|
+
"eslint": "^9.39.2",
|
|
31
|
+
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
32
|
+
"globals": "^16.5.0",
|
|
33
|
+
"neostandard": "^0.12.2"
|
|
31
34
|
}
|
|
32
35
|
}
|
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
|
-
}
|