angular-user-idle
Advanced tools
Comparing version 2.2.7 to 3.0.0
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
export * from './public_api'; | ||
/// <amd-module name="angular-user-idle" /> | ||
export * from './public-api'; |
import { ModuleWithProviders } from '@angular/core'; | ||
import { UserIdleConfig } from './angular-user-idle.config'; | ||
import * as i0 from "@angular/core"; | ||
export declare class UserIdleModule { | ||
static forRoot(config: UserIdleConfig): ModuleWithProviders<UserIdleModule>; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<UserIdleModule, never>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<UserIdleModule, never, never, never>; | ||
static ɵinj: i0.ɵɵInjectorDeclaration<UserIdleModule>; | ||
} |
import { NgZone } from '@angular/core'; | ||
import { Observable, Subject, Subscription } from 'rxjs'; | ||
import { UserIdleConfig } from './angular-user-idle.config'; | ||
import * as i0 from "@angular/core"; | ||
/** | ||
@@ -102,2 +103,4 @@ * User's idle service. | ||
protected setupPing(pingMillisec: number): void; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<UserIdleService, [{ optional: true; }, null]>; | ||
static ɵprov: i0.ɵɵInjectableDeclaration<UserIdleService>; | ||
} |
{ | ||
"name": "angular-user-idle", | ||
"version": "2.2.7", | ||
"description": "User's idle service for Angular 6+", | ||
"version": "3.0.0", | ||
"description": "User's idle service for Angular 13+", | ||
"author": "Vasyl Yefimenko <rednez@gmail.com>", | ||
"license": "MIT", | ||
"repository": { | ||
@@ -9,22 +11,30 @@ "type": "git", | ||
}, | ||
"author": "Vasyl Efimenko <rednez@gmail.com>", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"@angular/common": "^6.0.0 || ^12.0.0", | ||
"@angular/core": "^6.0.0 || ^12.0.0", | ||
"rxjs": "^6.0.0" | ||
"@angular/common": "^13.3.0", | ||
"@angular/core": "^13.3.0", | ||
"rxjs": "^7.5.0" | ||
}, | ||
"main": "bundles/angular-user-idle.umd.js", | ||
"module": "fesm5/angular-user-idle.js", | ||
"es2015": "fesm2015/angular-user-idle.js", | ||
"esm5": "esm5/angular-user-idle.js", | ||
"esm2015": "esm2015/angular-user-idle.js", | ||
"fesm5": "fesm5/angular-user-idle.js", | ||
"fesm2015": "fesm2015/angular-user-idle.js", | ||
"dependencies": { | ||
"tslib": "^2.3.0" | ||
}, | ||
"module": "fesm2015/angular-user-idle.mjs", | ||
"es2020": "fesm2020/angular-user-idle.mjs", | ||
"esm2020": "esm2020/angular-user-idle.mjs", | ||
"fesm2020": "fesm2020/angular-user-idle.mjs", | ||
"fesm2015": "fesm2015/angular-user-idle.mjs", | ||
"typings": "angular-user-idle.d.ts", | ||
"metadata": "angular-user-idle.metadata.json", | ||
"sideEffects": false, | ||
"dependencies": { | ||
"tslib": "^1.9.0" | ||
} | ||
} | ||
"exports": { | ||
"./package.json": { | ||
"default": "./package.json" | ||
}, | ||
".": { | ||
"types": "./angular-user-idle.d.ts", | ||
"esm2020": "./esm2020/angular-user-idle.mjs", | ||
"es2020": "./fesm2020/angular-user-idle.mjs", | ||
"es2015": "./fesm2015/angular-user-idle.mjs", | ||
"node": "./fesm2015/angular-user-idle.mjs", | ||
"default": "./fesm2020/angular-user-idle.mjs" | ||
} | ||
}, | ||
"sideEffects": false | ||
} |
# angular-user-idle | ||
Service for Angular 6+ to detect and control of user's idle. | ||
Service for Angular 13+ to detect and control of user's idle. | ||
[![npm version](https://badge.fury.io/js/angular-user-idle.svg)](https://badge.fury.io/js/angular-user-idle) | ||
## Important | ||
This library was written for needs of my corporate project and this library compiles and works (Angular 6) very well and as I expected. | ||
Unfortunately, I don't have necessary time to maintenance my library as fast as you can expected. | ||
I have a plan to review my code to try to fix a bugs that was reported by other users but I don't know when I do it. | ||
Thank for your understanding. | ||
The library was written for my personal needs. So I distribute it "*as is*" without advanced supporting and change requesting. | ||
If you like the library just use it if not then you're free to fork the repo and make what are you want. | ||
**To use this library in Angular 5.x use angular-user-idle ver. 1.1.0 (_depreacated and don't supported!_)** | ||
#### Demo | ||
### Demo | ||
See [Demo app](https://rednez.github.io/angular-user-idle) | ||
### Installation | ||
## Installation | ||
@@ -94,6 +92,6 @@ `npm install angular-user-idle` | ||
##### About _ping_ | ||
Please note that ping is used if you want to perform some action periodically every _n_-minutes in lifecycle of timer | ||
(from start timer to timeout). | ||
Please note that ping is used if you want to perform some action periodically every _n_-minutes in lifecycle of timer | ||
(from start timer to timeout). | ||
For example, if you want to make a request to refresh token every 2 minutes you set ping to 120 and subscribe to ping's | ||
For example, if you want to make a request to refresh token every 2 minutes you set ping to 120 and subscribe to ping's | ||
observable like this: | ||
@@ -116,7 +114,7 @@ ```typescript | ||
Fired when timer is starting and return observable (stream) of timer's count. | ||
Fired when timer is starting and return observable (stream) of timer's count. | ||
`onTimeout(): Observable<boolean>;` | ||
Fired when time is out and id user did not stop the timer. | ||
Fired when time is out and id user did not stop the timer. | ||
@@ -123,0 +121,0 @@ `stopTimer()` |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
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
1
82189
16
809
143
1
+ Added@angular/common@13.4.0(transitive)
+ Added@angular/core@13.4.0(transitive)
+ Addedrxjs@7.8.1(transitive)
- Removed@angular/common@12.2.17(transitive)
- Removed@angular/core@12.2.17(transitive)
- Removedrxjs@6.6.7(transitive)
- Removedtslib@1.14.1(transitive)
Updatedtslib@^2.3.0