Skip to content
Open

init #80

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
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.1
parameters:
node-version:
type: string
default: "18.13.0"
default: "24.10.0"
orbs:
node: circleci/node@5.0.0
slack: circleci/slack@4.5.3
Expand Down Expand Up @@ -71,8 +71,8 @@ commands:
}
jobs:
test:
docker: # run the steps with Docker
- image: cimg/node:18.13.0
docker:
- image: cimg/node:24.10.0
steps:
- checkout
- node/install:
Expand All @@ -88,14 +88,14 @@ jobs:
command: npm test
build:
docker:
- image: cimg/node:18.13.0
- image: cimg/node:24.10.0
user: root
steps:
- checkout
- node/install:
node-version: << pipeline.parameters.node-version >>
- setup_remote_docker:
version: 19.03.13
version: default
docker_layer_caching: true
# build and push Docker image
- run:
Expand Down
15 changes: 15 additions & 0 deletions .grype-ignore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,18 @@ ignore:
package:
name: libcrypto3
version: 3.0.7-r0

- vulnerability: CVE-2023-5363
package:
name: libssl3
version: 3.1.3-r0

- vulnerability: CVE-2023-5363
package:
name: libcrypto3
version: 3.1.3-r0

- vulnerability: CVE-2023-45853
package:
name: zlib
version: 1.3.1-r2
6 changes: 5 additions & 1 deletion .nsprc
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@
"GHSA-hrpp-h998-j3pp": {
"active": true,
"notes": "There is no query-string user input in sailor"
}
},
"GHSA-fjxv-7rqg-78g4": {
"active": true,
"notes": "This vulnerability is in form-data used transitively via deprecated 'request' library. We do not use form-data directly. Waiting on upstream libraries to upgrade."
}
}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.2.13 (December 03, 2025)

* Update Sailor version to 2.7.7
* Remove unused `elasticio-node` dependency
* Update the Node engine to version 24.x.

## 1.2.12 (September 12, 2024)

* Update Sailor version to 2.7.3
Expand Down
6 changes: 5 additions & 1 deletion actions/code.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// eslint-disable-next-line import/no-extraneous-dependencies
const _ = require('lodash');
const vm = require('vm');
const { messages } = require('elasticio-node');
const co = require('co');
const request = require('co-request');

Expand All @@ -15,6 +14,11 @@ function wait(timeout) {
});
}

const messages = {
newMessageWithBody: (body) => ({ body, headers: {} }),
newEmptyMessage: () => ({ body: {}, headers: {} }),
};

// eslint-disable-next-line consistent-return,func-names
exports.process = async function (msg, conf, snapshot) {
const vmExports = {};
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Node.js Code",
"version": "1.2.12",
"version": "1.2.13-dev.1",
"description": "You can write your own code and deploy it as part of integration process.",
"docsUrl": "http://go2.elastic.io/code-component",
"fields": {
Expand Down
Loading