@cloudron/tegel 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +3 -2
package/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import express from 'express';
2
2
  import session from 'express-session';
3
+ import FileStoreFactory from 'session-file-store';
3
4
  import lastMile from '@cloudron/connect-lastmile';
4
5
  import { HttpError } from '@cloudron/connect-lastmile';
5
6
  import * as oidc from './src/oidc.js';
@@ -15,7 +16,7 @@ export async function createExpressApp({ sessionSecret = 'changeme', oidcConfig
15
16
 
16
17
  app.use(express.json());
17
18
 
18
- const FileStore = require('session-file-store')(session);
19
+ const FileStore = FileStoreFactory(session);
19
20
 
20
21
  app.use(session({
21
22
  secret: sessionSecret,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudron/tegel",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "",
5
5
  "license": "GPL-2.0",
6
6
  "author": "Cloudron Developers",
@@ -15,7 +15,8 @@
15
15
  "@cloudron/connect-lastmile": "^2.3.0",
16
16
  "express": "^5.2.1",
17
17
  "express-session": "^1.19.0",
18
- "openid-client": "^6.8.1"
18
+ "openid-client": "^6.8.1",
19
+ "session-file-store": "^1.5.0"
19
20
  },
20
21
  "devDependencies": {
21
22
  "@eslint/js": "^9.39.2",