elasticio-sailor-nodejs 3.0.0-dev7.1 → 3.0.0-sailor-proxy-dev1

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 CHANGED
@@ -1,150 +1,16 @@
1
- 'use strict';
2
-
3
- const ERROR = 'error';
4
- const WARN = 'warn';
5
- const ALWAYS = 'always';
6
- const NEVER = 'never';
7
-
8
1
  module.exports = {
9
- 'env': {
10
- es6: true,
11
- node: true,
12
- },
13
- 'parserOptions': {
14
- 'ecmaVersion': 2018
2
+ globals: {
3
+ NodeJS: 'readonly',
4
+ BufferEncoding: 'readonly',
15
5
  },
16
- 'extends': 'eslint:recommended',
17
- 'plugins': [
18
- 'mocha'
6
+ parser: '@typescript-eslint/parser',
7
+ extends: [
8
+ 'plugin:@typescript-eslint/recommended',
19
9
  ],
20
- 'rules': {
21
- 'indent': [
22
- ERROR,
23
- 4,
24
- {
25
- SwitchCase: 1
26
- }
27
- ],
28
- 'linebreak-style': ERROR,
29
- 'quotes': [
30
- ERROR,
31
- 'single',
32
- {
33
- avoidEscape: true,
34
- allowTemplateLiterals: true
35
- }
36
- ],
37
- 'semi': [
38
- ERROR,
39
- ALWAYS
40
- ],
41
- 'func-names': ERROR,
42
- 'no-empty': ERROR,
43
- 'no-empty-function': ERROR,
44
- 'brace-style': [
45
- ERROR,
46
- '1tbs',
47
- { allowSingleLine: true }
48
- ],
49
- 'no-multiple-empty-lines': ERROR,
50
- 'no-multi-spaces': ERROR,
51
- 'one-var': [
52
- ERROR,
53
- NEVER
54
- ],
55
- 'quote-props': [
56
- ERROR,
57
- 'consistent-as-needed'
58
- ],
59
- 'key-spacing': ERROR,
60
- 'space-unary-ops': [
61
- ERROR,
62
- {
63
- words: true,
64
- nonwords: false
65
- }
66
- ],
67
- 'no-spaced-func': ERROR,
68
- 'space-before-function-paren': [
69
- ERROR,
70
- {
71
- anonymous: ALWAYS,
72
- named: NEVER
73
- }
74
- ],
75
- 'arrow-body-style': [
76
- ERROR,
77
- 'as-needed'
78
- ],
79
- 'array-bracket-spacing': ERROR,
80
- 'space-in-parens': ERROR,
81
- 'comma-dangle': ERROR,
82
- 'no-trailing-spaces': ERROR,
83
- 'yoda': ERROR,
84
- 'max-len': [
85
- ERROR,
86
- 120
87
- ],
88
- 'camelcase': [
89
- ERROR,
90
- {
91
- properties: 'never'
92
- }
93
- ],
94
- 'new-cap': [
95
- ERROR,
96
- {
97
- capIsNewExceptions: ['Q']
98
- }
99
- ],
100
- 'comma-style': ERROR,
101
- 'curly': ERROR,
102
- 'object-curly-spacing': [
103
- ERROR,
104
- ALWAYS
105
- ],
106
- 'template-curly-spacing': ERROR,
107
- 'dot-notation': ERROR,
108
- 'dot-location': [
109
- ERROR,
110
- 'property'
111
- ],
112
- 'func-style': [
113
- ERROR,
114
- 'declaration',
115
- {
116
- allowArrowFunctions: true
117
- }
118
- ],
119
- 'eol-last': ERROR,
120
- 'space-infix-ops': ERROR,
121
- 'keyword-spacing': ERROR,
122
- 'space-before-blocks': ERROR,
123
- 'no-invalid-this': ERROR,
124
- 'consistent-this': ERROR,
125
- 'no-this-before-super': ERROR,
126
- 'no-unreachable': ERROR,
127
- 'no-sparse-arrays': ERROR,
128
- 'array-callback-return': ERROR,
129
- 'eqeqeq': ERROR,
130
- 'no-use-before-define': WARN,
131
- 'no-undef': ERROR,
132
- 'no-unused-vars': WARN,
133
- 'no-mixed-spaces-and-tabs': ERROR,
134
- 'operator-linebreak': [
135
- ERROR,
136
- 'before'
137
- ],
138
- 'no-console': [
139
- WARN,
140
- {
141
- 'allow': [
142
- 'warn',
143
- 'error'
144
- ]
145
- }
146
- ],
147
- 'mocha/no-skipped-tests': ERROR,
148
- 'mocha/no-exclusive-tests': ERROR
149
- }
10
+ plugins: ['@typescript-eslint'],
11
+ parserOptions: {
12
+ ecmaVersion: 2018,
13
+ sourceType: 'module'
14
+ },
150
15
  };
16
+
package/.nsprc CHANGED
@@ -2,13 +2,5 @@
2
2
  "GHSA-f8q6-p94x-37v3": {
3
3
  "active": true,
4
4
  "notes": "braceExpand is not used in rimraf"
5
- },
6
- "GHSA-4hjh-wcwx-xvwj": {
7
- "active": true,
8
- "notes": "should be removed when maester-client is fixed: https://github.com/elasticio/maester-client/issues/47"
9
- },
10
- "GHSA-869p-cjfg-cm3x": {
11
- "active": true,
12
- "notes": "we don't use HMAC signature"
13
5
  }
14
6
  }
package/CHANGELOG.md CHANGED
@@ -1,13 +1,3 @@
1
- ## 2.7.8 (February 4, 2026)
2
-
3
- * Ensure connection before ack/nack of the message
4
- [#7855](https://github.com/elasticio/elasticio/issues/7855)
5
-
6
- ## 2.7.7 (November 19, 2025)
7
-
8
- * Improve handling of cases when connection to RabbitMQ is re-established.
9
- [#7855](https://github.com/elasticio/elasticio/issues/7855)
10
-
11
1
  ## 2.7.6 (August 1, 2025)
12
2
 
13
3
  * Updated `elasticio-rest-node` to version 2.0.0 to address a vulnerability
@@ -0,0 +1,19 @@
1
+ {
2
+ "LOG_LEVEL": "trace",
3
+ "ELASTICIO_FLOW_ID": "692ee23d4ab5d34bb7321559",
4
+ "ELASTICIO_EXEC_ID": "69b26526c4796609ca0da12a",
5
+ "ELASTICIO_STEP_ID": "step_1",
6
+ "ELASTICIO_CONTAINER_ID": "69b26526c4796609ca0da129",
7
+ "ELASTICIO_WORKSPACE_ID": "69b26526c4796609ca0da128",
8
+ "ELASTICIO_USER_ID": "69b26526c4796609ca0da127",
9
+ "ELASTICIO_COMP_ID": "69b26526c4796609ca0da126",
10
+ "ELASTICIO_FUNCTION": "data_trigger",
11
+ "ELASTICIO_API_URI": "http://localhost:9000",
12
+ "ELASTICIO_API_USERNAME": "task-692ee23d4ab5d34bb7321559",
13
+ "ELASTICIO_API_KEY": "976ffec8-455b-494e-9478-2d66761f4040",
14
+ "ELASTICIO_MESSAGE_CRYPTO_IV": "0.03091345790184",
15
+ "ELASTICIO_MESSAGE_CRYPTO_PASSWORD": "password",
16
+ "ELASTICIO_SAILOR_PROXY_URI": "http://localhost:4001",
17
+ "ELASTICIO_COMPONENT_PATH": "./spec/component",
18
+ "ELASTICIO_EMIT_LIGHTWEIGHT_MESSAGE": "true"
19
+ }
package/lib/executor.js CHANGED
@@ -15,7 +15,6 @@ class TaskExec extends EventEmitter {
15
15
  assert(this._services, 'TaskExec should be created with services');
16
16
  assert(this._services.apiClient, 'TaskExec should be created with api client');
17
17
  assert(this._services.config , 'TaskExec should be created with config');
18
- assert(this._services.amqp, 'TaskExec should be created with ampq');
19
18
  }
20
19
 
21
20
  process(triggerOrAction, payload, cfg, snapshot) {
@@ -53,14 +52,6 @@ class TaskExec extends EventEmitter {
53
52
  return this._services.config;
54
53
  }
55
54
 
56
- /**
57
- * Get amqp connection wrapper. Internal.
58
- * Should be used only or really special cases
59
- */
60
- __getAmqp() {
61
- return this._services.amqp;
62
- }
63
-
64
55
  /**
65
56
  * Returns flow variables or empty object
66
57
  * @returns {Object<String, String>}