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

@ngx-loading-bar/router

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngx-loading-bar/router - npm Package Compare versions

Comparing version 2.2.0 to 3.0.0

esm2015/public_api.js

88

bundles/ngx-loading-bar-router.umd.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('@ngx-loading-bar/core')) :
typeof define === 'function' && define.amd ? define('@ngx-loading-bar/router', ['exports', '@angular/core', '@angular/router', '@ngx-loading-bar/core'], factory) :
(factory((global['ngx-loading-bar'] = global['ngx-loading-bar'] || {}, global['ngx-loading-bar'].router = {}),global.ng.core,global.ng.router,global.core$1));
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('@ngx-loading-bar/core')) :
typeof define === 'function' && define.amd ? define('@ngx-loading-bar/router', ['exports', '@angular/core', '@angular/router', '@ngx-loading-bar/core'], factory) :
(factory((global['ngx-loading-bar'] = global['ngx-loading-bar'] || {}, global['ngx-loading-bar'].router = {}),global.ng.core,global.ng.router,global.core$1));
}(this, (function (exports,core,router,core$1) { 'use strict';
var LoadingBarRouterModule = /** @class */ (function () {
function LoadingBarRouterModule(router$$1, loadingBar) {
router$$1.events.subscribe(function (event) {
if (event instanceof router.NavigationStart) {
loadingBar.start();
}
if ((event instanceof router.NavigationError || event instanceof router.NavigationEnd || event instanceof router.NavigationCancel)) {
loadingBar.complete();
}
});
}
return LoadingBarRouterModule;
}());
LoadingBarRouterModule.decorators = [
{ type: core.NgModule, args: [{
imports: [
router.RouterModule,
core$1.LoadingBarModule.forRoot(),
],
exports: [
router.RouterModule,
core$1.LoadingBarModule,
],
},] },
];
LoadingBarRouterModule.ctorParameters = function () { return [
{ type: router.Router, },
{ type: core$1.LoadingBarService, },
]; };
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var LoadingBarRouterModule = /** @class */ (function () {
function LoadingBarRouterModule(router$$1, loadingBar) {
router$$1.events.subscribe(function (event) {
if (event instanceof router.NavigationStart) {
loadingBar.start();
}
if ((event instanceof router.NavigationError || event instanceof router.NavigationEnd || event instanceof router.NavigationCancel)) {
loadingBar.complete();
}
});
}
LoadingBarRouterModule.decorators = [
{ type: core.NgModule, args: [{
imports: [
router.RouterModule,
core$1.LoadingBarModule,
],
exports: [
router.RouterModule,
core$1.LoadingBarModule,
],
},] }
];
/** @nocollapse */
LoadingBarRouterModule.ctorParameters = function () {
return [
{ type: router.Router },
{ type: core$1.LoadingBarService }
];
};
return LoadingBarRouterModule;
}());
exports.LoadingBarRouterModule = LoadingBarRouterModule;
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
Object.defineProperty(exports, '__esModule', { value: true });
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
exports.LoadingBarRouterModule = LoadingBarRouterModule;
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=ngx-loading-bar-router.umd.js.map
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWxvYWRpbmctYmFyLXJvdXRlci51bWQuanMubWFwIiwic291cmNlcyI6WyJuZzovL0BuZ3gtbG9hZGluZy1iYXIvcm91dGVyL3JvdXRlci5tb2R1bGUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IFJvdXRlck1vZHVsZSwgUm91dGVyLCBOYXZpZ2F0aW9uU3RhcnQsIE5hdmlnYXRpb25FcnJvciwgTmF2aWdhdGlv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IiwiTG9hZGluZ0Jhck1vZHVsZSIsIlJvdXRlciIsIkxvYWRpbmdCYXJTZXJ2aWNlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7UUFlRSxnQ0FBWUEsU0FBYyxFQUFFLFVBQTZCO1lBQ3ZEQSxTQUFNLENBQUMsTUFBTSxDQUFDLFNBQVMsQ0FBQyxVQUFBLEtBQUs7Z0JBQzNCLElBQUksS0FBSyxZQUFZQyxzQkFBZSxFQUFFO29CQUNwQyxVQUFVLENBQUMsS0FBSyxFQUFFLENBQUM7aUJBQ3BCO2dCQUVELEtBQUssS0FBSyxZQUFZQyxzQkFBZSxJQUFJLEtBQUssWUFBWUMsb0JBQWEsSUFBSSxLQUFLLFlBQVlDLHVCQUFnQixHQUFHO29CQUM3RyxVQUFVLENBQUMsUUFBUSxFQUFFLENBQUM7aUJBQ3ZCO2FBQ0YsQ0FBQyxDQUFDO1NBQ0o7O29CQXJCRkMsYUFBUSxTQUFDO3dCQUNSLE9BQU8sRUFBRTs0QkFDUEMsbUJBQVk7NEJBQ1pDLHVCQUFnQjt5QkFDakI7d0JBQ0QsT0FBTyxFQUFFOzRCQUNQRCxtQkFBWTs0QkFDWkMsdUJBQWdCO3lCQUNqQjtxQkFDRjs7Ozs7d0JBWnNCQyxhQUFNO3dCQUNGQyx3QkFBaUI7OztRQXdCNUMsNkJBQUM7S0F0QkQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7In0=

@@ -1,2 +0,2 @@

!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/core"),require("@angular/router"),require("@ngx-loading-bar/core")):"function"==typeof define&&define.amd?define("@ngx-loading-bar/router",["exports","@angular/core","@angular/router","@ngx-loading-bar/core"],o):o((e["ngx-loading-bar"]=e["ngx-loading-bar"]||{},e["ngx-loading-bar"].router={}),e.ng.core,e.ng.router,e.core$1)}(this,function(e,o,r,n){"use strict";var t=function(e,o){e.events.subscribe(function(e){e instanceof r.NavigationStart&&o.start(),(e instanceof r.NavigationError||e instanceof r.NavigationEnd||e instanceof r.NavigationCancel)&&o.complete()})};t.decorators=[{type:o.NgModule,args:[{imports:[r.RouterModule,n.LoadingBarModule.forRoot()],exports:[r.RouterModule,n.LoadingBarModule]}]}],t.ctorParameters=function(){return[{type:r.Router},{type:n.LoadingBarService}]},e.LoadingBarRouterModule=t,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ngx-loading-bar-router.umd.min.js.map
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@angular/core"),require("@angular/router"),require("@ngx-loading-bar/core")):"function"==typeof define&&define.amd?define("@ngx-loading-bar/router",["exports","@angular/core","@angular/router","@ngx-loading-bar/core"],r):r((e["ngx-loading-bar"]=e["ngx-loading-bar"]||{},e["ngx-loading-bar"].router={}),e.ng.core,e.ng.router,e.core$1)}(this,function(e,r,o,n){"use strict";var t=function(){function e(e,r){e.events.subscribe(function(e){e instanceof o.NavigationStart&&r.start(),(e instanceof o.NavigationError||e instanceof o.NavigationEnd||e instanceof o.NavigationCancel)&&r.complete()})}return e.decorators=[{type:r.NgModule,args:[{imports:[o.RouterModule,n.LoadingBarModule],exports:[o.RouterModule,n.LoadingBarModule]}]}],e.ctorParameters=function(){return[{type:o.Router},{type:n.LoadingBarService}]},e}();e.LoadingBarRouterModule=t,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ngx-loading-bar-router.umd.min.js.map

@@ -1,57 +0,9 @@

import { NgModule } from '@angular/core';
import { RouterModule, Router, NavigationStart, NavigationError, NavigationEnd, NavigationCancel } from '@angular/router';
import { LoadingBarModule, LoadingBarService } from '@ngx-loading-bar/core';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
class LoadingBarRouterModule {
/**
* @param {?} router
* @param {?} loadingBar
*/
constructor(router, loadingBar) {
router.events.subscribe(event => {
if (event instanceof NavigationStart) {
loadingBar.start();
}
if ((event instanceof NavigationError || event instanceof NavigationEnd || event instanceof NavigationCancel)) {
loadingBar.complete();
}
});
}
}
LoadingBarRouterModule.decorators = [
{ type: NgModule, args: [{
imports: [
RouterModule,
LoadingBarModule.forRoot(),
],
exports: [
RouterModule,
LoadingBarModule,
],
},] },
];
/** @nocollapse */
LoadingBarRouterModule.ctorParameters = () => [
{ type: Router, },
{ type: LoadingBarService, },
];
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
*/
/**
* Generated bundle index. Do not edit.
*/
export { LoadingBarRouterModule };
//# sourceMappingURL=ngx-loading-bar-router.js.map
export { LoadingBarRouterModule } from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWxvYWRpbmctYmFyLXJvdXRlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtbG9hZGluZy1iYXIvcm91dGVyLyIsInNvdXJjZXMiOlsibmd4LWxvYWRpbmctYmFyLXJvdXRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsdUNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19

@@ -1,36 +0,9 @@

import { NgModule } from '@angular/core';
import { RouterModule, Router, NavigationStart, NavigationError, NavigationEnd, NavigationCancel } from '@angular/router';
import { LoadingBarModule, LoadingBarService } from '@ngx-loading-bar/core';
var LoadingBarRouterModule = /** @class */ (function () {
function LoadingBarRouterModule(router, loadingBar) {
router.events.subscribe(function (event) {
if (event instanceof NavigationStart) {
loadingBar.start();
}
if ((event instanceof NavigationError || event instanceof NavigationEnd || event instanceof NavigationCancel)) {
loadingBar.complete();
}
});
}
return LoadingBarRouterModule;
}());
LoadingBarRouterModule.decorators = [
{ type: NgModule, args: [{
imports: [
RouterModule,
LoadingBarModule.forRoot(),
],
exports: [
RouterModule,
LoadingBarModule,
],
},] },
];
LoadingBarRouterModule.ctorParameters = function () { return [
{ type: Router, },
{ type: LoadingBarService, },
]; };
export { LoadingBarRouterModule };
//# sourceMappingURL=ngx-loading-bar-router.js.map
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Generated bundle index. Do not edit.
*/
export { LoadingBarRouterModule } from './public_api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWxvYWRpbmctYmFyLXJvdXRlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtbG9hZGluZy1iYXIvcm91dGVyLyIsInNvdXJjZXMiOlsibmd4LWxvYWRpbmctYmFyLXJvdXRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsdUNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19
/**
* Generated bundle index. Do not edit.
*/
export * from './index';
export * from './public_api';

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"LoadingBarRouterModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":6,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@ngx-loading-bar/core","name":"LoadingBarModule","line":7,"character":4},"member":"forRoot"}}],"exports":[{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":10,"character":4},{"__symbolic":"reference","module":"@ngx-loading-bar/core","name":"LoadingBarModule","line":11,"character":4}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":15,"character":22},{"__symbolic":"reference","module":"@ngx-loading-bar/core","name":"LoadingBarService","line":15,"character":42}]}]}}},"origins":{"LoadingBarRouterModule":"./router.module"},"importAs":"@ngx-loading-bar/router"}
{"__symbolic":"module","version":4,"metadata":{"LoadingBarRouterModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":6,"character":4},{"__symbolic":"reference","module":"@ngx-loading-bar/core","name":"LoadingBarModule","line":7,"character":4}],"exports":[{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":10,"character":4},{"__symbolic":"reference","module":"@ngx-loading-bar/core","name":"LoadingBarModule","line":11,"character":4}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":15,"character":22},{"__symbolic":"reference","module":"@ngx-loading-bar/core","name":"LoadingBarService","line":15,"character":42}]}]}}},"origins":{"LoadingBarRouterModule":"./router.module"},"importAs":"@ngx-loading-bar/router"}
{
"name": "@ngx-loading-bar/router",
"version": "2.2.0",
"version": "3.0.0",
"description": "Automatic page loading / progress bar for Angular",

@@ -22,13 +22,17 @@ "keywords": [

"tslib": "^1.7.1",
"@ngx-loading-bar/core": "2.2.0"
"@ngx-loading-bar/core": "3.0.0"
},
"peerDependencies": {
"@angular/router": ">=5.0.0",
"rxjs": "^5.6.0-forward-compat.0 || ^6.0.0-beta.0"
"@angular/router": ">=7.0.0"
},
"main": "bundles/ngx-loading-bar-router.umd.js",
"module": "esm5/ngx-loading-bar-router.js",
"es2015": "esm2015/ngx-loading-bar-router.js",
"module": "fesm5/ngx-loading-bar-router.js",
"es2015": "fesm2015/ngx-loading-bar-router.js",
"esm5": "esm5/ngx-loading-bar-router.js",
"esm2015": "esm2015/ngx-loading-bar-router.js",
"fesm5": "fesm5/ngx-loading-bar-router.js",
"fesm2015": "fesm2015/ngx-loading-bar-router.js",
"typings": "ngx-loading-bar-router.d.ts",
"metadata": "ngx-loading-bar-router.metadata.json"
"metadata": "ngx-loading-bar-router.metadata.json",
"sideEffects": false
}

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