xcraft-core-busclient 5.0.1 → 5.1.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/.eslintrc.js +28 -28
- package/README.md +10 -10
- package/config.js +13 -13
- package/index.js +595 -566
- package/lib/command.js +155 -148
- package/lib/events.js +228 -223
- package/lib/resp.js +274 -241
- package/package.json +43 -43
package/.eslintrc.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
root: true,
|
|
5
|
-
parserOptions: {
|
|
6
|
-
ecmaVersion: 7,
|
|
7
|
-
sourceType: 'module',
|
|
8
|
-
ecmaFeatures: {
|
|
9
|
-
jsx: true,
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
env: {
|
|
13
|
-
browser: true,
|
|
14
|
-
mocha: true,
|
|
15
|
-
node: true,
|
|
16
|
-
es6: true,
|
|
17
|
-
},
|
|
18
|
-
parser: 'babel-eslint',
|
|
19
|
-
plugins: ['react', 'babel'],
|
|
20
|
-
extends: ['prettier', 'eslint:recommended', 'plugin:react/recommended'],
|
|
21
|
-
rules: {
|
|
22
|
-
// Other rules
|
|
23
|
-
'no-console': 'off',
|
|
24
|
-
'valid-jsdoc': ['error', {requireReturn: false}],
|
|
25
|
-
'eqeqeq': 'error',
|
|
26
|
-
'react/display-name': 'off',
|
|
27
|
-
},
|
|
28
|
-
};
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
root: true,
|
|
5
|
+
parserOptions: {
|
|
6
|
+
ecmaVersion: 7,
|
|
7
|
+
sourceType: 'module',
|
|
8
|
+
ecmaFeatures: {
|
|
9
|
+
jsx: true,
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
env: {
|
|
13
|
+
browser: true,
|
|
14
|
+
mocha: true,
|
|
15
|
+
node: true,
|
|
16
|
+
es6: true,
|
|
17
|
+
},
|
|
18
|
+
parser: 'babel-eslint',
|
|
19
|
+
plugins: ['react', 'babel'],
|
|
20
|
+
extends: ['prettier', 'eslint:recommended', 'plugin:react/recommended'],
|
|
21
|
+
rules: {
|
|
22
|
+
// Other rules
|
|
23
|
+
'no-console': 'off',
|
|
24
|
+
'valid-jsdoc': ['error', {requireReturn: false}],
|
|
25
|
+
'eqeqeq': 'error',
|
|
26
|
+
'react/display-name': 'off',
|
|
27
|
+
},
|
|
28
|
+
};
|
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
|
+
];
|