xpine 0.0.56 → 0.0.58

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.
@@ -0,0 +1,32 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(npm run *)",
5
+ "Bash(PORT=8888 node ./dist/server/run/prod.js)",
6
+ "Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:8888/)",
7
+ "Bash(break)",
8
+ "Bash(curl -s -o /dev/null -w \"status=%{http_code}\\\\n\" http://localhost:8888/blog/technology/devops/my-blog-post)",
9
+ "Bash(curl -s http://localhost:8888/blog/technology/devops/my-blog-post)",
10
+ "Bash(curl -s -o /dev/null -w \"status=%{http_code}\\\\n\" http://localhost:8888/blog/preview/some/new/post)",
11
+ "Bash(curl -s http://localhost:8888/blog/preview/some/new/post)",
12
+ "Bash(curl -s -o /dev/null -w \"status=%{http_code}\\\\n\" http://localhost:8888/blog/totally/unknown/path)",
13
+ "Bash(curl -s http://localhost:8888/blog/totally/unknown/path)",
14
+ "Bash(curl -s -o /dev/null -w \"status=%{http_code}\\\\n\" http://localhost:8888/some-totally-random-route-xyz)",
15
+ "Bash(curl -s http://localhost:8888/some-totally-random-route-xyz)",
16
+ "Bash(curl -s http://localhost:8888/some-random-xyz)",
17
+ "Bash(curl -s -o /dev/null -w \"status=%{http_code}\\\\n\" http://localhost:8888/blog/nope)",
18
+ "Bash(curl -s http://localhost:8888/blog/nope)",
19
+ "Bash(PORT=8888 npx playwright test app-build --grep \"multi-segment\")",
20
+ "Bash(PORT=8888 npx playwright test)",
21
+ "Bash(npx eslint *)",
22
+ "Bash(echo \"=== exit: $? ===\")",
23
+ "Bash(git stash *)",
24
+ "Bash(PORT=8888 npx playwright test app-build --grep \"traverse\")",
25
+ "Bash(node -e \"console.log\\(require\\('./node_modules/jsonwebtoken/package.json'\\).version\\)\")",
26
+ "Bash(JWT_PRIVATE_KEY=test-secret-123 node --input-type=module -e ' *)",
27
+ "Bash(node --input-type=module -e ' *)",
28
+ "Bash(CSRF_SECRET='csrf-secret-xyz' node /tmp/csrf-test.mjs)",
29
+ "Bash(CSRF_SECRET='csrf-secret-xyz' node csrf-test.mjs)"
30
+ ]
31
+ }
32
+ }
@@ -0,0 +1,16 @@
1
+ import { NextFunction, Request, Response } from 'express';
2
+ export type CsrfOptions = {
3
+ cookieName?: string;
4
+ headerName?: string;
5
+ fieldName?: string;
6
+ secret?: string;
7
+ cookie?: {
8
+ sameSite?: boolean | 'lax' | 'strict' | 'none';
9
+ secure?: boolean;
10
+ path?: string;
11
+ maxAge?: number;
12
+ };
13
+ ignorePaths?: string[];
14
+ };
15
+ export declare function createCsrfMiddleware(options?: CsrfOptions): (req: Request, res: Response, next: NextFunction) => void;
16
+ //# sourceMappingURL=csrf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"csrf.d.ts","sourceRoot":"","sources":["../../src/csrf.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAK1D,MAAM,MAAM,WAAW,GAAG;IAExB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE;QACP,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;QAC/C,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAoDF,wBAAgB,oBAAoB,CAAC,OAAO,CAAC,EAAE,WAAW,SAepB,OAAO,OAAO,QAAQ,QAAQ,YAAY,UAqB/E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xpine",
3
- "version": "0.0.56",
3
+ "version": "0.0.58",
4
4
  "main": "dist/index.js",
5
5
  "dependencies": {
6
6
  "@aws-sdk/client-secrets-manager": "^3.758.0",