@nguniversal/aspnetcore-engine
Advanced tools
Comparing version 5.0.0 to 6.0.0-rc.0
@@ -9,6 +9,6 @@ /** | ||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('fs'), require('@angular/core'), require('@angular/platform-browser'), require('@angular/platform-server'), require('rxjs/operators/filter'), require('rxjs/operators/take'), require('@angular/common'), require('@angular/compiler'), require('@nguniversal/aspnetcore-engine/tokens')) : | ||
typeof define === 'function' && define.amd ? define('@nguniversal/aspnetcore-engine', ['exports', 'fs', '@angular/core', '@angular/platform-browser', '@angular/platform-server', 'rxjs/operators/filter', 'rxjs/operators/take', '@angular/common', '@angular/compiler', '@nguniversal/aspnetcore-engine/tokens'], factory) : | ||
(factory((global.nguniversal = global.nguniversal || {}, global.nguniversal.aspnetcoreEngine = {}),global.fs,global.ng.core,global.ng.platformBrowser,global.ng.platformServer,global.Rx.operators,global.Rx.operators,global.ng.common,global.ng.compiler,global.nguniversal.aspnetcoreEngine.tokens)); | ||
}(this, (function (exports,fs,core,platformBrowser,platformServer,filter,take,common,compiler,tokens) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('fs'), require('@angular/core'), require('@angular/platform-browser'), require('@angular/platform-server'), require('rxjs/operators'), require('@angular/common'), require('@angular/compiler'), require('@nguniversal/aspnetcore-engine/tokens')) : | ||
typeof define === 'function' && define.amd ? define('@nguniversal/aspnetcore-engine', ['exports', 'fs', '@angular/core', '@angular/platform-browser', '@angular/platform-server', 'rxjs/operators', '@angular/common', '@angular/compiler', '@nguniversal/aspnetcore-engine/tokens'], factory) : | ||
(factory((global.nguniversal = global.nguniversal || {}, global.nguniversal.aspnetcoreEngine = {}),global.fs,global.ng.core,global.ng.platformBrowser,global.ng.platformServer,global.Rx.operators,global.ng.common,global.ng.compiler,global.nguniversal.aspnetcoreEngine.tokens)); | ||
}(this, (function (exports,fs,core,platformBrowser,platformServer,operators,common,compiler,tokens) { 'use strict'; | ||
@@ -73,3 +73,3 @@ /** | ||
return applicationRef.isStable | ||
.pipe(filter.filter(function (isStable) { return isStable; }), take.take(1)).toPromise() | ||
.pipe(operators.filter(function (isStable) { return isStable; }), operators.take(1)).toPromise() | ||
.then(function () { | ||
@@ -76,0 +76,0 @@ var /** @type {?} */ platformState = platform.injector.get(platformServer.PlatformState); |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("fs"),require("@angular/core"),require("@angular/platform-browser"),require("@angular/platform-server"),require("rxjs/operators/filter"),require("rxjs/operators/take"),require("@angular/common"),require("@angular/compiler"),require("@nguniversal/aspnetcore-engine/tokens")):"function"==typeof define&&define.amd?define("@nguniversal/aspnetcore-engine",["exports","fs","@angular/core","@angular/platform-browser","@angular/platform-server","rxjs/operators/filter","rxjs/operators/take","@angular/common","@angular/compiler","@nguniversal/aspnetcore-engine/tokens"],r):r((e.nguniversal=e.nguniversal||{},e.nguniversal.aspnetcoreEngine={}),e.fs,e.ng.core,e.ng.platformBrowser,e.ng.platformServer,e.Rx.operators,e.Rx.operators,e.ng.common,e.ng.compiler,e.nguniversal.aspnetcoreEngine.tokens)}(this,function(e,r,t,n,o,i,a,u,s,c){"use strict";function p(e,r){var t=r.extraProviders?r.extraProviders:[];return e([{provide:o.INITIAL_CONFIG,useValue:{document:r.document,url:r.url}},t])}function l(e,r){return r.then(function(r){if(!r.injector.get(n.ɵ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 r.injector.get(t.ApplicationRef).isStable.pipe(i.filter(function(e){return e}),a.take(1)).toPromise().then(function(){var t=e.injector.get(o.PlatformState),n=r.injector.get(o.BEFORE_APP_SERIALIZED,null);if(n)for(var i=0,a=n;i<a.length;i++){var u=a[i];try{u()}catch(e){console.warn("Ignoring BEFORE_APP_SERIALIZED Exception: ",e)}}var s=t.renderToString();return e.destroy(),{html:s,moduleRef:r}})})}function f(e,r){var t=p(o.platformServer,r);return l(t,t.bootstrapModuleFactory(e))}function d(e){for(var r=[],t=[],n=[],o=[],i=0;i<e.head.children.length;i++){var a=e.head.children[i],u=a.tagName.toUpperCase();switch(u){case"SCRIPT":t.push(a.outerHTML);break;case"STYLE":r.push(a.outerHTML);break;case"LINK":o.push(a.outerHTML);break;case"META":n.push(a.outerHTML)}}for(var i=0;i<e.body.children.length;i++){var a=e.body.children[i],u=a.tagName.toUpperCase();switch(u){case"SCRIPT":t.push(a.outerHTML);break;case"STYLE":r.push(a.outerHTML);break;case"LINK":o.push(a.outerHTML);break;case"META":n.push(a.outerHTML)}}return{title:e.title,appNode:e.querySelector(y).outerHTML,scripts:t.join("\n"),styles:r.join("\n"),meta:n.join("\n"),links:o.join("\n")}}function g(e){if(!e.appSelector){var r="\" appSelector: '<"+y+"></"+y+">' \"";throw new Error("appSelector is required! Pass in "+r+",\n for your root App component.")}y=e.appSelector.substring(1,e.appSelector.indexOf(">"));var n=o.platformDynamicServer().injector.get(t.CompilerFactory),i=n.createCompiler([{providers:[{provide:s.ResourceLoader,useClass:S,deps:[]}]}]);return new Promise(function(r,t){try{var n=e.ngModule;if(!n)throw new Error("You must pass in a NgModule or NgModuleFactory to be bootstrapped");e.providers=e.providers||[];var o=e.providers.concat(m(e.request.origin,e.request.data.request));v(n,i).then(function(r){return f(r,{document:e.document||e.appSelector,url:e.url||e.request.url,extraProviders:o})}).then(function(e){var t=e.moduleRef.injector.get(u.DOCUMENT),n=d(t);r({html:n.appNode,moduleRef:e.moduleRef,globals:{styles:n.styles,title:n.title,scripts:n.scripts,meta:n.meta,links:n.links}})},function(e){t(e)})}catch(e){t(e)}})}function m(e,r){return[{provide:c.ORIGIN_URL,useValue:e},{provide:c.REQUEST,useValue:r}]}function v(e,r){return new Promise(function(n,o){if(e instanceof t.NgModuleFactory)return void n(e);var i=E.get(e);if(i)return void n(i);r.compileModuleAsync(e).then(function(r){E.set(e,r),n(r)},function(e){o(e)})})}/** | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("fs"),require("@angular/core"),require("@angular/platform-browser"),require("@angular/platform-server"),require("rxjs/operators"),require("@angular/common"),require("@angular/compiler"),require("@nguniversal/aspnetcore-engine/tokens")):"function"==typeof define&&define.amd?define("@nguniversal/aspnetcore-engine",["exports","fs","@angular/core","@angular/platform-browser","@angular/platform-server","rxjs/operators","@angular/common","@angular/compiler","@nguniversal/aspnetcore-engine/tokens"],r):r((e.nguniversal=e.nguniversal||{},e.nguniversal.aspnetcoreEngine={}),e.fs,e.ng.core,e.ng.platformBrowser,e.ng.platformServer,e.Rx.operators,e.ng.common,e.ng.compiler,e.nguniversal.aspnetcoreEngine.tokens)}(this,function(e,r,n,t,o,i,a,u,s){"use strict";function c(e,r){var n=r.extraProviders?r.extraProviders:[];return e([{provide:o.INITIAL_CONFIG,useValue:{document:r.document,url:r.url}},n])}function p(e,r){return r.then(function(r){if(!r.injector.get(t.ɵ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 r.injector.get(n.ApplicationRef).isStable.pipe(i.filter(function(e){return e}),i.take(1)).toPromise().then(function(){var n=e.injector.get(o.PlatformState),t=r.injector.get(o.BEFORE_APP_SERIALIZED,null);if(t)for(var i=0,a=t;i<a.length;i++){var u=a[i];try{u()}catch(e){console.warn("Ignoring BEFORE_APP_SERIALIZED Exception: ",e)}}var s=n.renderToString();return e.destroy(),{html:s,moduleRef:r}})})}function l(e,r){var n=c(o.platformServer,r);return p(n,n.bootstrapModuleFactory(e))}function f(e){for(var r=[],n=[],t=[],o=[],i=0;i<e.head.children.length;i++){var a=e.head.children[i],u=a.tagName.toUpperCase();switch(u){case"SCRIPT":n.push(a.outerHTML);break;case"STYLE":r.push(a.outerHTML);break;case"LINK":o.push(a.outerHTML);break;case"META":t.push(a.outerHTML)}}for(var i=0;i<e.body.children.length;i++){var a=e.body.children[i],u=a.tagName.toUpperCase();switch(u){case"SCRIPT":n.push(a.outerHTML);break;case"STYLE":r.push(a.outerHTML);break;case"LINK":o.push(a.outerHTML);break;case"META":t.push(a.outerHTML)}}return{title:e.title,appNode:e.querySelector(S).outerHTML,scripts:n.join("\n"),styles:r.join("\n"),meta:t.join("\n"),links:o.join("\n")}}function d(e){if(!e.appSelector){var r="\" appSelector: '<"+S+"></"+S+">' \"";throw new Error("appSelector is required! Pass in "+r+",\n for your root App component.")}S=e.appSelector.substring(1,e.appSelector.indexOf(">"));var t=o.platformDynamicServer().injector.get(n.CompilerFactory),i=t.createCompiler([{providers:[{provide:u.ResourceLoader,useClass:h,deps:[]}]}]);return new Promise(function(r,n){try{var t=e.ngModule;if(!t)throw new Error("You must pass in a NgModule or NgModuleFactory to be bootstrapped");e.providers=e.providers||[];var o=e.providers.concat(g(e.request.origin,e.request.data.request));m(t,i).then(function(r){return l(r,{document:e.document||e.appSelector,url:e.url||e.request.url,extraProviders:o})}).then(function(e){var n=e.moduleRef.injector.get(a.DOCUMENT),t=f(n);r({html:t.appNode,moduleRef:e.moduleRef,globals:{styles:t.styles,title:t.title,scripts:t.scripts,meta:t.meta,links:t.links}})},function(e){n(e)})}catch(e){n(e)}})}function g(e,r){return[{provide:s.ORIGIN_URL,useValue:e},{provide:s.REQUEST,useValue:r}]}function m(e,r){return new Promise(function(t,o){if(e instanceof n.NgModuleFactory)return void t(e);var i=y.get(e);if(i)return void t(i);r.compileModuleAsync(e).then(function(r){y.set(e,r),t(r)},function(e){o(e)})})}/** | ||
* @license | ||
@@ -18,3 +18,3 @@ * Copyright Google LLC All Rights Reserved. | ||
*/ | ||
function h(e){return"<script>window['TRANSFER_CACHE'] = "+JSON.stringify(e)+";<\/script>"}var S=function(){function e(){}return e.prototype.get=function(e){return new Promise(function(t,n){r.readFile(e,function(e,r){if(e)return n(e);t(r.toString())})})},e}(),y="app-root",E=new Map;e.ngAspnetCoreEngine=g,e.createTransferScript=h,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
function v(e){return"<script>window['TRANSFER_CACHE'] = "+JSON.stringify(e)+";<\/script>"}var h=function(){function e(){}return e.prototype.get=function(e){return new Promise(function(n,t){r.readFile(e,function(e,r){if(e)return t(e);n(r.toString())})})},e}(),S="app-root",y=new Map;e.ngAspnetCoreEngine=d,e.createTransferScript=v,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=aspnetcore-engine.umd.min.js.map |
@@ -12,4 +12,3 @@ /** | ||
import { platformDynamicServer, platformServer, BEFORE_APP_SERIALIZED, INITIAL_CONFIG, PlatformState } from '@angular/platform-server'; | ||
import { filter } from 'rxjs/operators/filter'; | ||
import { take } from 'rxjs/operators/take'; | ||
import { filter, take } from 'rxjs/operators'; | ||
import { DOCUMENT } from '@angular/common'; | ||
@@ -16,0 +15,0 @@ import { ResourceLoader } from '@angular/compiler'; |
@@ -12,4 +12,3 @@ /** | ||
import { platformDynamicServer, platformServer, BEFORE_APP_SERIALIZED, INITIAL_CONFIG, PlatformState } from '@angular/platform-server'; | ||
import { filter } from 'rxjs/operators/filter'; | ||
import { take } from 'rxjs/operators/take'; | ||
import { filter, take } from 'rxjs/operators'; | ||
import { DOCUMENT } from '@angular/common'; | ||
@@ -16,0 +15,0 @@ import { ResourceLoader } from '@angular/compiler'; |
{ | ||
"name": "@nguniversal/aspnetcore-engine", | ||
"version": "5.0.0", | ||
"version": "6.0.0-rc.0", | ||
"description": "ASP.NET Core Engine for running Server Angular Apps", | ||
"main": "./bundles/aspnetcore-engine.umd.js", | ||
"module": "./esm5/aspnetcore-engine.es5.js", | ||
"es2015": "./esm2015/aspnetcore-engine.js", | ||
"typings": "./aspnetcore-engine.d.ts", | ||
"author": { | ||
@@ -24,5 +20,9 @@ "name": "MarkPieszak", | ||
"peerDependencies": { | ||
"@angular/common": "^5.0.0", | ||
"@angular/core": "^5.0.0" | ||
"@angular/common": "NG_VERSION", | ||
"@angular/core": "NG_VERSION", | ||
"rxjs": "RXJS_VERSION" | ||
}, | ||
"ng-update": { | ||
"packageGroup": "NG_UPDATE_PACKAGE_GROUP" | ||
}, | ||
"repository": { | ||
@@ -29,0 +29,0 @@ "type": "git", |
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
export * from './public-api'; | ||
export * from './public_api'; |
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
export * from './public-api'; | ||
export * from './public_api'; |
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
export * from './public-api'; | ||
export * from './public_api'; |
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
export * from './public-api'; | ||
export * from './public_api'; |
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
export * from './public-api'; | ||
export * from './public_api'; |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
131696
3
1439
2