@angular/platform-server 16.0.0-next.1 → 16.0.0-next.2
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/esm2020/src/http.mjs +3 -3
- package/esm2020/src/location.mjs +3 -3
- package/esm2020/src/platform-server.mjs +2 -2
- package/esm2020/src/platform_state.mjs +3 -3
- package/esm2020/src/server.mjs +4 -4
- package/esm2020/src/server_events.mjs +3 -3
- package/esm2020/src/server_renderer.mjs +3 -3
- package/esm2020/src/styles_host.mjs +3 -3
- package/esm2020/src/tokens.mjs +2 -2
- package/esm2020/src/transfer_state.mjs +4 -4
- package/esm2020/src/utils.mjs +15 -60
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/server.mjs +4 -4
- package/fesm2015/init.mjs +1 -1
- package/fesm2015/platform-server.mjs +43 -88
- package/fesm2015/platform-server.mjs.map +1 -1
- package/fesm2015/testing.mjs +5 -5
- package/fesm2020/init.mjs +1 -1
- package/fesm2020/platform-server.mjs +43 -88
- package/fesm2020/platform-server.mjs.map +1 -1
- package/fesm2020/testing.mjs +5 -5
- package/index.d.ts +33 -29
- package/init/index.d.ts +1 -1
- package/package.json +7 -7
- package/testing/index.d.ts +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.0.0-next.
|
|
2
|
+
* @license Angular v16.0.0-next.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { ɵsetRootDomAdapter, DOCUMENT, XhrFactory, PlatformLocation, ɵgetDOM, ɵPLATFORM_SERVER_ID, ViewportScroller, ɵNullViewportScroller } from '@angular/common';
|
|
8
8
|
import * as i0 from '@angular/core';
|
|
9
|
-
import { Injectable, Inject, InjectionToken, inject, EnvironmentInjector, Optional, ViewEncapsulation, RendererStyleFlags2, APP_ID, ɵescapeTransferStateContent, NgModule, Injector, PLATFORM_ID, PLATFORM_INITIALIZER, ɵALLOW_MULTIPLE_PLATFORMS, RendererFactory2, NgZone, Testability, ɵTESTABILITY, ɵsetDocument, createPlatformFactory, platformCore, Renderer2, ApplicationRef, ɵisPromise, importProvidersFrom, ɵinternalCreateApplication, Version } from '@angular/core';
|
|
9
|
+
import { Injectable, Inject, InjectionToken, inject, EnvironmentInjector, Optional, ViewEncapsulation, RendererStyleFlags2, APP_ID, ɵescapeTransferStateContent, NgModule, Injector, PLATFORM_ID, PLATFORM_INITIALIZER, ɵALLOW_MULTIPLE_PLATFORMS, RendererFactory2, NgZone, Testability, ɵTESTABILITY, ɵsetDocument, createPlatformFactory, platformCore, Renderer2, ApplicationRef, ɵIS_HYDRATION_FEATURE_ENABLED, ɵannotateForHydration, ɵisPromise, importProvidersFrom, ɵinternalCreateApplication, ɵgetComponentDef, Version } from '@angular/core';
|
|
10
10
|
import * as i1 from '@angular/platform-browser';
|
|
11
11
|
import { ɵBrowserDomAdapter, ɵshimStyles, ɵNAMESPACE_URIS, ɵshimContentAttribute, ɵshimHostAttribute, ɵSharedStylesHost, ɵTRANSITION_ID, TransferState, EVENT_MANAGER_PLUGINS, BrowserModule } from '@angular/platform-browser';
|
|
12
12
|
import { ɵAnimationEngine } from '@angular/animations/browser';
|
|
@@ -20286,9 +20286,9 @@ class PlatformState {
|
|
|
20286
20286
|
return this._doc;
|
|
20287
20287
|
}
|
|
20288
20288
|
}
|
|
20289
|
-
PlatformState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20290
|
-
PlatformState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20291
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20289
|
+
PlatformState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: PlatformState, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20290
|
+
PlatformState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: PlatformState });
|
|
20291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: PlatformState, decorators: [{
|
|
20292
20292
|
type: Injectable
|
|
20293
20293
|
}], ctorParameters: function () {
|
|
20294
20294
|
return [{ type: undefined, decorators: [{
|
|
@@ -20304,7 +20304,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.1",
|
|
|
20304
20304
|
*/
|
|
20305
20305
|
const INITIAL_CONFIG = new InjectionToken('Server.INITIAL_CONFIG');
|
|
20306
20306
|
/**
|
|
20307
|
-
* A function that will be executed when calling `renderApplication
|
|
20307
|
+
* A function that will be executed when calling `renderApplication` or
|
|
20308
20308
|
* `renderModule` just before current platform state is rendered to string.
|
|
20309
20309
|
*
|
|
20310
20310
|
* @publicApi
|
|
@@ -20318,9 +20318,9 @@ class ServerXhr {
|
|
|
20318
20318
|
return new xhr2.XMLHttpRequest();
|
|
20319
20319
|
}
|
|
20320
20320
|
}
|
|
20321
|
-
ServerXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20322
|
-
ServerXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20323
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20321
|
+
ServerXhr.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20322
|
+
ServerXhr.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerXhr });
|
|
20323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerXhr, decorators: [{
|
|
20324
20324
|
type: Injectable
|
|
20325
20325
|
}] });
|
|
20326
20326
|
class ZoneMacroTaskWrapper {
|
|
@@ -20516,9 +20516,9 @@ class ServerPlatformLocation {
|
|
|
20516
20516
|
return undefined;
|
|
20517
20517
|
}
|
|
20518
20518
|
}
|
|
20519
|
-
ServerPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20520
|
-
ServerPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20521
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20519
|
+
ServerPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerPlatformLocation, deps: [{ token: DOCUMENT }, { token: INITIAL_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20520
|
+
ServerPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerPlatformLocation });
|
|
20521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerPlatformLocation, decorators: [{
|
|
20522
20522
|
type: Injectable
|
|
20523
20523
|
}], ctorParameters: function () {
|
|
20524
20524
|
return [{ type: undefined, decorators: [{
|
|
@@ -20555,9 +20555,9 @@ class ServerEventManagerPlugin /* extends EventManagerPlugin which is private */
|
|
|
20555
20555
|
return this.addEventListener(target, eventName, handler);
|
|
20556
20556
|
}
|
|
20557
20557
|
}
|
|
20558
|
-
ServerEventManagerPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20559
|
-
ServerEventManagerPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20560
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20558
|
+
ServerEventManagerPlugin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerEventManagerPlugin /* extends EventManagerPlugin which is private */, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20559
|
+
ServerEventManagerPlugin.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerEventManagerPlugin /* extends EventManagerPlugin which is private */ });
|
|
20560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerEventManagerPlugin /* extends EventManagerPlugin which is private */, decorators: [{
|
|
20561
20561
|
type: Injectable
|
|
20562
20562
|
}], ctorParameters: function () {
|
|
20563
20563
|
return [{ type: undefined, decorators: [{
|
|
@@ -20605,9 +20605,9 @@ class ServerRendererFactory2 {
|
|
|
20605
20605
|
begin() { }
|
|
20606
20606
|
end() { }
|
|
20607
20607
|
}
|
|
20608
|
-
ServerRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20609
|
-
ServerRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20608
|
+
ServerRendererFactory2.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerRendererFactory2, deps: [{ token: i1.EventManager }, { token: i0.NgZone }, { token: DOCUMENT }, { token: i1.ɵSharedStylesHost }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20609
|
+
ServerRendererFactory2.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerRendererFactory2 });
|
|
20610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerRendererFactory2, decorators: [{
|
|
20611
20611
|
type: Injectable
|
|
20612
20612
|
}], ctorParameters: function () {
|
|
20613
20613
|
return [{ type: i1.EventManager }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
@@ -20858,9 +20858,9 @@ class ServerStylesHost extends ɵSharedStylesHost {
|
|
|
20858
20858
|
super.ngOnDestroy();
|
|
20859
20859
|
}
|
|
20860
20860
|
}
|
|
20861
|
-
ServerStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20862
|
-
ServerStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20863
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20861
|
+
ServerStylesHost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerStylesHost, deps: [{ token: DOCUMENT }, { token: ɵTRANSITION_ID, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
20862
|
+
ServerStylesHost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerStylesHost });
|
|
20863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerStylesHost, decorators: [{
|
|
20864
20864
|
type: Injectable
|
|
20865
20865
|
}], ctorParameters: function () {
|
|
20866
20866
|
return [{ type: undefined, decorators: [{
|
|
@@ -20913,10 +20913,10 @@ function serializeTransferStateFactory(doc, appId, transferStore) {
|
|
|
20913
20913
|
*/
|
|
20914
20914
|
class ServerTransferStateModule {
|
|
20915
20915
|
}
|
|
20916
|
-
ServerTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20917
|
-
ServerTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
20918
|
-
ServerTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20919
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20916
|
+
ServerTransferStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerTransferStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
20917
|
+
ServerTransferStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerTransferStateModule });
|
|
20918
|
+
ServerTransferStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerTransferStateModule });
|
|
20919
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerTransferStateModule, decorators: [{
|
|
20920
20920
|
type: NgModule,
|
|
20921
20921
|
args: [{}]
|
|
20922
20922
|
}] });
|
|
@@ -20959,9 +20959,9 @@ const SERVER_RENDER_PROVIDERS = [
|
|
|
20959
20959
|
*/
|
|
20960
20960
|
class ServerModule {
|
|
20961
20961
|
}
|
|
20962
|
-
ServerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20963
|
-
ServerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.
|
|
20964
|
-
ServerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20962
|
+
ServerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
20963
|
+
ServerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerModule, imports: [HttpClientModule, NoopAnimationsModule], exports: [BrowserModule] });
|
|
20964
|
+
ServerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerModule, providers: [
|
|
20965
20965
|
TRANSFER_STATE_SERIALIZATION_PROVIDERS,
|
|
20966
20966
|
SERVER_RENDER_PROVIDERS,
|
|
20967
20967
|
SERVER_HTTP_PROVIDERS,
|
|
@@ -20969,7 +20969,7 @@ ServerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
|
20969
20969
|
{ provide: ɵTESTABILITY, useValue: null },
|
|
20970
20970
|
{ provide: ViewportScroller, useClass: ɵNullViewportScroller },
|
|
20971
20971
|
], imports: [HttpClientModule, NoopAnimationsModule, BrowserModule] });
|
|
20972
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.
|
|
20972
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-next.2", ngImport: i0, type: ServerModule, decorators: [{
|
|
20973
20973
|
type: NgModule,
|
|
20974
20974
|
args: [{
|
|
20975
20975
|
exports: [BrowserModule],
|
|
@@ -21048,6 +21048,9 @@ the server-rendered app can be properly bootstrapped into a client app.`);
|
|
|
21048
21048
|
appendServerContextInfo(serverContext, applicationRef);
|
|
21049
21049
|
const platformState = platform.injector.get(PlatformState);
|
|
21050
21050
|
const asyncPromises = [];
|
|
21051
|
+
if (applicationRef.injector.get(ɵIS_HYDRATION_FEATURE_ENABLED, false)) {
|
|
21052
|
+
ɵannotateForHydration(applicationRef, platformState.getDocument());
|
|
21053
|
+
}
|
|
21051
21054
|
// Run any BEFORE_APP_SERIALIZED callbacks just before rendering to string.
|
|
21052
21055
|
const callbacks = environmentInjector.get(BEFORE_APP_SERIALIZED, null);
|
|
21053
21056
|
if (callbacks) {
|
|
@@ -21119,71 +21122,23 @@ function renderModule(moduleType, options) {
|
|
|
21119
21122
|
const platform = _getPlatform(platformDynamicServer, { document, url, platformProviders });
|
|
21120
21123
|
return _render(platform, platform.bootstrapModule(moduleType));
|
|
21121
21124
|
}
|
|
21122
|
-
|
|
21123
|
-
* Bootstraps an instance of an Angular application and renders it to a string.
|
|
21124
|
-
*
|
|
21125
|
-
* Note: the root component passed into this function *must* be a standalone one (should have the
|
|
21126
|
-
* `standalone: true` flag in the `@Component` decorator config).
|
|
21127
|
-
*
|
|
21128
|
-
* ```typescript
|
|
21129
|
-
* @Component({
|
|
21130
|
-
* standalone: true,
|
|
21131
|
-
* template: 'Hello world!'
|
|
21132
|
-
* })
|
|
21133
|
-
* class RootComponent {}
|
|
21134
|
-
*
|
|
21135
|
-
* const output: string = await renderApplication(RootComponent, {appId: 'server-app'});
|
|
21136
|
-
* ```
|
|
21137
|
-
*
|
|
21138
|
-
* @param rootComponent A reference to a Standalone Component that should be rendered.
|
|
21139
|
-
* @param options Additional configuration for the render operation:
|
|
21140
|
-
* - `appId` - a string identifier of this application. The appId is used to prefix all
|
|
21141
|
-
* server-generated stylings and state keys of the application in TransferState
|
|
21142
|
-
* use-cases.
|
|
21143
|
-
* - `document` - the document of the page to render, either as an HTML string or
|
|
21144
|
-
* as a reference to the `document` instance.
|
|
21145
|
-
* - `url` - the URL for the current render request.
|
|
21146
|
-
* - `providers` - set of application level providers for the current render request.
|
|
21147
|
-
* - `platformProviders` - the platform level providers for the current render request.
|
|
21148
|
-
*
|
|
21149
|
-
* @returns A Promise, that returns serialized (to a string) rendered page, once resolved.
|
|
21150
|
-
*
|
|
21151
|
-
* @publicApi
|
|
21152
|
-
* @developerPreview
|
|
21153
|
-
*/
|
|
21154
|
-
function renderApplication(rootComponent, options) {
|
|
21125
|
+
function renderApplication(rootComponentOrBootstrapFn, options) {
|
|
21155
21126
|
var _a;
|
|
21156
|
-
const { document, url, platformProviders, appId } = options;
|
|
21127
|
+
const { document, url, platformProviders, appId = '' } = options;
|
|
21157
21128
|
const platform = _getPlatform(platformDynamicServer, { document, url, platformProviders });
|
|
21129
|
+
if (isBootstrapFn(rootComponentOrBootstrapFn)) {
|
|
21130
|
+
return _render(platform, rootComponentOrBootstrapFn());
|
|
21131
|
+
}
|
|
21158
21132
|
const appProviders = [
|
|
21159
21133
|
importProvidersFrom(BrowserModule.withServerTransition({ appId })),
|
|
21160
21134
|
importProvidersFrom(ServerModule),
|
|
21161
21135
|
...((_a = options.providers) !== null && _a !== void 0 ? _a : []),
|
|
21162
21136
|
];
|
|
21163
|
-
return _render(platform, ɵinternalCreateApplication({ rootComponent, appProviders }));
|
|
21137
|
+
return _render(platform, ɵinternalCreateApplication({ rootComponent: rootComponentOrBootstrapFn, appProviders }));
|
|
21164
21138
|
}
|
|
21165
|
-
|
|
21166
|
-
|
|
21167
|
-
|
|
21168
|
-
*
|
|
21169
|
-
* @param moduleFactory An instance of the {@link NgModuleFactory} that should be used for
|
|
21170
|
-
* bootstrap.
|
|
21171
|
-
* @param options Additional configuration for the render operation:
|
|
21172
|
-
* - `document` - the document of the page to render, either as an HTML string or
|
|
21173
|
-
* as a reference to the `document` instance.
|
|
21174
|
-
* - `url` - the URL for the current render request.
|
|
21175
|
-
* - `extraProviders` - set of platform level providers for the current render request.
|
|
21176
|
-
*
|
|
21177
|
-
* @publicApi
|
|
21178
|
-
*
|
|
21179
|
-
* @deprecated
|
|
21180
|
-
* This symbol is no longer necessary as of Angular v13.
|
|
21181
|
-
* Use {@link renderModule} API instead.
|
|
21182
|
-
*/
|
|
21183
|
-
function renderModuleFactory(moduleFactory, options) {
|
|
21184
|
-
const { document, url, extraProviders: platformProviders } = options;
|
|
21185
|
-
const platform = _getPlatform(platformServer, { document, url, platformProviders });
|
|
21186
|
-
return _render(platform, platform.bootstrapModuleFactory(moduleFactory));
|
|
21139
|
+
function isBootstrapFn(value) {
|
|
21140
|
+
// We can differentiate between a component and a bootstrap function by reading `cmp`:
|
|
21141
|
+
return typeof value === 'function' && !ɵgetComponentDef(value);
|
|
21187
21142
|
}
|
|
21188
21143
|
|
|
21189
21144
|
/**
|
|
@@ -21194,7 +21149,7 @@ function renderModuleFactory(moduleFactory, options) {
|
|
|
21194
21149
|
/**
|
|
21195
21150
|
* @publicApi
|
|
21196
21151
|
*/
|
|
21197
|
-
const VERSION = new Version('16.0.0-next.
|
|
21152
|
+
const VERSION = new Version('16.0.0-next.2');
|
|
21198
21153
|
|
|
21199
21154
|
/// <reference types="node" />
|
|
21200
21155
|
// This file only reexports content of the `src` folder. Keep it that way.
|
|
@@ -21205,5 +21160,5 @@ const VERSION = new Version('16.0.0-next.1');
|
|
|
21205
21160
|
* Generated bundle index. Do not edit.
|
|
21206
21161
|
*/
|
|
21207
21162
|
|
|
21208
|
-
export { BEFORE_APP_SERIALIZED, INITIAL_CONFIG, PlatformState, ServerModule, ServerTransferStateModule, VERSION, platformDynamicServer, platformServer, renderApplication, renderModule,
|
|
21163
|
+
export { BEFORE_APP_SERIALIZED, INITIAL_CONFIG, PlatformState, ServerModule, ServerTransferStateModule, VERSION, platformDynamicServer, platformServer, renderApplication, renderModule, INTERNAL_SERVER_PLATFORM_PROVIDERS as ɵINTERNAL_SERVER_PLATFORM_PROVIDERS, SERVER_CONTEXT as ɵSERVER_CONTEXT, SERVER_RENDER_PROVIDERS as ɵSERVER_RENDER_PROVIDERS, ServerRendererFactory2 as ɵServerRendererFactory2, setDomTypes as ɵsetDomTypes };
|
|
21209
21164
|
//# sourceMappingURL=platform-server.mjs.map
|