@nguniversal/aspnetcore-engine
Advanced tools
Comparing version 9.0.0-next.13 to 9.0.0-next.14
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('tslib'), require('@angular/core'), require('@angular/platform-server'), require('@angular/common'), require('@angular/compiler'), require('@nguniversal/aspnetcore-engine/tokens'), require('fs'), require('@angular/platform-browser'), require('rxjs/operators')) : | ||
typeof define === 'function' && define.amd ? define('@nguniversal/aspnetcore-engine', ['exports', 'tslib', '@angular/core', '@angular/platform-server', '@angular/common', '@angular/compiler', '@nguniversal/aspnetcore-engine/tokens', 'fs', '@angular/platform-browser', 'rxjs/operators'], factory) : | ||
(global = global || self, factory((global.nguniversal = global.nguniversal || {}, global.nguniversal.aspnetcoreEngine = {}), global.tslib, global.ng.core, global.ng.platformServer, global.ng.common, global.ng.compiler, global.nguniversal.aspnetcoreEngine.tokens, global.fs, global.ng.platformBrowser, global.rxjs.operators)); | ||
}(this, (function (exports, tslib, core, platformServer, common, compiler, tokens, fs, platformBrowser, operators) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('tslib'), require('@angular/common'), require('@angular/compiler'), require('@angular/core'), require('@angular/platform-server'), require('@nguniversal/aspnetcore-engine/tokens'), require('fs'), require('@angular/platform-browser'), require('rxjs/operators')) : | ||
typeof define === 'function' && define.amd ? define('@nguniversal/aspnetcore-engine', ['exports', 'tslib', '@angular/common', '@angular/compiler', '@angular/core', '@angular/platform-server', '@nguniversal/aspnetcore-engine/tokens', 'fs', '@angular/platform-browser', 'rxjs/operators'], factory) : | ||
(global = global || self, factory((global.nguniversal = global.nguniversal || {}, global.nguniversal.aspnetcoreEngine = {}), global.tslib, global.ng.common, global.ng.compiler, global.ng.core, global.ng.platformServer, global.nguniversal.aspnetcoreEngine.tokens, global.fs, global.ng.platformBrowser, global.rxjs.operators)); | ||
}(this, (function (exports, tslib, common, compiler, core, platformServer, tokens, fs, platformBrowser, operators) { 'use strict'; | ||
/** | ||
* @license | ||
* Copyright Google LLC All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
/** ResourceLoader implementation for loading files */ | ||
@@ -74,2 +67,3 @@ var FileLoader = /** @class */ (function () { | ||
// Ignore exceptions. | ||
// tslint:disable-next-line: no-console | ||
console.warn('Ignoring BEFORE_APP_SERIALIZED Exception: ', e); | ||
@@ -144,3 +138,5 @@ } | ||
var LINKS = []; | ||
// tslint:disable-next-line: no-non-null-assertion | ||
for (var i = 0; i < doc.head.children.length; i++) { | ||
// tslint:disable-next-line: no-non-null-assertion | ||
var element = doc.head.children[i]; | ||
@@ -187,2 +183,3 @@ var tagName = element.tagName.toUpperCase(); | ||
title: doc.title, | ||
// tslint:disable-next-line: no-non-null-assertion | ||
appNode: doc.querySelector(appSelector).outerHTML, | ||
@@ -189,0 +186,0 @@ scripts: SCRIPTS.join('\n'), |
@@ -1,2 +0,2 @@ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("tslib"),require("@angular/core"),require("@angular/platform-server"),require("@angular/common"),require("@angular/compiler"),require("@nguniversal/aspnetcore-engine/tokens"),require("fs"),require("@angular/platform-browser"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@nguniversal/aspnetcore-engine",["exports","tslib","@angular/core","@angular/platform-server","@angular/common","@angular/compiler","@nguniversal/aspnetcore-engine/tokens","fs","@angular/platform-browser","rxjs/operators"],r):r(((e=e||self).nguniversal=e.nguniversal||{},e.nguniversal.aspnetcoreEngine={}),e.tslib,e.ng.core,e.ng.platformServer,e.ng.common,e.ng.compiler,e.nguniversal.aspnetcoreEngine.tokens,e.fs,e.ng.platformBrowser,e.rxjs.operators)}(this,(function(e,r,t,n,o,a,i,s,u,l){"use strict"; | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("tslib"),require("@angular/common"),require("@angular/compiler"),require("@angular/core"),require("@angular/platform-server"),require("@nguniversal/aspnetcore-engine/tokens"),require("fs"),require("@angular/platform-browser"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@nguniversal/aspnetcore-engine",["exports","tslib","@angular/common","@angular/compiler","@angular/core","@angular/platform-server","@nguniversal/aspnetcore-engine/tokens","fs","@angular/platform-browser","rxjs/operators"],r):r(((e=e||self).nguniversal=e.nguniversal||{},e.nguniversal.aspnetcoreEngine={}),e.tslib,e.ng.common,e.ng.compiler,e.ng.core,e.ng.platformServer,e.nguniversal.aspnetcoreEngine.tokens,e.fs,e.ng.platformBrowser,e.rxjs.operators)}(this,(function(e,r,t,n,o,a,i,s,u,l){"use strict";var c=function(){function e(){}return e.prototype.get=function(e){return new Promise((function(r,t){s.readFile(e,(function(e,n){if(e)return t(e);r(n.toString())}))}))},e}(); | ||
/** | ||
@@ -8,3 +8,3 @@ * @license | ||
* found in the LICENSE file at https://angular.io/license | ||
*/var c=function(){function e(){}return e.prototype.get=function(e){return new Promise((function(r,t){s.readFile(e,(function(e,n){if(e)return t(e);r(n.toString())}))}))},e}(); | ||
*/function p(e,t){var n=function i(e,r){return e([{provide:a.INITIAL_CONFIG,useValue:{document:r.document,url:r.url}},r.extraProviders?r.extraProviders:[]])}(a.platformServer,t);return function s(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,s,c,p,d,f,g,m;return r.__generator(this,(function(v){switch(v.label){case 0:return[4,t];case 1:if(!(n=v.sent()).injector.get(u.ɵTRANSITION_ID,null))throw new Error("renderModule[Factory]() requires the use of BrowserModule.withServerTransition() to ensure\n the server-rendered app can be properly bootstrapped into a client app.");return[4,n.injector.get(o.ApplicationRef).isStable.pipe(l.first((function(e){return e}))).toPromise()];case 2:if(v.sent(),i=e.injector.get(a.PlatformState),s=n.injector.get(a.BEFORE_APP_SERIALIZED,null))try{for(c=r.__values(s),p=c.next();!p.done;p=c.next()){d=p.value;try{d()}catch(e){console.warn("Ignoring BEFORE_APP_SERIALIZED Exception: ",e)}}}catch(e){g={error:e}}finally{try{p&&!p.done&&(m=c.return)&&m.call(c)}finally{if(g)throw g.error}}return f=i.renderToString(),e.destroy(),[2,{html:f,moduleRef:n}]}}))}))}(n,n.bootstrapModuleFactory(e))}var d="app-root",f=new Map;function g(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,a;return r.__generator(this,(function(r){switch(r.label){case 0:return e instanceof o.NgModuleFactory?[2,e]:[3,1];case 1:return(n=f.get(e))?[2,n]:[4,t.compileModuleAsync(e)];case 2:return a=r.sent(),f.set(e,a),[2,a]}}))}))} | ||
/** | ||
@@ -16,9 +16,2 @@ * @license | ||
* found in the LICENSE file at https://angular.io/license | ||
*/function p(e,o){var a=function i(e,r){return e([{provide:n.INITIAL_CONFIG,useValue:{document:r.document,url:r.url}},r.extraProviders?r.extraProviders:[]])}(n.platformServer,o);return function s(e,o){return r.__awaiter(this,void 0,void 0,(function(){var a,i,s,c,p,d,f,g,m;return r.__generator(this,(function(v){switch(v.label){case 0:return[4,o];case 1:if(!(a=v.sent()).injector.get(u.ɵTRANSITION_ID,null))throw new Error("renderModule[Factory]() requires the use of BrowserModule.withServerTransition() to ensure\n the server-rendered app can be properly bootstrapped into a client app.");return[4,a.injector.get(t.ApplicationRef).isStable.pipe(l.first((function(e){return e}))).toPromise()];case 2:if(v.sent(),i=e.injector.get(n.PlatformState),s=a.injector.get(n.BEFORE_APP_SERIALIZED,null))try{for(c=r.__values(s),p=c.next();!p.done;p=c.next()){d=p.value;try{d()}catch(e){console.warn("Ignoring BEFORE_APP_SERIALIZED Exception: ",e)}}}catch(e){g={error:e}}finally{try{p&&!p.done&&(m=c.return)&&m.call(c)}finally{if(g)throw g.error}}return f=i.renderToString(),e.destroy(),[2,{html:f,moduleRef:a}]}}))}))}(a,a.bootstrapModuleFactory(e))}var d="app-root",f=new Map;function g(e,n){return r.__awaiter(this,void 0,void 0,(function(){var o,a;return r.__generator(this,(function(r){switch(r.label){case 0:return e instanceof t.NgModuleFactory?[2,e]:[3,1];case 1:return(o=f.get(e))?[2,o]:[4,n.compileModuleAsync(e)];case 2:return a=r.sent(),f.set(e,a),[2,a]}}))}))} | ||
/** | ||
* @license | ||
* Copyright Google LLC All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
@@ -39,2 +32,2 @@ /** | ||
*/ | ||
e.createTransferScript=function m(e){return"<script>window['TRANSFER_CACHE'] = "+JSON.stringify(e)+";<\/script>"},e.ngAspnetCoreEngine=function v(e){return r.__awaiter(this,void 0,void 0,(function(){var s,u,l,f,m,v,h;return r.__generator(this,(function(b){switch(b.label){case 0:if(!e.appSelector)throw new Error("appSelector is required! Pass in \" appSelector: '<"+d+"></"+d+">' \",\n for your root App component.");if(d=e.appSelector.substring(1,e.appSelector.indexOf(">")),s=n.platformDynamicServer().injector.get(t.CompilerFactory),u=s.createCompiler([{providers:[{provide:a.ResourceLoader,useClass:c,deps:[]}]}]),!(l=e.ngModule))throw new Error("You must pass in a NgModule or NgModuleFactory to be bootstrapped");return f=r.__spread(e.providers||[],[(S=e.request.origin,_=e.request.data.request,w=[{provide:i.ORIGIN_URL,useValue:S},{provide:i.REQUEST,useValue:_}],w)]),[4,g(l,u)];case 1:return[4,p(b.sent(),{document:e.document||e.appSelector,url:e.url||e.request.absoluteUrl,extraProviders:f})];case 2:return m=b.sent(),v=m.moduleRef.injector.get(o.DOCUMENT),[2,{html:(h=function y(e){for(var r=[],t=[],n=[],o=[],a=0;a<e.head.children.length;a++)switch((i=e.head.children[a]).tagName.toUpperCase()){case"SCRIPT":t.push(i.outerHTML);break;case"STYLE":r.push(i.outerHTML);break;case"LINK":o.push(i.outerHTML);break;case"META":n.push(i.outerHTML)}for(a=0;a<e.body.children.length;a++){var i;switch((i=e.body.children[a]).tagName.toUpperCase()){case"SCRIPT":t.push(i.outerHTML);break;case"STYLE":r.push(i.outerHTML);break;case"LINK":o.push(i.outerHTML);break;case"META":n.push(i.outerHTML)}}return{title:e.title,appNode:e.querySelector(d).outerHTML,scripts:t.join("\n"),styles:r.join("\n"),meta:n.join("\n"),links:o.join("\n")}}(v)).appNode,moduleRef:m.moduleRef,globals:{styles:h.styles,title:h.title,scripts:h.scripts,meta:h.meta,links:h.links}}]}var S,_,w}))}))},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
e.createTransferScript=function m(e){return"<script>window['TRANSFER_CACHE'] = "+JSON.stringify(e)+";<\/script>"},e.ngAspnetCoreEngine=function v(e){return r.__awaiter(this,void 0,void 0,(function(){var s,u,l,f,m,v,h;return r.__generator(this,(function(b){switch(b.label){case 0:if(!e.appSelector)throw new Error("appSelector is required! Pass in \" appSelector: '<"+d+"></"+d+">' \",\n for your root App component.");if(d=e.appSelector.substring(1,e.appSelector.indexOf(">")),s=a.platformDynamicServer().injector.get(o.CompilerFactory),u=s.createCompiler([{providers:[{provide:n.ResourceLoader,useClass:c,deps:[]}]}]),!(l=e.ngModule))throw new Error("You must pass in a NgModule or NgModuleFactory to be bootstrapped");return f=r.__spread(e.providers||[],[(S=e.request.origin,_=e.request.data.request,w=[{provide:i.ORIGIN_URL,useValue:S},{provide:i.REQUEST,useValue:_}],w)]),[4,g(l,u)];case 1:return[4,p(b.sent(),{document:e.document||e.appSelector,url:e.url||e.request.absoluteUrl,extraProviders:f})];case 2:return m=b.sent(),v=m.moduleRef.injector.get(t.DOCUMENT),[2,{html:(h=function y(e){for(var r=[],t=[],n=[],o=[],a=0;a<e.head.children.length;a++)switch((i=e.head.children[a]).tagName.toUpperCase()){case"SCRIPT":t.push(i.outerHTML);break;case"STYLE":r.push(i.outerHTML);break;case"LINK":o.push(i.outerHTML);break;case"META":n.push(i.outerHTML)}for(a=0;a<e.body.children.length;a++){var i;switch((i=e.body.children[a]).tagName.toUpperCase()){case"SCRIPT":t.push(i.outerHTML);break;case"STYLE":r.push(i.outerHTML);break;case"LINK":o.push(i.outerHTML);break;case"META":n.push(i.outerHTML)}}return{title:e.title,appNode:e.querySelector(d).outerHTML,scripts:t.join("\n"),styles:r.join("\n"),meta:n.join("\n"),links:o.join("\n")}}(v)).appNode,moduleRef:m.moduleRef,globals:{styles:h.styles,title:h.title,scripts:h.scripts,meta:h.meta,links:h.links}}]}var S,_,w}))}))},Object.defineProperty(e,"__esModule",{value:!0})})); |
@@ -6,9 +6,2 @@ /** | ||
*/ | ||
/** | ||
* @license | ||
* Copyright Google LLC All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import * as fs from 'fs'; | ||
@@ -44,2 +37,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1sb2FkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL2FzcG5ldGNvcmUtZW5naW5lL3NyYy9maWxlLWxvYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFPQSxPQUFPLEtBQUssRUFBRSxNQUFNLElBQUksQ0FBQzs7OztBQUl6QixNQUFNLE9BQU8sVUFBVTs7Ozs7SUFDckIsR0FBRyxDQUFDLEdBQVc7UUFDYixPQUFPLElBQUksT0FBTzs7Ozs7UUFBQyxDQUFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsRUFBRTtZQUNyQyxFQUFFLENBQUMsUUFBUSxDQUFDLEdBQUc7Ozs7O1lBQUUsQ0FBQyxHQUFpQyxFQUFFLElBQVksRUFBRSxFQUFFO2dCQUNuRSxJQUFJLEdBQUcsRUFBRTtvQkFDUCxPQUFPLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztpQkFDcEI7Z0JBRUQsT0FBTyxDQUFDLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQyxDQUFDO1lBQzNCLENBQUMsRUFBQyxDQUFDO1FBQ0wsQ0FBQyxFQUFDLENBQUM7SUFDTCxDQUF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Pzogc3RyaW5nOyAgICAgICAgICAgICAgICAgICAgICAgIC8vIGUuZy4sIDxodG1sPi4uLjwvaHRtbD5cbiAgbmdNb2R1bGU6IFR5cGU8e30+IHwgTmdNb2R1bGVGYWN0b3J5PHt9PjsgLy8gZS5nLiwgQXBwTW9kdWxlXG4gIHByb3ZpZGVycz86IFN0YXRpY1Byb3ZpZGVyW107ICAgICAgICAgICAgIC8vIFN0YXRpY1Byb3ZpZGVyW11cbn1cbiJdfQ== |
@@ -14,7 +14,7 @@ /** | ||
*/ | ||
import { NgModuleFactory, CompilerFactory } from '@angular/core'; | ||
import { platformDynamicServer } from '@angular/platform-server'; | ||
import { DOCUMENT } from '@angular/common'; | ||
import { ResourceLoader } from '@angular/compiler'; | ||
import { REQUEST, ORIGIN_URL } from '@nguniversal/aspnetcore-engine/tokens'; | ||
import { CompilerFactory, NgModuleFactory } from '@angular/core'; | ||
import { platformDynamicServer } from '@angular/platform-server'; | ||
import { ORIGIN_URL, REQUEST } from '@nguniversal/aspnetcore-engine/tokens'; | ||
import { FileLoader } from './file-loader'; | ||
@@ -65,3 +65,5 @@ import { renderModuleFactory } from './platform-server-utils'; | ||
const LINKS = []; | ||
// tslint:disable-next-line: no-non-null-assertion | ||
for (let i = 0; i < (/** @type {?} */ (doc.head)).children.length; i++) { | ||
// tslint:disable-next-line: no-non-null-assertion | ||
/** @type {?} */ | ||
@@ -112,2 +114,3 @@ const element = (/** @type {?} */ (doc.head)).children[i]; | ||
title: doc.title, | ||
// tslint:disable-next-line: no-non-null-assertion | ||
appNode: (/** @type {?} */ (doc.querySelector(appSelector))).outerHTML, | ||
@@ -217,3 +220,3 @@ scripts: SCRIPTS.join('\n'), | ||
/** @type {?} */ | ||
let moduleFactory = factoryCacheMap.get(moduleOrFactory); | ||
const moduleFactory = factoryCacheMap.get(moduleOrFactory); | ||
// If module factory is cached | ||
@@ -231,2 +234,2 @@ if (moduleFactory) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZX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PiwgY29tcGlsZXI6IENvbXBpbGVyXG4pOiBQcm9taXNlPE5nTW9kdWxlRmFjdG9yeTx7fT4+IHtcbiAgLy8gSWYgbW9kdWxlIGhhcyBiZWVuIGNvbXBpbGVkIEFvVFxuICBpZiAobW9kdWxlT3JGYWN0b3J5IGluc3RhbmNlb2YgTmdNb2R1bGVGYWN0b3J5KSB7XG4gICAgcmV0dXJuIG1vZHVsZU9yRmFjdG9yeTtcbiAgfSBlbHNlIHtcbiAgICBjb25zdCBtb2R1bGVGYWN0b3J5ID0gZmFjdG9yeUNhY2hlTWFwLmdldChtb2R1bGVPckZhY3RvcnkpO1xuICAgIC8vIElmIG1vZHVsZSBmYWN0b3J5IGlzIGNhY2hlZFxuICAgIGlmIChtb2R1bGVGYWN0b3J5KSB7XG4gICAgICByZXR1cm4gbW9kdWxlRmFjdG9yeTtcbiAgICB9XG5cbiAgICAvLyBDb21waWxlIHRoZSBtb2R1bGUgYW5kIGNhY2hlIGl0XG4gICAgY29uc3QgZmFjdG9yeSA9IGF3YWl0IGNvbXBpbGVyLmNvbXBpbGVNb2R1bGVBc3luYyhtb2R1bGVPckZhY3RvcnkpO1xuICAgIGZhY3RvcnlDYWNoZU1hcC5zZXQobW9kdWxlT3JGYWN0b3J5LCBmYWN0b3J5KTtcblxuICAgIHJldHVybiBmYWN0b3J5O1xuICB9XG59XG4iXX0= |
@@ -22,3 +22,3 @@ /** | ||
import { ɵTRANSITION_ID } from '@angular/platform-browser'; | ||
import { platformDynamicServer, platformServer, BEFORE_APP_SERIALIZED, INITIAL_CONFIG, PlatformState } from '@angular/platform-server'; | ||
import { BEFORE_APP_SERIALIZED, INITIAL_CONFIG, PlatformState, platformDynamicServer, platformServer } from '@angular/platform-server'; | ||
import { first } from 'rxjs/operators'; | ||
@@ -98,2 +98,3 @@ /** | ||
// Ignore exceptions. | ||
// tslint:disable-next-line: no-console | ||
console.warn('Ignoring BEFORE_APP_SERIALIZED Exception: ', e); | ||
@@ -148,2 +149,2 @@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ciByZXF1ZXN0LlxuICogYGV4dHJhUHJvdmlkZXJzYCBhcmUgdGhlIHBsYXRmb3JtIGxldmVsIHByb3ZpZGVycyBmb3IgdGhlIGN1cnJlbnQgcmVuZGVyIHJlcXVlc3QuXG4gKlxuICogQGV4cGVyaW1lbnRhbFxuICovXG5leHBvcnQgZnVuY3Rpb24gcmVuZGVyTW9kdWxlRmFjdG9yeTxUPihcbiAgbW9kdWxlRmFjdG9yeTogTmdNb2R1bGVGYWN0b3J5PFQ+LFxuICBvcHRpb25zOiB7IGRvY3VtZW50Pzogc3RyaW5nLCB1cmw/OiBzdHJpbmcsIGV4dHJhUHJvdmlkZXJzPzogU3RhdGljUHJvdmlkZXJbXSB9KTpcbiAgUHJvbWlzZTxNb2R1bGVSZW5kZXJSZXN1bHQ8VD4+IHtcbiAgY29uc3QgcGxhdGZvcm0gPSBfZ2V0UGxhdGZvcm0ocGxhdGZvcm1TZXJ2ZXIsIG9wdGlvbnMpO1xuXG4gIHJldHVybiBfcmVuZGVyKHBsYXRmb3JtLCBwbGF0Zm9ybS5ib290c3RyYXBNb2R1bGVGYWN0b3J5KG1vZHVsZUZhY3RvcnkpKTtcbn1cbiJdfQ== |
@@ -1,8 +0,1 @@ | ||
/** | ||
* @license | ||
* Copyright Google LLC All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
import * as fs from 'fs'; | ||
@@ -26,2 +19,2 @@ /** ResourceLoader implementation for loading files */ | ||
export { FileLoader }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1sb2FkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9tb2R1bGVzL2FzcG5ldGNvcmUtZW5naW5lL3NyYy9maWxlLWxvYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQ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2luZU9wdGlvbnMge1xuICBhcHBTZWxlY3Rvcjogc3RyaW5nOyAgICAgICAgICAgICAgICAgICAgICAvLyBlLmcuLCA8YXBwLXJvb3Q+PC9hcHAtcm9vdD5cbiAgcmVxdWVzdDogSVJlcXVlc3RQYXJhbXM7ICAgICAgICAgICAgICAgICAgLy8gZS5nLiwgcGFyYW1zXG4gIHVybD86IHN0cmluZzsgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGUuZy4sIGh0dHA6Ly90ZXN0aG9zdC5jb21cbiAgZG9jdW1lbnQ/OiBzdHJpbmc7ICAgICAgICAgICAgICAgICAgICAgICAgLy8gZS5nLiwgPGh0bWw+Li4uPC9odG1sPlxuICBuZ01vZHVsZTogVHlwZTx7fT4gfCBOZ01vZHVsZUZhY3Rvcnk8e30+OyAvLyBlLmcuLCBBcHBNb2R1bGVcbiAgcHJvdmlkZXJzPzogU3RhdGljUHJvdmlkZXJbXTsgICAgICAgICAgICAgLy8gU3RhdGljUHJvdmlkZXJbXVxufVxuIl19 |
@@ -9,7 +9,7 @@ import { __awaiter, __generator, __read, __spread } from "tslib"; | ||
*/ | ||
import { NgModuleFactory, CompilerFactory } from '@angular/core'; | ||
import { platformDynamicServer } from '@angular/platform-server'; | ||
import { DOCUMENT } from '@angular/common'; | ||
import { ResourceLoader } from '@angular/compiler'; | ||
import { REQUEST, ORIGIN_URL } from '@nguniversal/aspnetcore-engine/tokens'; | ||
import { CompilerFactory, NgModuleFactory } from '@angular/core'; | ||
import { platformDynamicServer } from '@angular/platform-server'; | ||
import { ORIGIN_URL, REQUEST } from '@nguniversal/aspnetcore-engine/tokens'; | ||
import { FileLoader } from './file-loader'; | ||
@@ -38,3 +38,5 @@ import { renderModuleFactory } from './platform-server-utils'; | ||
var LINKS = []; | ||
// tslint:disable-next-line: no-non-null-assertion | ||
for (var i = 0; i < doc.head.children.length; i++) { | ||
// tslint:disable-next-line: no-non-null-assertion | ||
var element = doc.head.children[i]; | ||
@@ -81,2 +83,3 @@ var tagName = element.tagName.toUpperCase(); | ||
title: doc.title, | ||
// tslint:disable-next-line: no-non-null-assertion | ||
appNode: doc.querySelector(appSelector).outerHTML, | ||
@@ -184,2 +187,2 @@ scripts: SCRIPTS.join('\n'), | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL21vZHVsZXMvYXNwbmV0Y29yZS1lbmdpbmUvc3JjL21haW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7R0FNRztBQUNILE9BQU8sRUFBTyxlQUFlLEVBQUUsZUFBZSxFQUEyQixNQUFNLGVBQWUsQ0FBQztBQUMvRixPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUNqRSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDM0MsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBRW5ELE9BQU8sRUFBRSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sdUNBQXVDLENBQUM7QUFDNUUsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUczQyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUU5RCxlQUFlO0FBQ2Y7SUFBQTtRQUNFLFlBQU8sR0FBRyxFQUFFLENBQUM7UUFDYixVQUFLLEdBQUcsRUFBRSxDQUFDO1FBQ1gsWUFBTyxHQUFHLEVBQUUsQ0FBQztRQUNiLFdBQU0sR0FBRyxFQUFFLENBQUM7UUFDWixTQUFJLEdBQUcsRUFBRSxDQUFDO1FBQ1YsVUFBSyxHQUFHLEVBQUUsQ0FBQztJQUNiLENBQUM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vLyBDb21waWxlIHRoZSBtb2R1bGUgYW5kIGNhY2hlIGl0XG4gICAgY29uc3QgZmFjdG9yeSA9IGF3YWl0IGNvbXBpbGVyLmNvbXBpbGVNb2R1bGVBc3luYyhtb2R1bGVPckZhY3RvcnkpO1xuICAgIGZhY3RvcnlDYWNoZU1hcC5zZXQobW9kdWxlT3JGYWN0b3J5LCBmYWN0b3J5KTtcblxuICAgIHJldHVybiBmYWN0b3J5O1xuICB9XG59XG4iXX0= |
@@ -17,3 +17,3 @@ /** | ||
import { ɵTRANSITION_ID } from '@angular/platform-browser'; | ||
import { platformDynamicServer, platformServer, BEFORE_APP_SERIALIZED, INITIAL_CONFIG, PlatformState } from '@angular/platform-server'; | ||
import { BEFORE_APP_SERIALIZED, INITIAL_CONFIG, PlatformState, platformDynamicServer, platformServer } from '@angular/platform-server'; | ||
import { first } from 'rxjs/operators'; | ||
@@ -56,2 +56,3 @@ function _getPlatform(platformFactory, options) { | ||
// Ignore exceptions. | ||
// tslint:disable-next-line: no-console | ||
console.warn('Ignoring BEFORE_APP_SERIALIZED Exception: ', e); | ||
@@ -105,2 +106,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdGZvcm0tc2VydmVyLXV0aWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbW9kdWxlcy9hc3BuZXRjb3JlLWVuZ2luZS9zcmMvcGxhdGZvcm0tc2VydmVyLXV0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUNIOzs7OztHQUtHOztBQUVILE9BQU8sRUFDTCxjQUFjLEVBTWYsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLDJCQUEyQixDQUFDO0FBQ3pELE9BQU8sRUFDTCxxQkFBcUIsR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9ybSA9IF9nZXRQbGF0Zm9ybShwbGF0Zm9ybVNlcnZlciwgb3B0aW9ucyk7XG5cbiAgcmV0dXJuIF9yZW5kZXIocGxhdGZvcm0sIHBsYXRmb3JtLmJvb3RzdHJhcE1vZHVsZUZhY3RvcnkobW9kdWxlRmFjdG9yeSkpO1xufVxuIl19 |
import { __awaiter } from 'tslib'; | ||
import { DOCUMENT } from '@angular/common'; | ||
import { ResourceLoader } from '@angular/compiler'; | ||
import { ApplicationRef, CompilerFactory, NgModuleFactory } from '@angular/core'; | ||
import { INITIAL_CONFIG, PlatformState, BEFORE_APP_SERIALIZED, platformDynamicServer, platformServer } from '@angular/platform-server'; | ||
import { DOCUMENT } from '@angular/common'; | ||
import { ResourceLoader } from '@angular/compiler'; | ||
import { ORIGIN_URL, REQUEST } from '@nguniversal/aspnetcore-engine/tokens'; | ||
@@ -124,2 +124,3 @@ import { readFile } from 'fs'; | ||
// Ignore exceptions. | ||
// tslint:disable-next-line: no-console | ||
console.warn('Ignoring BEFORE_APP_SERIALIZED Exception: ', e); | ||
@@ -223,3 +224,5 @@ } | ||
const LINKS = []; | ||
// tslint:disable-next-line: no-non-null-assertion | ||
for (let i = 0; i < (/** @type {?} */ (doc.head)).children.length; i++) { | ||
// tslint:disable-next-line: no-non-null-assertion | ||
/** @type {?} */ | ||
@@ -270,2 +273,3 @@ const element = (/** @type {?} */ (doc.head)).children[i]; | ||
title: doc.title, | ||
// tslint:disable-next-line: no-non-null-assertion | ||
appNode: (/** @type {?} */ (doc.querySelector(appSelector))).outerHTML, | ||
@@ -375,3 +379,3 @@ scripts: SCRIPTS.join('\n'), | ||
/** @type {?} */ | ||
let moduleFactory = factoryCacheMap.get(moduleOrFactory); | ||
const moduleFactory = factoryCacheMap.get(moduleOrFactory); | ||
// If module factory is cached | ||
@@ -378,0 +382,0 @@ if (moduleFactory) { |
import { __awaiter, __generator, __values, __spread } from 'tslib'; | ||
import { DOCUMENT } from '@angular/common'; | ||
import { ResourceLoader } from '@angular/compiler'; | ||
import { ApplicationRef, CompilerFactory, NgModuleFactory } from '@angular/core'; | ||
import { INITIAL_CONFIG, PlatformState, BEFORE_APP_SERIALIZED, platformDynamicServer, platformServer } from '@angular/platform-server'; | ||
import { DOCUMENT } from '@angular/common'; | ||
import { ResourceLoader } from '@angular/compiler'; | ||
import { ORIGIN_URL, REQUEST } from '@nguniversal/aspnetcore-engine/tokens'; | ||
@@ -11,9 +11,2 @@ import { readFile } from 'fs'; | ||
/** | ||
* @license | ||
* Copyright Google LLC All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
/** ResourceLoader implementation for loading files */ | ||
@@ -79,2 +72,3 @@ var FileLoader = /** @class */ (function () { | ||
// Ignore exceptions. | ||
// tslint:disable-next-line: no-console | ||
console.warn('Ignoring BEFORE_APP_SERIALIZED Exception: ', e); | ||
@@ -149,3 +143,5 @@ } | ||
var LINKS = []; | ||
// tslint:disable-next-line: no-non-null-assertion | ||
for (var i = 0; i < doc.head.children.length; i++) { | ||
// tslint:disable-next-line: no-non-null-assertion | ||
var element = doc.head.children[i]; | ||
@@ -192,2 +188,3 @@ var tagName = element.tagName.toUpperCase(); | ||
title: doc.title, | ||
// tslint:disable-next-line: no-non-null-assertion | ||
appNode: doc.querySelector(appSelector).outerHTML, | ||
@@ -194,0 +191,0 @@ scripts: SCRIPTS.join('\n'), |
{ | ||
"name": "@nguniversal/aspnetcore-engine", | ||
"version": "9.0.0-next.13", | ||
"version": "9.0.0-next.14", | ||
"description": "ASP.NET Core Engine for running Server Angular Apps", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
250324
0
2189