@eik/service 2.0.105 → 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/lib/main.js +7 -7
  3. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
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
+
8
+ ## [2.0.106](https://github.com/eik-lib/service/compare/v2.0.105...v2.0.106) (2023-06-05)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update dependency @eik/core to v1.3.26 ([d21b74a](https://github.com/eik-lib/service/commit/d21b74a770cc329d7068ca7ee5632318761bb0fa))
14
+
1
15
  ## [2.0.105](https://github.com/eik-lib/service/compare/v2.0.104...v2.0.105) (2023-05-22)
2
16
 
3
17
 
package/lib/main.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { PassThrough } from 'stream';
2
- import compression from 'fastify-compress';
2
+ import compression from '@fastify/compress';
3
3
  import HttpError from 'http-errors';
4
4
  import pino from 'pino';
5
- import cors from 'fastify-cors';
6
- import jwt from 'fastify-jwt';
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.105",
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",
@@ -33,30 +33,30 @@
33
33
  },
34
34
  "homepage": "https://github.com/eik-lib/service#readme",
35
35
  "dependencies": {
36
- "@eik/core": "1.3.25",
36
+ "@eik/core": "1.3.26",
37
37
  "convict": "6.2.4",
38
- "fastify": "3.29.5",
39
- "fastify-compress": "4.1.0",
40
- "fastify-cors": "6.1.0",
41
- "fastify-jwt": "4.2.0",
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"
45
45
  },
46
46
  "devDependencies": {
47
- "@babel/eslint-parser": "7.21.3",
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": "7.32.0",
51
- "eslint-config-airbnb-base": "14.2.1",
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": "8.1.0",
57
+ "pino-pretty": "10.0.0",
58
58
  "prettier": "2.8.8",
59
- "semantic-release": "19.0.5",
59
+ "semantic-release": "21.0.3",
60
60
  "tap": "16.3.4",
61
61
  "unique-slug": "4.0.0"
62
62
  }