Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
158 changes: 12 additions & 146 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,150 +1,16 @@
'use strict';

const ERROR = 'error';
const WARN = 'warn';
const ALWAYS = 'always';
const NEVER = 'never';

module.exports = {
'env': {
es6: true,
node: true,
},
'parserOptions': {
'ecmaVersion': 2018
globals: {
NodeJS: 'readonly',
BufferEncoding: 'readonly',
},
'extends': 'eslint:recommended',
'plugins': [
'mocha'
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
],
'rules': {
'indent': [
ERROR,
4,
{
SwitchCase: 1
}
],
'linebreak-style': ERROR,
'quotes': [
ERROR,
'single',
{
avoidEscape: true,
allowTemplateLiterals: true
}
],
'semi': [
ERROR,
ALWAYS
],
'func-names': ERROR,
'no-empty': ERROR,
'no-empty-function': ERROR,
'brace-style': [
ERROR,
'1tbs',
{ allowSingleLine: true }
],
'no-multiple-empty-lines': ERROR,
'no-multi-spaces': ERROR,
'one-var': [
ERROR,
NEVER
],
'quote-props': [
ERROR,
'consistent-as-needed'
],
'key-spacing': ERROR,
'space-unary-ops': [
ERROR,
{
words: true,
nonwords: false
}
],
'no-spaced-func': ERROR,
'space-before-function-paren': [
ERROR,
{
anonymous: ALWAYS,
named: NEVER
}
],
'arrow-body-style': [
ERROR,
'as-needed'
],
'array-bracket-spacing': ERROR,
'space-in-parens': ERROR,
'comma-dangle': ERROR,
'no-trailing-spaces': ERROR,
'yoda': ERROR,
'max-len': [
ERROR,
120
],
'camelcase': [
ERROR,
{
properties: 'never'
}
],
'new-cap': [
ERROR,
{
capIsNewExceptions: ['Q']
}
],
'comma-style': ERROR,
'curly': ERROR,
'object-curly-spacing': [
ERROR,
ALWAYS
],
'template-curly-spacing': ERROR,
'dot-notation': ERROR,
'dot-location': [
ERROR,
'property'
],
'func-style': [
ERROR,
'declaration',
{
allowArrowFunctions: true
}
],
'eol-last': ERROR,
'space-infix-ops': ERROR,
'keyword-spacing': ERROR,
'space-before-blocks': ERROR,
'no-invalid-this': ERROR,
'consistent-this': ERROR,
'no-this-before-super': ERROR,
'no-unreachable': ERROR,
'no-sparse-arrays': ERROR,
'array-callback-return': ERROR,
'eqeqeq': ERROR,
'no-use-before-define': WARN,
'no-undef': ERROR,
'no-unused-vars': WARN,
'no-mixed-spaces-and-tabs': ERROR,
'operator-linebreak': [
ERROR,
'before'
],
'no-console': [
WARN,
{
'allow': [
'warn',
'error'
]
}
],
'mocha/no-skipped-tests': ERROR,
'mocha/no-exclusive-tests': ERROR
}
plugins: ['@typescript-eslint'],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module'
},
};

4 changes: 0 additions & 4 deletions .nsprc
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@
"GHSA-f8q6-p94x-37v3": {
"active": true,
"notes": "braceExpand is not used in rimraf"
},
"GHSA-4hjh-wcwx-xvwj": {
"active": true,
"notes": "should be removed when maester-client is fixed: https://github.com/elasticio/maester-client/issues/47"
}
}
5 changes: 0 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
## 2.7.7 (November 19, 2025)

* Improve handling of cases when connection to RabbitMQ is re-established.
[#7855](https://github.com/elasticio/elasticio/issues/7855)

## 2.7.6 (August 1, 2025)

* Updated `elasticio-rest-node` to version 2.0.0 to address a vulnerability
Expand Down
19 changes: 19 additions & 0 deletions config/local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"LOG_LEVEL": "trace",
"ELASTICIO_FLOW_ID": "692ee23d4ab5d34bb7321559",
"ELASTICIO_EXEC_ID": "exec_67890",
"ELASTICIO_STEP_ID": "step_1",
"ELASTICIO_CONTAINER_ID": "container_abcde",
"ELASTICIO_WORKSPACE_ID": "workspace_xyz",
"ELASTICIO_USER_ID": "user_1122",
"ELASTICIO_COMP_ID": "component_3344",
"ELASTICIO_FUNCTION": "data_trigger",
"ELASTICIO_API_URI": "http://localhost:9000",
"ELASTICIO_API_USERNAME": "task-692ee23d4ab5d34bb7321559",
"ELASTICIO_API_KEY": "976ffec8-455b-494e-9478-2d66761f4040",
"ELASTICIO_MESSAGE_CRYPTO_IV": "0.03091345790184",
"ELASTICIO_MESSAGE_CRYPTO_PASSWORD": "password",
"ELASTICIO_SAILOR_PROXY_URI": "http://localhost:5001",
"ELASTICIO_COMPONENT_PATH": "./spec/component",
"ELASTICIO_EMIT_LIGHTWEIGHT_MESSAGE": "true"
}
Loading