New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

abstract-data-manager

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstract-data-manager

An abstract manager which can be useful for broadcasting lazily-loaded data.

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
1
-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

abstract-data-manager

An abstract manager which can be useful for broadcasting lazily-loaded data.

Usage

Extend the AbstractDataManager class and override async getData() to customize where data is fetched from.

Consumers call addListener to receive updates on the underlying data.

Features

Allows multiple consumers to get data updates over time.

The manager handles simultaneous requests by locking and preventing multiple calls.

The first listener will trigger an update which makes this a lazily-loaded approach.

Details

Consumers should call removeListener when they no longer need updates.

May optionally override destruct() to handle destruction.

May optionally override clear() to handle fetch cancelling. (Recommended)

For Developer

Remember to npm run build before deploying.

Keywords

remote

FAQs

Package last updated on 27 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts