File tree Expand file tree Collapse file tree 9 files changed +61
-13
lines changed
goldens/public-api/angular/ssr Expand file tree Collapse file tree 9 files changed +61
-13
lines changed Original file line number Diff line number Diff line change 5
5
``` ts
6
6
7
7
import { EnvironmentProviders } from ' @angular/core' ;
8
- import { InjectionToken } from ' @angular/core' ;
9
8
10
9
// @public
11
10
export class AngularAppEngine {
@@ -35,15 +34,6 @@ export enum RenderMode {
35
34
Server = 1
36
35
}
37
36
38
- // @public
39
- export const REQUEST: InjectionToken <Request >;
40
-
41
- // @public
42
- export const REQUEST_CONTEXT: InjectionToken <unknown >;
43
-
44
- // @public
45
- export const RESPONSE_INIT: InjectionToken <ResponseInit >;
46
-
47
37
// @public
48
38
export type ServerRoute = ServerRouteAppShell | ServerRouteClient | ServerRoutePrerender | ServerRoutePrerenderWithParams | ServerRouteServer ;
49
39
Original file line number Diff line number Diff line change
1
+ ## API Report File for "@angular /ssr_tokens"
2
+
3
+ > Do not edit this file. It is a report generated by [ API Extractor] ( https://api-extractor.com/ ) .
4
+
5
+ ``` ts
6
+
7
+ import { InjectionToken } from ' @angular/core' ;
8
+
9
+ // @public
10
+ export const REQUEST: InjectionToken <Request >;
11
+
12
+ // @public
13
+ export const REQUEST_CONTEXT: InjectionToken <unknown >;
14
+
15
+ // @public
16
+ export const RESPONSE_INIT: InjectionToken <ResponseInit >;
17
+
18
+ // (No @packageDocumentation comment for this package)
19
+
20
+ ```
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ ts_library(
20
20
tsconfig = "//:tsconfig-build-ng" ,
21
21
deps = [
22
22
"//packages/angular/ssr/third_party/critters:bundled_critters_lib" ,
23
+ "//packages/angular/ssr/tokens" ,
23
24
"@npm//@angular/common" ,
24
25
"@npm//@angular/core" ,
25
26
"@npm//@angular/platform-server" ,
@@ -38,6 +39,7 @@ ng_package(
38
39
externals = [
39
40
"@angular/ssr" ,
40
41
"@angular/ssr/node" ,
42
+ "@angular/ssr/tokens" ,
41
43
"../../third_party/critters" ,
42
44
],
43
45
nested_packages = [
@@ -47,6 +49,7 @@ ng_package(
47
49
deps = [
48
50
":ssr" ,
49
51
"//packages/angular/ssr/node" ,
52
+ "//packages/angular/ssr/tokens" ,
50
53
],
51
54
)
52
55
Original file line number Diff line number Diff line change @@ -17,5 +17,3 @@ export {
17
17
provideServerRoutesConfig ,
18
18
RenderMode ,
19
19
} from './src/routes/route-config' ;
20
-
21
- export { REQUEST , RESPONSE_INIT , REQUEST_CONTEXT } from './src/tokens' ;
Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
import { LOCALE_ID , StaticProvider , ɵresetCompiledComponents } from '@angular/core' ;
10
+ import { REQUEST , REQUEST_CONTEXT , RESPONSE_INIT } from '@angular/ssr/tokens' ;
10
11
import { ServerAssets } from './assets' ;
11
12
import { Hooks } from './hooks' ;
12
13
import { getAngularAppManifest } from './manifest' ;
13
14
import { RenderMode } from './routes/route-config' ;
14
15
import { ServerRouter } from './routes/router' ;
15
- import { REQUEST , REQUEST_CONTEXT , RESPONSE_INIT } from './tokens' ;
16
16
import { sha256 } from './utils/crypto' ;
17
17
import { InlineCriticalCssProcessor } from './utils/inline-critical-css' ;
18
18
import { LRUCache } from './utils/lru-cache' ;
Original file line number Diff line number Diff line change
1
+ load ("//tools:defaults.bzl" , "ts_library" )
2
+
3
+ package (default_visibility = ["//visibility:public" ])
4
+
5
+ ts_library (
6
+ name = "tokens" ,
7
+ srcs = glob (
8
+ [
9
+ "*.ts" ,
10
+ "src/**/*.ts" ,
11
+ ],
12
+ ),
13
+ module_name = "@angular/ssr/tokens" ,
14
+ tsconfig = "//:tsconfig-build-ng" ,
15
+ deps = [
16
+ "@npm//@angular/core" ,
17
+ "@npm//tslib" ,
18
+ ],
19
+ )
Original file line number Diff line number Diff line change
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+
9
+ export * from './public_api' ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+
9
+ export { REQUEST , RESPONSE_INIT , REQUEST_CONTEXT } from './src/tokens' ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments