@devmoods/express-extras 0.39.0 → 0.39.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.
- package/dist/csrf.js +1 -1
- package/package.json +2 -2
package/dist/csrf.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Forbidden } from './errors.js';
|
|
|
5
5
|
import { readEnv } from './utils.js';
|
|
6
6
|
const ignoredMethods = new Set(['GET', 'HEAD', 'OPTIONS']);
|
|
7
7
|
const defaultCookieName = () => {
|
|
8
|
-
return process.env.NODE_ENV === 'production'
|
|
8
|
+
return process.env.NODE_ENV === 'production' && !readEnv.boolean('CI', false)
|
|
9
9
|
? '__Host-devmoods.x-csrf-token'
|
|
10
10
|
: 'devmoods.x-csrf-token';
|
|
11
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devmoods/express-extras",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.1",
|
|
4
4
|
"description": "Kubernetes-ready utilities for rapid Node.js application development",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"node": ">=20.3.0 <23"
|
|
82
82
|
},
|
|
83
83
|
"scripts": {
|
|
84
|
-
"start": "pushd example; pnpm run start; popd example;",
|
|
84
|
+
"start": "pushd example; pnpm run start --watch; popd example;",
|
|
85
85
|
"start:worker": "pushd example; pnpm run start:worker; popd example;",
|
|
86
86
|
"clean": "rm -rf dist",
|
|
87
87
|
"lint": "eslint src example/src",
|