Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nguniversal/common

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nguniversal/common - npm Package Compare versions

Comparing version 6.0.0-rc.0 to 6.0.0-rc.1

4

bundles/common.umd.js

@@ -130,2 +130,4 @@ /**

];
/** @nocollapse */
TransferHttpCacheModule.ctorParameters = function () { return []; };
return TransferHttpCacheModule;

@@ -163,2 +165,4 @@ }());

];
/** @nocollapse */
StateTransferInitializerModule.ctorParameters = function () { return []; };
return StateTransferInitializerModule;

@@ -165,0 +169,0 @@ }());

2

bundles/common.umd.min.js

@@ -8,3 +8,3 @@ /**

*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common/http"),require("@angular/core"),require("@angular/platform-browser"),require("rxjs"),require("rxjs/operators"),require("@angular/common")):"function"==typeof define&&define.amd?define("@nguniversal/common",["exports","@angular/common/http","@angular/core","@angular/platform-browser","rxjs","rxjs/operators","@angular/common"],t):t((e.nguniversal=e.nguniversal||{},e.nguniversal.common={}),e.ng.common.http,e.ng.core,e.ng.platformBrowser,e.Rx,e.Rx.operators,e.ng.common)}(this,function(e,t,r,n,a,o,s){"use strict";function i(e){for(var t={},r=0,n=e.keys();r<n.length;r++){var a=n[r];t[a]=e.getAll(a)}return t}function u(e){return function(){return new Promise(function(t,r){var n=function(){e.removeEventListener("DOMContentLoaded",n),t()};e.addEventListener("DOMContentLoaded",n)})}}var c=function(){function e(e,t){var r=this;this.transferState=t,this.isCacheActive=!0,e.isStable.pipe(o.filter(function(e){return e}),o.take(1)).toPromise().then(function(){r.isCacheActive=!1})}return e.prototype.invalidateCacheEntry=function(e){this.transferState.remove(n.makeStateKey("G."+e)),this.transferState.remove(n.makeStateKey("H."+e))},e.prototype.intercept=function(e,r){var s=this;if("GET"!==e.method&&"HEAD"!==e.method&&(this.isCacheActive=!1,this.invalidateCacheEntry(e.url)),!this.isCacheActive)return r.handle(e);var u=("GET"===e.method?"G.":"H.")+e.url,c=n.makeStateKey(u);if(this.transferState.hasKey(c)){var f=this.transferState.get(c,{});return a.of(new t.HttpResponse({body:f.body,headers:new t.HttpHeaders(f.headers),status:f.status,statusText:f.statusText,url:f.url}))}return r.handle(e).pipe(o.tap(function(e){e instanceof t.HttpResponse&&s.transferState.set(c,{body:e.body,headers:i(e.headers),status:e.status,statusText:e.statusText,url:e.url})}))},e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[{type:r.ApplicationRef},{type:n.TransferState}]},e}(),f=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{imports:[n.BrowserTransferStateModule],providers:[c,{provide:t.HTTP_INTERCEPTORS,useExisting:c,multi:!0}]}]}],e}(),p=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{providers:[{provide:r.APP_INITIALIZER,multi:!0,useFactory:u,deps:[s.DOCUMENT]}]}]}],e}();e.TransferHttpCacheModule=f,e.StateTransferInitializerModule=p,e.ɵb=u,e.ɵa=c,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common/http"),require("@angular/core"),require("@angular/platform-browser"),require("rxjs"),require("rxjs/operators"),require("@angular/common")):"function"==typeof define&&define.amd?define("@nguniversal/common",["exports","@angular/common/http","@angular/core","@angular/platform-browser","rxjs","rxjs/operators","@angular/common"],t):t((e.nguniversal=e.nguniversal||{},e.nguniversal.common={}),e.ng.common.http,e.ng.core,e.ng.platformBrowser,e.Rx,e.Rx.operators,e.ng.common)}(this,function(e,t,r,n,a,o,s){"use strict";function i(e){for(var t={},r=0,n=e.keys();r<n.length;r++){var a=n[r];t[a]=e.getAll(a)}return t}function u(e){return function(){return new Promise(function(t,r){var n=function(){e.removeEventListener("DOMContentLoaded",n),t()};e.addEventListener("DOMContentLoaded",n)})}}var c=function(){function e(e,t){var r=this;this.transferState=t,this.isCacheActive=!0,e.isStable.pipe(o.filter(function(e){return e}),o.take(1)).toPromise().then(function(){r.isCacheActive=!1})}return e.prototype.invalidateCacheEntry=function(e){this.transferState.remove(n.makeStateKey("G."+e)),this.transferState.remove(n.makeStateKey("H."+e))},e.prototype.intercept=function(e,r){var s=this;if("GET"!==e.method&&"HEAD"!==e.method&&(this.isCacheActive=!1,this.invalidateCacheEntry(e.url)),!this.isCacheActive)return r.handle(e);var u=("GET"===e.method?"G.":"H.")+e.url,c=n.makeStateKey(u);if(this.transferState.hasKey(c)){var f=this.transferState.get(c,{});return a.of(new t.HttpResponse({body:f.body,headers:new t.HttpHeaders(f.headers),status:f.status,statusText:f.statusText,url:f.url}))}return r.handle(e).pipe(o.tap(function(e){e instanceof t.HttpResponse&&s.transferState.set(c,{body:e.body,headers:i(e.headers),status:e.status,statusText:e.statusText,url:e.url})}))},e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[{type:r.ApplicationRef},{type:n.TransferState}]},e}(),f=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{imports:[n.BrowserTransferStateModule],providers:[c,{provide:t.HTTP_INTERCEPTORS,useExisting:c,multi:!0}]}]}],e.ctorParameters=function(){return[]},e}(),p=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{providers:[{provide:r.APP_INITIALIZER,multi:!0,useFactory:u,deps:[s.DOCUMENT]}]}]}],e.ctorParameters=function(){return[]},e}();e.TransferHttpCacheModule=f,e.StateTransferInitializerModule=p,e.ɵb=u,e.ɵa=c,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=common.umd.min.js.map

@@ -121,2 +121,4 @@ /**

];
/** @nocollapse */
TransferHttpCacheModule.ctorParameters = () => [];

@@ -149,2 +151,4 @@ /**

];
/** @nocollapse */
StateTransferInitializerModule.ctorParameters = () => [];

@@ -151,0 +155,0 @@ /**

@@ -131,2 +131,4 @@ /**

];
/** @nocollapse */
TransferHttpCacheModule.ctorParameters = function () { return []; };
return TransferHttpCacheModule;

@@ -164,2 +166,4 @@ }());

];
/** @nocollapse */
StateTransferInitializerModule.ctorParameters = function () { return []; };
return StateTransferInitializerModule;

@@ -166,0 +170,0 @@ }());

{
"name": "@nguniversal/common",
"version": "6.0.0-rc.0",
"version": "6.0.0-rc.1",
"description": "Angular Universal common utilities",

@@ -11,8 +11,5 @@ "license": "MIT",

"peerDependencies": {
"@angular/common": "NG_VERSION",
"@angular/core": "NG_VERSION"
"@angular/common": "^6.0.0-rc.4",
"@angular/core": "^6.0.0-rc.4"
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
},
"repository": {

@@ -19,0 +16,0 @@ "type": "git",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc