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

angular-user-idle

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-user-idle - npm Package Compare versions

Comparing version 2.2.7 to 3.0.0

esm2020/angular-user-idle.mjs

3

angular-user-idle.d.ts
/**
* 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()`

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