@eik/service 2.0.106 → 2.0.107
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/CHANGELOG.md +7 -0
- package/lib/main.js +7 -7
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.0.107](https://github.com/eik-lib/service/compare/v2.0.106...v2.0.107) (2023-06-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency fastify to v4.18.0 ([d1cdffd](https://github.com/eik-lib/service/commit/d1cdffd5de86f044f8d6822d465c749cbf144dab))
|
|
7
|
+
|
|
1
8
|
## [2.0.106](https://github.com/eik-lib/service/compare/v2.0.105...v2.0.106) (2023-06-05)
|
|
2
9
|
|
|
3
10
|
|
package/lib/main.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PassThrough } from 'stream';
|
|
2
|
-
import compression from 'fastify
|
|
2
|
+
import compression from '@fastify/compress';
|
|
3
3
|
import HttpError from 'http-errors';
|
|
4
4
|
import pino from 'pino';
|
|
5
|
-
import cors from 'fastify
|
|
6
|
-
import jwt from 'fastify
|
|
5
|
+
import cors from '@fastify/cors';
|
|
6
|
+
import jwt from '@fastify/jwt';
|
|
7
7
|
import eik from '@eik/core';
|
|
8
8
|
|
|
9
9
|
|
|
@@ -227,7 +227,7 @@ const EikService = class EikService {
|
|
|
227
227
|
reply.header('etag', outgoing.etag);
|
|
228
228
|
reply.type(outgoing.mimeType);
|
|
229
229
|
reply.code(outgoing.statusCode);
|
|
230
|
-
reply.send(outgoing.stream);
|
|
230
|
+
return reply.send(outgoing.stream);
|
|
231
231
|
};
|
|
232
232
|
|
|
233
233
|
const pkgLogRoute = async (request, reply) => {
|
|
@@ -242,7 +242,7 @@ const EikService = class EikService {
|
|
|
242
242
|
reply.header('etag', outgoing.etag);
|
|
243
243
|
reply.type(outgoing.mimeType);
|
|
244
244
|
reply.code(outgoing.statusCode);
|
|
245
|
-
reply.send(outgoing.stream);
|
|
245
|
+
return reply.send(outgoing.stream);
|
|
246
246
|
};
|
|
247
247
|
|
|
248
248
|
const versionsGetRoute = async (request, reply) => {
|
|
@@ -256,7 +256,7 @@ const EikService = class EikService {
|
|
|
256
256
|
reply.header('etag', outgoing.etag);
|
|
257
257
|
reply.type(outgoing.mimeType);
|
|
258
258
|
reply.code(outgoing.statusCode);
|
|
259
|
-
reply.send(outgoing.stream);
|
|
259
|
+
return reply.send(outgoing.stream);
|
|
260
260
|
};
|
|
261
261
|
|
|
262
262
|
const pkgPutRoute = async (request, reply) => {
|
|
@@ -285,7 +285,7 @@ const EikService = class EikService {
|
|
|
285
285
|
reply.header('etag', outgoing.etag);
|
|
286
286
|
reply.type(outgoing.mimeType);
|
|
287
287
|
reply.code(outgoing.statusCode);
|
|
288
|
-
reply.send(outgoing.stream);
|
|
288
|
+
return reply.send(outgoing.stream);
|
|
289
289
|
};
|
|
290
290
|
|
|
291
291
|
const mapPutRoute = async (request, reply) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eik/service",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.107",
|
|
4
4
|
"description": "Eik REST API as a standalone HTTP service",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/main.js",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@eik/core": "1.3.26",
|
|
37
37
|
"convict": "6.2.4",
|
|
38
|
-
"fastify": "
|
|
39
|
-
"fastify
|
|
40
|
-
"fastify
|
|
41
|
-
"fastify
|
|
38
|
+
"fastify": "4.18.0",
|
|
39
|
+
"@fastify/compress": "6.4.0",
|
|
40
|
+
"@fastify/cors": "8.3.0",
|
|
41
|
+
"@fastify/jwt": "7.0.0",
|
|
42
42
|
"http-errors": "2.0.0",
|
|
43
43
|
"js-yaml": "4.1.0",
|
|
44
44
|
"pino": "8.14.1"
|
|
@@ -47,16 +47,16 @@
|
|
|
47
47
|
"@babel/eslint-parser": "7.21.8",
|
|
48
48
|
"@semantic-release/changelog": "6.0.3",
|
|
49
49
|
"@semantic-release/git": "10.0.1",
|
|
50
|
-
"eslint": "
|
|
51
|
-
"eslint-config-airbnb-base": "
|
|
50
|
+
"eslint": "8.42.0",
|
|
51
|
+
"eslint-config-airbnb-base": "15.0.0",
|
|
52
52
|
"eslint-config-prettier": "8.8.0",
|
|
53
53
|
"eslint-plugin-import": "2.27.5",
|
|
54
54
|
"eslint-plugin-prettier": "4.2.1",
|
|
55
55
|
"form-data": "4.0.0",
|
|
56
56
|
"node-fetch": "3.3.1",
|
|
57
|
-
"pino-pretty": "
|
|
57
|
+
"pino-pretty": "10.0.0",
|
|
58
58
|
"prettier": "2.8.8",
|
|
59
|
-
"semantic-release": "
|
|
59
|
+
"semantic-release": "21.0.3",
|
|
60
60
|
"tap": "16.3.4",
|
|
61
61
|
"unique-slug": "4.0.0"
|
|
62
62
|
}
|