elasticio-sailor-nodejs 2.7.0 → 2.7.1
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/.github/CODEOWNERS +8 -0
- package/lib/sailor.js +3 -3
- package/package.json +2 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
|
|
2
|
+
|
|
3
|
+
# These owners will be the default owners for everything in
|
|
4
|
+
# the repo. Unless a later match takes precedence,
|
|
5
|
+
# elasticio/platform-qa and @elasticio/platform will be requested for
|
|
6
|
+
# review when someone opens a pull request.
|
|
7
|
+
# Introduced to make QA-team's code reivew approve required https://github.com/elasticio/elasticio/issues/5139
|
|
8
|
+
* @elasticio/platform-qa
|
package/lib/sailor.js
CHANGED
|
@@ -10,7 +10,7 @@ const RestApiClient = require('elasticio-rest-node');
|
|
|
10
10
|
const assert = require('assert');
|
|
11
11
|
const co = require('co');
|
|
12
12
|
const pThrottle = require('p-throttle');
|
|
13
|
-
const { ObjectStorage } = require('@elastic.io/
|
|
13
|
+
const { ObjectStorage } = require('@elastic.io/maester-client');
|
|
14
14
|
const { Readable } = require('stream');
|
|
15
15
|
|
|
16
16
|
const AMQP_HEADER_META_PREFIX = 'x-eio-meta-';
|
|
@@ -280,7 +280,7 @@ class Sailor {
|
|
|
280
280
|
logger.info('Going to fetch message body.', { objectId });
|
|
281
281
|
|
|
282
282
|
try {
|
|
283
|
-
object = await this.objectStorage.
|
|
283
|
+
object = await this.objectStorage.getOne(
|
|
284
284
|
objectId,
|
|
285
285
|
{ jwtPayloadOrToken: this.settings.OBJECT_STORAGE_TOKEN }
|
|
286
286
|
);
|
|
@@ -297,7 +297,7 @@ class Sailor {
|
|
|
297
297
|
|
|
298
298
|
uploadMessageBody(bodyBuf) {
|
|
299
299
|
const stream = () => Readable.from(bodyBuf);
|
|
300
|
-
return this.objectStorage.
|
|
300
|
+
return this.objectStorage.add(
|
|
301
301
|
stream,
|
|
302
302
|
{ jwtPayloadOrToken: this.settings.OBJECT_STORAGE_TOKEN }
|
|
303
303
|
);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elasticio-sailor-nodejs",
|
|
3
3
|
"description": "The official elastic.io library for bootstrapping and executing for Node.js connectors",
|
|
4
|
-
"version": "2.7.
|
|
4
|
+
"version": "2.7.1",
|
|
5
5
|
"main": "run.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"audit": "better-npm-audit audit --level high --production",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"node": ">=12.13.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@elastic.io/
|
|
19
|
+
"@elastic.io/maester-client": "4.0.3",
|
|
20
20
|
"amqplib": "0.8.0",
|
|
21
21
|
"bunyan": "1.8.10",
|
|
22
22
|
"co": "4.6.0",
|