@angular/ssr 19.0.0-next.9 → 19.0.0-rc.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/fesm2022/node.mjs +15 -45
- package/fesm2022/node.mjs.map +1 -1
- package/fesm2022/ssr.mjs +317 -247
- package/fesm2022/ssr.mjs.map +1 -1
- package/fesm2022/tokens.mjs +63 -0
- package/fesm2022/tokens.mjs.map +1 -0
- package/index.d.ts +153 -92
- package/node/index.d.ts +12 -40
- package/package.json +12 -7
- package/schematics/ng-add/schema.d.ts +5 -0
- package/schematics/ng-add/schema.json +4 -0
- package/third_party/{critters → beasties}/THIRD_PARTY_LICENSES.txt +221 -71
- package/third_party/{critters → beasties}/index.d.ts +1 -1
- package/third_party/beasties/index.js +11819 -0
- package/third_party/beasties/index.js.map +1 -0
- package/tokens/index.d.ts +55 -0
- package/third_party/critters/index.js +0 -13160
- package/third_party/critters/index.js.map +0 -7
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Injection token representing the current HTTP request object.
|
|
5
|
+
*
|
|
6
|
+
* Use this token to access the current request when handling server-side
|
|
7
|
+
* rendering (SSR).
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* This token may be `null` in the following scenarios:
|
|
11
|
+
*
|
|
12
|
+
* * During the build processes.
|
|
13
|
+
* * When the application is rendered in the browser (client-side rendering).
|
|
14
|
+
* * When performing static site generation (SSG).
|
|
15
|
+
* * During route extraction in development (at the time of the request).
|
|
16
|
+
*
|
|
17
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Request | `Request` on MDN}
|
|
18
|
+
*
|
|
19
|
+
* @developerPreview
|
|
20
|
+
*/
|
|
21
|
+
export declare const REQUEST: InjectionToken<Request | null>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Injection token for additional request context.
|
|
25
|
+
*
|
|
26
|
+
* Use this token to pass custom metadata or context related to the current request in server-side rendering.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* This token is only available during server-side rendering and will be `null` in other contexts.
|
|
30
|
+
*
|
|
31
|
+
* @developerPreview
|
|
32
|
+
*/
|
|
33
|
+
export declare const REQUEST_CONTEXT: InjectionToken<unknown>;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Injection token for response initialization options.
|
|
37
|
+
*
|
|
38
|
+
* Use this token to provide response options for configuring or initializing
|
|
39
|
+
* HTTP responses in server-side rendering or API endpoints.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* This token may be `null` in the following scenarios:
|
|
43
|
+
*
|
|
44
|
+
* * During the build processes.
|
|
45
|
+
* * When the application is rendered in the browser (client-side rendering).
|
|
46
|
+
* * When performing static site generation (SSG).
|
|
47
|
+
* * During route extraction in development (at the time of the request).
|
|
48
|
+
*
|
|
49
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Response/Response | `ResponseInit` on MDN}
|
|
50
|
+
*
|
|
51
|
+
* @developerPreview
|
|
52
|
+
*/
|
|
53
|
+
export declare const RESPONSE_INIT: InjectionToken<ResponseInit | null>;
|
|
54
|
+
|
|
55
|
+
export { }
|