@sitevision/api 2023.7.1 → 2023.8.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.
@@ -25,6 +25,7 @@ export interface Request {
25
25
  params: { [key: string]: string };
26
26
  cookies: { [key: string]: string };
27
27
  xhr: boolean;
28
+ serverside: boolean;
28
29
  session: Session;
29
30
  hostname: string;
30
31
  protocol: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitevision/api",
3
- "version": "2023.7.1",
3
+ "version": "2023.8.1",
4
4
  "author": "Sitevision AB",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -30,5 +30,5 @@
30
30
  "access": "public",
31
31
  "directory": "dist"
32
32
  },
33
- "gitHead": "82ca2d8a879430864a9007130b263e6ae8b05c8e"
33
+ "gitHead": "84e58906704af5e7bcc97eae2a5b4b4c89a8031f"
34
34
  }
@@ -9,7 +9,7 @@ export interface HooksResponse {
9
9
  * @param url The URL to redirect to
10
10
  * @param statusCode The HTTP status code to use for the redirect. Defaults to 302. Introduced in Sitevision 2023.03.1.
11
11
  */
12
- redirect(url: string, statusCode?: 301 | 302);
12
+ redirect(url: string, statusCode?: 301 | 302 | 303 | 307 | 308): void;
13
13
  }
14
14
 
15
15
  export interface Hooks {