xcraft-core-busclient 5.8.0 → 5.9.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/.editorconfig +9 -9
- package/.zou-flow +2 -2
- package/README.md +10 -10
- package/config.js +13 -13
- package/eslint.config.js +65 -65
- package/index.js +700 -696
- package/lib/command.js +214 -200
- package/lib/events.js +233 -233
- package/lib/resp.js +257 -257
- package/package.json +44 -44
package/.editorconfig
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
root = true
|
|
2
|
-
|
|
3
|
-
[*.{js,jsx,json}]
|
|
4
|
-
indent_style = space
|
|
5
|
-
indent_size = 2
|
|
6
|
-
charset = utf-8
|
|
7
|
-
trim_trailing_whitespace = true
|
|
8
|
-
insert_final_newline = true
|
|
9
|
-
max_line_length = 80
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*.{js,jsx,json}]
|
|
4
|
+
indent_style = space
|
|
5
|
+
indent_size = 2
|
|
6
|
+
charset = utf-8
|
|
7
|
+
trim_trailing_whitespace = true
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
max_line_length = 80
|
package/.zou-flow
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
[update-version]
|
|
2
|
-
package-json = package.json
|
|
1
|
+
[update-version]
|
|
2
|
+
package-json = package.json
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# xcraft-core-busclient
|
|
2
|
-
|
|
3
|
-
Client for the Xcraft bus.
|
|
4
|
-
|
|
5
|
-
This module provides the interfaces in order to connect to a server, send
|
|
6
|
-
commands and send or subscribe to events.
|
|
7
|
-
|
|
8
|
-
It provides the global busClient too. This handler must be used between the
|
|
9
|
-
modules in order to have always the same connection everywhere. Otherwise
|
|
10
|
-
you can connect to several servers by instancing a new busClient for each one.
|
|
1
|
+
# xcraft-core-busclient
|
|
2
|
+
|
|
3
|
+
Client for the Xcraft bus.
|
|
4
|
+
|
|
5
|
+
This module provides the interfaces in order to connect to a server, send
|
|
6
|
+
commands and send or subscribe to events.
|
|
7
|
+
|
|
8
|
+
It provides the global busClient too. This handler must be used between the
|
|
9
|
+
modules in order to have always the same connection everywhere. Otherwise
|
|
10
|
+
you can connect to several servers by instancing a new busClient for each one.
|
package/config.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Retrieve the inquirer definition for xcraft-core-etc
|
|
5
|
-
*/
|
|
6
|
-
module.exports = [
|
|
7
|
-
{
|
|
8
|
-
type: 'input',
|
|
9
|
-
name: 'caPath',
|
|
10
|
-
message: 'path on a server certificate file (pem)',
|
|
11
|
-
default: '',
|
|
12
|
-
},
|
|
13
|
-
];
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Retrieve the inquirer definition for xcraft-core-etc
|
|
5
|
+
*/
|
|
6
|
+
module.exports = [
|
|
7
|
+
{
|
|
8
|
+
type: 'input',
|
|
9
|
+
name: 'caPath',
|
|
10
|
+
message: 'path on a server certificate file (pem)',
|
|
11
|
+
default: '',
|
|
12
|
+
},
|
|
13
|
+
];
|
package/eslint.config.js
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
const js = require('@eslint/js');
|
|
2
|
-
const globals = require('globals');
|
|
3
|
-
const react = require('eslint-plugin-react');
|
|
4
|
-
const jsdoc = require('eslint-plugin-jsdoc');
|
|
5
|
-
const babel = require('@babel/eslint-plugin');
|
|
6
|
-
const prettier = require('eslint-config-prettier');
|
|
7
|
-
const babelParser = require('@babel/eslint-parser');
|
|
8
|
-
|
|
9
|
-
module.exports = [
|
|
10
|
-
js.configs.recommended,
|
|
11
|
-
react.configs.flat.recommended,
|
|
12
|
-
jsdoc.configs['flat/recommended'],
|
|
13
|
-
prettier,
|
|
14
|
-
{
|
|
15
|
-
languageOptions: {
|
|
16
|
-
parser: babelParser,
|
|
17
|
-
parserOptions: {
|
|
18
|
-
requireConfigFile: false, // Évite de devoir spécifier un fichier de configuration Babel
|
|
19
|
-
babelOptions: {
|
|
20
|
-
presets: ['@babel/preset-react'],
|
|
21
|
-
},
|
|
22
|
-
ecmaFeatures: {
|
|
23
|
-
jsx: true,
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
globals: {
|
|
27
|
-
...globals.browser,
|
|
28
|
-
...globals.node,
|
|
29
|
-
...globals.es2022,
|
|
30
|
-
...globals.mocha,
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
plugins: {
|
|
34
|
-
'react': react,
|
|
35
|
-
'jsdoc': jsdoc,
|
|
36
|
-
'@babel': babel,
|
|
37
|
-
},
|
|
38
|
-
rules: {
|
|
39
|
-
'eqeqeq': 'error',
|
|
40
|
-
'no-console': 'off',
|
|
41
|
-
'react/display-name': 'off',
|
|
42
|
-
'@babel/no-unused-expressions': 'error', // Utilisation de règles spécifiques à Babel
|
|
43
|
-
'no-unused-vars': [
|
|
44
|
-
'error',
|
|
45
|
-
{
|
|
46
|
-
vars: 'all',
|
|
47
|
-
args: 'none',
|
|
48
|
-
ignoreRestSiblings: true,
|
|
49
|
-
destructuredArrayIgnorePattern: '^_',
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
'jsdoc/require-jsdoc': 'off',
|
|
53
|
-
'jsdoc/require-param-description': 'off',
|
|
54
|
-
'jsdoc/require-returns-description': 'off',
|
|
55
|
-
},
|
|
56
|
-
settings: {
|
|
57
|
-
react: {
|
|
58
|
-
version: 'detect',
|
|
59
|
-
},
|
|
60
|
-
jsdoc: {
|
|
61
|
-
mode: 'typescript',
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
];
|
|
1
|
+
const js = require('@eslint/js');
|
|
2
|
+
const globals = require('globals');
|
|
3
|
+
const react = require('eslint-plugin-react');
|
|
4
|
+
const jsdoc = require('eslint-plugin-jsdoc');
|
|
5
|
+
const babel = require('@babel/eslint-plugin');
|
|
6
|
+
const prettier = require('eslint-config-prettier');
|
|
7
|
+
const babelParser = require('@babel/eslint-parser');
|
|
8
|
+
|
|
9
|
+
module.exports = [
|
|
10
|
+
js.configs.recommended,
|
|
11
|
+
react.configs.flat.recommended,
|
|
12
|
+
jsdoc.configs['flat/recommended'],
|
|
13
|
+
prettier,
|
|
14
|
+
{
|
|
15
|
+
languageOptions: {
|
|
16
|
+
parser: babelParser,
|
|
17
|
+
parserOptions: {
|
|
18
|
+
requireConfigFile: false, // Évite de devoir spécifier un fichier de configuration Babel
|
|
19
|
+
babelOptions: {
|
|
20
|
+
presets: ['@babel/preset-react'],
|
|
21
|
+
},
|
|
22
|
+
ecmaFeatures: {
|
|
23
|
+
jsx: true,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
globals: {
|
|
27
|
+
...globals.browser,
|
|
28
|
+
...globals.node,
|
|
29
|
+
...globals.es2022,
|
|
30
|
+
...globals.mocha,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
plugins: {
|
|
34
|
+
'react': react,
|
|
35
|
+
'jsdoc': jsdoc,
|
|
36
|
+
'@babel': babel,
|
|
37
|
+
},
|
|
38
|
+
rules: {
|
|
39
|
+
'eqeqeq': 'error',
|
|
40
|
+
'no-console': 'off',
|
|
41
|
+
'react/display-name': 'off',
|
|
42
|
+
'@babel/no-unused-expressions': 'error', // Utilisation de règles spécifiques à Babel
|
|
43
|
+
'no-unused-vars': [
|
|
44
|
+
'error',
|
|
45
|
+
{
|
|
46
|
+
vars: 'all',
|
|
47
|
+
args: 'none',
|
|
48
|
+
ignoreRestSiblings: true,
|
|
49
|
+
destructuredArrayIgnorePattern: '^_',
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
'jsdoc/require-jsdoc': 'off',
|
|
53
|
+
'jsdoc/require-param-description': 'off',
|
|
54
|
+
'jsdoc/require-returns-description': 'off',
|
|
55
|
+
},
|
|
56
|
+
settings: {
|
|
57
|
+
react: {
|
|
58
|
+
version: 'detect',
|
|
59
|
+
},
|
|
60
|
+
jsdoc: {
|
|
61
|
+
mode: 'typescript',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
];
|