@igea/oac_frontend 1.0.10 → 1.0.11

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 (2) hide show
  1. package/package.json +3 -2
  2. package/src/index.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igea/oac_frontend",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Frontend service for the OAC project",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -20,8 +20,9 @@
20
20
  },
21
21
  "homepage": "https://github.com/chpigea/oac_frontend#readme",
22
22
  "dependencies": {
23
- "@igea/oac_jwt_helpers": "1.0.3",
23
+ "@igea/oac_jwt_helpers": "1.0.6",
24
24
  "axios": "1.10.0",
25
+ "cookie-parser": "1.4.7",
25
26
  "express": "5.1.0",
26
27
  "get-port": "7.1.0",
27
28
  "i18n": "0.15.1",
package/src/index.js CHANGED
@@ -2,6 +2,7 @@ const config = require('./config.js');
2
2
  const express = require("express");
3
3
  const axios = require("axios");
4
4
  const getPort = require('get-port');
5
+ const cookieParser = require('cookie-parser');
5
6
  const path = require("path");
6
7
  const i18n = require('i18n');
7
8
  const jwtLibFactory = require('@igea/oac_jwt_helpers')
@@ -34,6 +35,7 @@ let newPort = null
34
35
 
35
36
  app.use(i18n.init);
36
37
  app.use(`/${serviceName}`, express.static(path.join(__dirname, 'public')));
38
+ app.use(cookieParser());
37
39
  app.use(express.json());
38
40
  app.use(jwtLib.middleware);
39
41