@things-factory/i18n-base 7.0.75 → 7.0.77

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/i18n-base",
3
- "version": "7.0.75",
3
+ "version": "7.0.77",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -28,8 +28,8 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@operato/i18n": "^7.0.0",
31
- "@things-factory/auth-base": "^7.0.75",
32
- "@things-factory/shell": "^7.0.75"
31
+ "@things-factory/auth-base": "^7.0.77",
32
+ "@things-factory/shell": "^7.0.77"
33
33
  },
34
- "gitHead": "1a6808f94d6c222f4e50ffc3317d9c320358ed20"
34
+ "gitHead": "9eb3d7438a6b67119151e235c1ee778dc20938d5"
35
35
  }
@@ -128,8 +128,13 @@ function setLanguage(context, lng, options = {} as any) {
128
128
  context.state = Object.assign(context.state || {}, { lng })
129
129
  context.language = context.lng = lng
130
130
  context.set('content-language', lng)
131
+
131
132
  if (lookupCookie) {
132
- context.cookies.set(lookupCookie, lng, { httpOnly: false, signed: false })
133
+ context.cookies.set(lookupCookie, lng, {
134
+ httpOnly: false,
135
+ signed: false,
136
+ sameSite: 'strict'
137
+ })
133
138
  }
134
139
  if (lookupSession && context.session) {
135
140
  context.session[lookupSession] = lng