Socket
Socket
Sign inDemoInstall

@ngx-pwa/local-storage

Package Overview
Dependencies
1
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.1.0-beta.1 to 6.1.0

2

package.json
{
"name": "@ngx-pwa/local-storage",
"version": "6.1.0-beta.1",
"version": "6.1.0",
"description": "Efficient local storage module for Angular apps and PWA: simple API based on native localStorage API, but internally stored via the asynchronous IndexedDB API for performance, and wrapped in RxJS observables to be homogeneous with other Angular modules.",

@@ -5,0 +5,0 @@ "author": "Cyrille Tuzi",

@@ -8,3 +8,3 @@ # Async local storage for Angular

- **security**: validate data with a JSON Schema,
- **extensibility**: add your own storage.
- **compatibility**: works around some browsers issues.

@@ -255,25 +255,2 @@ You could also be interested by [@ngx-pwa/offline](https://github.com/cyrilletuzi/ngx-pwa-offline).

## Extensibility
### Add your own storage
Starting with *version 5*, you can easily add your own storage:
```typescript
import { LocalDatabase } from '@ngx-pwa/local-storage';
export class MyDatabase implements LocalDatabase {
/* Implement the methods required by the LocalDatabase class */
}
@NgModule({
providers: [{ provide: LocalDatabase, useClass: MyDatabase }]
})
export class AppModule {}
```
Be sure to be compatible with Universal by checking the current platform before using any browser-specific API.
## Changelog

@@ -280,0 +257,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc