@stacksjs/defaults 0.74.56 → 0.74.57
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/app/Middleware/Csrf.ts
CHANGED
|
@@ -159,7 +159,7 @@ export function createCsrfCookie(req: Request, minted?: string): string {
|
|
|
159
159
|
* behaviour: it says nothing about what the browser is looking at.
|
|
160
160
|
*/
|
|
161
161
|
export function responseMayUseCsrfToken(response: Response): boolean {
|
|
162
|
-
const type = (response.headers.get('content-type') || '').split(';')[0].trim().toLowerCase()
|
|
162
|
+
const type = ((response.headers.get('content-type') || '').split(';')[0] ?? '').trim().toLowerCase()
|
|
163
163
|
if (!type)
|
|
164
164
|
return true
|
|
165
165
|
return type === 'text/html'
|
package/ide/vscode/package.json
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.74.
|
|
5
|
+
"version": "0.74.57",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@iconify-json/f7": "^1.2.2",
|
|
57
57
|
"@iconify-json/hugeicons": "^1.2.27",
|
|
58
|
-
"@stacksjs/mobile": "^0.74.
|
|
58
|
+
"@stacksjs/mobile": "^0.74.57",
|
|
59
59
|
"@stacksjs/sanitizer": "^0.2.113",
|
|
60
60
|
"ts-qr-codes": "^0.1.8"
|
|
61
61
|
}
|