@jcbuisson/express-x 2.1.8 → 2.1.9
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/package.json +1 -1
- package/src/common-hooks.mjs +1 -4
package/package.json
CHANGED
package/src/common-hooks.mjs
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import bcrypt from 'bcryptjs'
|
|
3
3
|
|
|
4
|
-
import config from '#config'
|
|
5
|
-
|
|
6
|
-
|
|
7
4
|
/*
|
|
8
5
|
* Add a timestamp property of name `field` with current time as value
|
|
9
6
|
*/
|
|
@@ -86,4 +83,4 @@ export const isAuthenticated = async (context) => {
|
|
|
86
83
|
export const extendExpiration = async (context) => (duration) => {
|
|
87
84
|
const now = new Date()
|
|
88
85
|
context.socket.data.expiresAt = new Date(now.getTime() + duration)
|
|
89
|
-
}
|
|
86
|
+
}
|