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

@ionic/storage

Package Overview
Dependencies
Maintainers
8
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ionic/storage - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

es2015/index.d.ts
import { ModuleWithProviders } from '@angular/core';
import { Storage, StorageConfig, StorageConfigToken } from './storage';
export { Storage, StorageConfig, StorageConfigToken };
export { StorageConfig, StorageConfigToken, Storage };
export declare class IonicStorageModule {
static forRoot(storageConfig?: StorageConfig): ModuleWithProviders;
}
import { NgModule } from '@angular/core';
import { provideStorage, Storage, StorageConfigToken } from './storage';
export { Storage, StorageConfigToken };
export { StorageConfigToken, Storage };
export var IonicStorageModule = (function () {

@@ -5,0 +5,0 @@ function IonicStorageModule() {

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

[{"__symbolic":"module","version":3,"metadata":{"Storage":{"__symbolic":"reference","module":"./storage","name":"Storage"},"StorageConfig":{"__symbolic":"reference","module":"./storage","name":"StorageConfig"},"StorageConfigToken":{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"},"IonicStorageModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["storageConfig"],"value":{"ngModule":{"__symbolic":"reference","name":"IonicStorageModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"},"useValue":{"__symbolic":"reference","name":"storageConfig"}},{"provide":{"__symbolic":"reference","module":"./storage","name":"Storage"},"useFactory":{"__symbolic":"reference","module":"./storage","name":"provideStorage"},"deps":[{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"}]}]},"defaults":[null]}}}}},{"__symbolic":"module","version":1,"metadata":{"Storage":{"__symbolic":"reference","module":"./storage","name":"Storage"},"StorageConfig":{"__symbolic":"reference","module":"./storage","name":"StorageConfig"},"StorageConfigToken":{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"},"IonicStorageModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["storageConfig"],"value":{"ngModule":{"__symbolic":"reference","name":"IonicStorageModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"},"useValue":{"__symbolic":"reference","name":"storageConfig"}},{"provide":{"__symbolic":"reference","module":"./storage","name":"Storage"},"useFactory":{"__symbolic":"reference","module":"./storage","name":"provideStorage"},"deps":[{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"}]}]},"defaults":[null]}}}}}]
[{"__symbolic":"module","version":3,"metadata":{"StorageConfig":{"__symbolic":"reference","module":"./storage","name":"StorageConfig"},"StorageConfigToken":{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"},"Storage":{"__symbolic":"reference","module":"./storage","name":"Storage"},"IonicStorageModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["storageConfig"],"value":{"ngModule":{"__symbolic":"reference","name":"IonicStorageModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"},"useValue":{"__symbolic":"reference","name":"storageConfig"}},{"provide":{"__symbolic":"reference","module":"./storage","name":"Storage"},"useFactory":{"__symbolic":"reference","module":"./storage","name":"provideStorage"},"deps":[{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"}]}]},"defaults":[null]}}}}},{"__symbolic":"module","version":1,"metadata":{"StorageConfig":{"__symbolic":"reference","module":"./storage","name":"StorageConfig"},"StorageConfigToken":{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"},"Storage":{"__symbolic":"reference","module":"./storage","name":"Storage"},"IonicStorageModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["storageConfig"],"value":{"ngModule":{"__symbolic":"reference","name":"IonicStorageModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"},"useValue":{"__symbolic":"reference","name":"storageConfig"}},{"provide":{"__symbolic":"reference","module":"./storage","name":"Storage"},"useFactory":{"__symbolic":"reference","module":"./storage","name":"provideStorage"},"deps":[{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"}]}]},"defaults":[null]}}}}}]

@@ -28,6 +28,6 @@ /// <reference types="localforage" />

*
* Next, add it to the providers list in your `NgModule` declaration (for example, in `src/app.module.ts`):
* Next, add it to the imports list in your `NgModule` declaration (for example, in `src/app.module.ts`):
*
* ```typescript
* import { Storage } from '@ionic/storage';
* import { IonicStorageModule } from '@ionic/storage';
*

@@ -39,3 +39,4 @@ * @NgModule({

* imports: [
* IonicModule.forRoot(MyApp)
* IonicModule.forRoot(MyApp),
* IonicStorageModule.forRoot()
* ],

@@ -46,5 +47,3 @@ * bootstrap: [IonicApp],

* ],
* providers: [
* Storage
* ]
* providers: []
* })

@@ -83,3 +82,3 @@ * export class AppModule {}

* ```typescript
* import { Storage } from '@ionic/storage';
* import { IonicStorageModule } from '@ionic/storage';
*

@@ -92,8 +91,8 @@ * export function provideStorage() {

* declarations: ...,
* imports: ...,
* imports: [
* IonicStorageModule.forRoot({ useFactory: provideStorage })
* ],
* bootstrap: ...,
* entryComponents: ...,
* providers: [
* { provide: Storage, useFactory: provideStorage }
* ]
* providers: []
* })

@@ -113,3 +112,3 @@ * export class AppModule {}

*/
constructor(config?: any);
constructor(config: StorageConfig);
/**

@@ -175,3 +174,3 @@ * Get the name of the driver being used.

}
export declare function provideStorage(storageConfig?: StorageConfig): Storage;
export declare const StorageConfigToken: OpaqueToken;
export declare function provideStorage(storageConfig: StorageConfig): Storage;

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

import { Injectable, OpaqueToken, Optional } from '@angular/core';
import { OpaqueToken } from '@angular/core';
import LocalForage from 'localforage';

@@ -29,6 +29,6 @@ import CordovaSQLiteDriver from 'localforage-cordovasqlitedriver';

*
* Next, add it to the providers list in your `NgModule` declaration (for example, in `src/app.module.ts`):
* Next, add it to the imports list in your `NgModule` declaration (for example, in `src/app.module.ts`):
*
* ```typescript
* import { Storage } from '@ionic/storage';
* import { IonicStorageModule } from '@ionic/storage';
*

@@ -40,3 +40,4 @@ * @NgModule({

* imports: [
* IonicModule.forRoot(MyApp)
* IonicModule.forRoot(MyApp),
* IonicStorageModule.forRoot()
* ],

@@ -47,5 +48,3 @@ * bootstrap: [IonicApp],

* ],
* providers: [
* Storage
* ]
* providers: []
* })

@@ -84,3 +83,3 @@ * export class AppModule {}

* ```typescript
* import { Storage } from '@ionic/storage';
* import { IonicStorageModule } from '@ionic/storage';
*

@@ -93,8 +92,8 @@ * export function provideStorage() {

* declarations: ...,
* imports: ...,
* imports: [
* IonicStorageModule.forRoot({ useFactory: provideStorage })
* ],
* bootstrap: ...,
* entryComponents: ...,
* providers: [
* { provide: Storage, useFactory: provideStorage }
* ]
* providers: []
* })

@@ -214,9 +213,2 @@ * export class AppModule {}

};
Storage.decorators = [
{ type: Injectable },
];
/** @nocollapse */
Storage.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: Optional },] },
]; };
return Storage;

@@ -232,2 +224,3 @@ }());

;
export var StorageConfigToken = new OpaqueToken('STORAGE_CONFIG_TOKEN');
export function provideStorage(storageConfig) {

@@ -237,2 +230,1 @@ var config = !!storageConfig ? storageConfig : getDefaultConfig();

}
export var StorageConfigToken = new OpaqueToken('STORAGE_CONFIG_TOKEN');

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

[{"__symbolic":"module","version":3,"metadata":{"Storage":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"ready":[{"__symbolic":"method"}],"_getDriverOrder":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"set":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"length":[{"__symbolic":"method"}],"keys":[{"__symbolic":"method"}],"forEach":[{"__symbolic":"method"}]}},"getDefaultConfig":{"__symbolic":"function","parameters":[],"value":{"name":"_ionicstorage","storeName":"_ionickv","driverOrder":["sqlite","indexeddb","websql","localstorage"]}},"provideStorage":{"__symbolic":"function"},"StorageConfigToken":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["STORAGE_CONFIG_TOKEN"]}}},{"__symbolic":"module","version":1,"metadata":{"Storage":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"ready":[{"__symbolic":"method"}],"_getDriverOrder":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"set":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"length":[{"__symbolic":"method"}],"keys":[{"__symbolic":"method"}],"forEach":[{"__symbolic":"method"}]}},"getDefaultConfig":{"__symbolic":"function","parameters":[],"value":{"name":"_ionicstorage","storeName":"_ionickv","driverOrder":["sqlite","indexeddb","websql","localstorage"]}},"provideStorage":{"__symbolic":"function"},"StorageConfigToken":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["STORAGE_CONFIG_TOKEN"]}}}]
[{"__symbolic":"module","version":3,"metadata":{"Storage":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":112,"character":22,"context":{"typeName":"StorageConfig"}}]}],"ready":[{"__symbolic":"method"}],"_getDriverOrder":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"set":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"length":[{"__symbolic":"method"}],"keys":[{"__symbolic":"method"}],"forEach":[{"__symbolic":"method"}]}},"getDefaultConfig":{"__symbolic":"function","parameters":[],"value":{"name":"_ionicstorage","storeName":"_ionickv","driverOrder":["sqlite","indexeddb","websql","localstorage"]}},"StorageConfigToken":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["STORAGE_CONFIG_TOKEN"]},"provideStorage":{"__symbolic":"function"}}},{"__symbolic":"module","version":1,"metadata":{"Storage":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":112,"character":22,"context":{"typeName":"StorageConfig"}}]}],"ready":[{"__symbolic":"method"}],"_getDriverOrder":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"set":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"length":[{"__symbolic":"method"}],"keys":[{"__symbolic":"method"}],"forEach":[{"__symbolic":"method"}]}},"getDefaultConfig":{"__symbolic":"function","parameters":[],"value":{"name":"_ionicstorage","storeName":"_ionickv","driverOrder":["sqlite","indexeddb","websql","localstorage"]}},"StorageConfigToken":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["STORAGE_CONFIG_TOKEN"]},"provideStorage":{"__symbolic":"function"}}}]
import { ModuleWithProviders } from '@angular/core';
import { Storage, StorageConfig, StorageConfigToken } from './storage';
export { Storage, StorageConfig, StorageConfigToken };
export { StorageConfig, StorageConfigToken, Storage };
export declare class IonicStorageModule {
static forRoot(storageConfig?: StorageConfig): ModuleWithProviders;
}

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

[{"__symbolic":"module","version":3,"metadata":{"Storage":{"__symbolic":"reference","module":"./storage","name":"Storage"},"StorageConfig":{"__symbolic":"reference","module":"./storage","name":"StorageConfig"},"StorageConfigToken":{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"},"IonicStorageModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["storageConfig"],"value":{"ngModule":{"__symbolic":"reference","name":"IonicStorageModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"},"useValue":{"__symbolic":"reference","name":"storageConfig"}},{"provide":{"__symbolic":"reference","module":"./storage","name":"Storage"},"useFactory":{"__symbolic":"reference","module":"./storage","name":"provideStorage"},"deps":[{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"}]}]},"defaults":[null]}}}}},{"__symbolic":"module","version":1,"metadata":{"Storage":{"__symbolic":"reference","module":"./storage","name":"Storage"},"StorageConfig":{"__symbolic":"reference","module":"./storage","name":"StorageConfig"},"StorageConfigToken":{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"},"IonicStorageModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["storageConfig"],"value":{"ngModule":{"__symbolic":"reference","name":"IonicStorageModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"},"useValue":{"__symbolic":"reference","name":"storageConfig"}},{"provide":{"__symbolic":"reference","module":"./storage","name":"Storage"},"useFactory":{"__symbolic":"reference","module":"./storage","name":"provideStorage"},"deps":[{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"}]}]},"defaults":[null]}}}}}]
[{"__symbolic":"module","version":3,"metadata":{"StorageConfig":{"__symbolic":"reference","module":"./storage","name":"StorageConfig"},"StorageConfigToken":{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"},"Storage":{"__symbolic":"reference","module":"./storage","name":"Storage"},"IonicStorageModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["storageConfig"],"value":{"ngModule":{"__symbolic":"reference","name":"IonicStorageModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"},"useValue":{"__symbolic":"reference","name":"storageConfig"}},{"provide":{"__symbolic":"reference","module":"./storage","name":"Storage"},"useFactory":{"__symbolic":"reference","module":"./storage","name":"provideStorage"},"deps":[{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"}]}]},"defaults":[null]}}}}},{"__symbolic":"module","version":1,"metadata":{"StorageConfig":{"__symbolic":"reference","module":"./storage","name":"StorageConfig"},"StorageConfigToken":{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"},"Storage":{"__symbolic":"reference","module":"./storage","name":"Storage"},"IonicStorageModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["storageConfig"],"value":{"ngModule":{"__symbolic":"reference","name":"IonicStorageModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"},"useValue":{"__symbolic":"reference","name":"storageConfig"}},{"provide":{"__symbolic":"reference","module":"./storage","name":"Storage"},"useFactory":{"__symbolic":"reference","module":"./storage","name":"provideStorage"},"deps":[{"__symbolic":"reference","module":"./storage","name":"StorageConfigToken"}]}]},"defaults":[null]}}}}}]

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

{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbol":1}},{"symbol":{"__symbol":2},"metadata":{"__symbol":3}},{"symbol":{"__symbol":4},"metadata":{"__symbol":5}},{"symbol":{"__symbol":6},"metadata":{"__symbolic":"class","statics":{"forRoot":{"__symbolic":"function","parameters":["storageConfig"],"value":{"ngModule":{"__symbol":6},"providers":[{"provide":{"__symbol":5},"useValue":{"__symbolic":"reference","name":"storageConfig"}},{"provide":{"__symbol":1},"useFactory":{"__symbol":7},"deps":[{"__symbol":5}]}]},"defaults":[null]}}},"type":{"summaryKind":2,"type":{"reference":{"__symbol":6},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[],"providers":[],"modules":[{"reference":{"__symbol":6},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[],"exportedPipes":[]}}],"symbols":[{"__symbol":0,"name":"Storage","filePath":"/Users/dan/Dev/ionic-storage/dist/es5/index.d.ts"},{"__symbol":1,"name":"Storage","filePath":"/Users/dan/Dev/ionic-storage/dist/es5/storage.d.ts"},{"__symbol":2,"name":"StorageConfig","filePath":"/Users/dan/Dev/ionic-storage/dist/es5/index.d.ts"},{"__symbol":3,"name":"StorageConfig","filePath":"/Users/dan/Dev/ionic-storage/dist/es5/storage.d.ts"},{"__symbol":4,"name":"StorageConfigToken","filePath":"/Users/dan/Dev/ionic-storage/dist/es5/index.d.ts"},{"__symbol":5,"name":"StorageConfigToken","filePath":"/Users/dan/Dev/ionic-storage/dist/es5/storage.d.ts"},{"__symbol":6,"name":"IonicStorageModule","filePath":"/Users/dan/Dev/ionic-storage/dist/es5/index.d.ts"},{"__symbol":7,"name":"provideStorage","filePath":"/Users/dan/Dev/ionic-storage/dist/es5/storage.d.ts"}]}
{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbol":1}},{"symbol":{"__symbol":2},"metadata":{"__symbol":3}},{"symbol":{"__symbol":4},"metadata":{"__symbol":5}},{"symbol":{"__symbol":6},"metadata":{"__symbolic":"class","statics":{"forRoot":{"__symbolic":"function","parameters":["storageConfig"],"value":{"ngModule":{"__symbol":6},"providers":[{"provide":{"__symbol":3},"useValue":{"__symbolic":"reference","name":"storageConfig"}},{"provide":{"__symbol":5},"useFactory":{"__symbol":7},"deps":[{"__symbol":3}]}]},"defaults":[null]}}},"type":{"summaryKind":2,"type":{"reference":{"__symbol":6},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[],"providers":[],"modules":[{"reference":{"__symbol":6},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[],"exportedPipes":[]}}],"symbols":[{"__symbol":0,"name":"StorageConfig","filePath":"/Users/justinwillis/Projects/ionic-storage/dist/es5/index.d.ts"},{"__symbol":1,"name":"StorageConfig","filePath":"/Users/justinwillis/Projects/ionic-storage/dist/es5/storage.d.ts"},{"__symbol":2,"name":"StorageConfigToken","filePath":"/Users/justinwillis/Projects/ionic-storage/dist/es5/index.d.ts"},{"__symbol":3,"name":"StorageConfigToken","filePath":"/Users/justinwillis/Projects/ionic-storage/dist/es5/storage.d.ts"},{"__symbol":4,"name":"Storage","filePath":"/Users/justinwillis/Projects/ionic-storage/dist/es5/index.d.ts"},{"__symbol":5,"name":"Storage","filePath":"/Users/justinwillis/Projects/ionic-storage/dist/es5/storage.d.ts"},{"__symbol":6,"name":"IonicStorageModule","filePath":"/Users/justinwillis/Projects/ionic-storage/dist/es5/index.d.ts"},{"__symbol":7,"name":"provideStorage","filePath":"/Users/justinwillis/Projects/ionic-storage/dist/es5/storage.d.ts"}]}

@@ -28,6 +28,6 @@ /// <reference types="localforage" />

*
* Next, add it to the providers list in your `NgModule` declaration (for example, in `src/app.module.ts`):
* Next, add it to the imports list in your `NgModule` declaration (for example, in `src/app.module.ts`):
*
* ```typescript
* import { Storage } from '@ionic/storage';
* import { IonicStorageModule } from '@ionic/storage';
*

@@ -39,3 +39,4 @@ * @NgModule({

* imports: [
* IonicModule.forRoot(MyApp)
* IonicModule.forRoot(MyApp),
* IonicStorageModule.forRoot()
* ],

@@ -46,5 +47,3 @@ * bootstrap: [IonicApp],

* ],
* providers: [
* Storage
* ]
* providers: []
* })

@@ -83,3 +82,3 @@ * export class AppModule {}

* ```typescript
* import { Storage } from '@ionic/storage';
* import { IonicStorageModule } from '@ionic/storage';
*

@@ -92,8 +91,8 @@ * export function provideStorage() {

* declarations: ...,
* imports: ...,
* imports: [
* IonicStorageModule.forRoot({ useFactory: provideStorage })
* ],
* bootstrap: ...,
* entryComponents: ...,
* providers: [
* { provide: Storage, useFactory: provideStorage }
* ]
* providers: []
* })

@@ -113,3 +112,3 @@ * export class AppModule {}

*/
constructor(config?: any);
constructor(config: StorageConfig);
/**

@@ -175,3 +174,3 @@ * Get the name of the driver being used.

}
export declare function provideStorage(storageConfig?: StorageConfig): Storage;
export declare const StorageConfigToken: OpaqueToken;
export declare function provideStorage(storageConfig: StorageConfig): Storage;

@@ -30,6 +30,6 @@ "use strict";

*
* Next, add it to the providers list in your `NgModule` declaration (for example, in `src/app.module.ts`):
* Next, add it to the imports list in your `NgModule` declaration (for example, in `src/app.module.ts`):
*
* ```typescript
* import { Storage } from '@ionic/storage';
* import { IonicStorageModule } from '@ionic/storage';
*

@@ -41,3 +41,4 @@ * @NgModule({

* imports: [
* IonicModule.forRoot(MyApp)
* IonicModule.forRoot(MyApp),
* IonicStorageModule.forRoot()
* ],

@@ -48,5 +49,3 @@ * bootstrap: [IonicApp],

* ],
* providers: [
* Storage
* ]
* providers: []
* })

@@ -85,3 +84,3 @@ * export class AppModule {}

* ```typescript
* import { Storage } from '@ionic/storage';
* import { IonicStorageModule } from '@ionic/storage';
*

@@ -94,8 +93,8 @@ * export function provideStorage() {

* declarations: ...,
* imports: ...,
* imports: [
* IonicStorageModule.forRoot({ useFactory: provideStorage })
* ],
* bootstrap: ...,
* entryComponents: ...,
* providers: [
* { provide: Storage, useFactory: provideStorage }
* ]
* providers: []
* })

@@ -215,9 +214,2 @@ * export class AppModule {}

};
Storage.decorators = [
{ type: core_1.Injectable },
];
/** @nocollapse */
Storage.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: core_1.Optional },] },
]; };
return Storage;

@@ -235,2 +227,3 @@ }());

;
exports.StorageConfigToken = new core_1.OpaqueToken('STORAGE_CONFIG_TOKEN');
function provideStorage(storageConfig) {

@@ -241,2 +234,1 @@ var config = !!storageConfig ? storageConfig : getDefaultConfig();

exports.provideStorage = provideStorage;
exports.StorageConfigToken = new core_1.OpaqueToken('STORAGE_CONFIG_TOKEN');

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

[{"__symbolic":"module","version":3,"metadata":{"Storage":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"ready":[{"__symbolic":"method"}],"_getDriverOrder":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"set":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"length":[{"__symbolic":"method"}],"keys":[{"__symbolic":"method"}],"forEach":[{"__symbolic":"method"}]}},"getDefaultConfig":{"__symbolic":"function","parameters":[],"value":{"name":"_ionicstorage","storeName":"_ionickv","driverOrder":["sqlite","indexeddb","websql","localstorage"]}},"provideStorage":{"__symbolic":"function"},"StorageConfigToken":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["STORAGE_CONFIG_TOKEN"]}}},{"__symbolic":"module","version":1,"metadata":{"Storage":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"ready":[{"__symbolic":"method"}],"_getDriverOrder":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"set":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"length":[{"__symbolic":"method"}],"keys":[{"__symbolic":"method"}],"forEach":[{"__symbolic":"method"}]}},"getDefaultConfig":{"__symbolic":"function","parameters":[],"value":{"name":"_ionicstorage","storeName":"_ionickv","driverOrder":["sqlite","indexeddb","websql","localstorage"]}},"provideStorage":{"__symbolic":"function"},"StorageConfigToken":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["STORAGE_CONFIG_TOKEN"]}}}]
[{"__symbolic":"module","version":3,"metadata":{"Storage":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":112,"character":22,"context":{"typeName":"StorageConfig"}}]}],"ready":[{"__symbolic":"method"}],"_getDriverOrder":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"set":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"length":[{"__symbolic":"method"}],"keys":[{"__symbolic":"method"}],"forEach":[{"__symbolic":"method"}]}},"getDefaultConfig":{"__symbolic":"function","parameters":[],"value":{"name":"_ionicstorage","storeName":"_ionickv","driverOrder":["sqlite","indexeddb","websql","localstorage"]}},"StorageConfigToken":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["STORAGE_CONFIG_TOKEN"]},"provideStorage":{"__symbolic":"function"}}},{"__symbolic":"module","version":1,"metadata":{"Storage":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":112,"character":22,"context":{"typeName":"StorageConfig"}}]}],"ready":[{"__symbolic":"method"}],"_getDriverOrder":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"set":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}],"clear":[{"__symbolic":"method"}],"length":[{"__symbolic":"method"}],"keys":[{"__symbolic":"method"}],"forEach":[{"__symbolic":"method"}]}},"getDefaultConfig":{"__symbolic":"function","parameters":[],"value":{"name":"_ionicstorage","storeName":"_ionickv","driverOrder":["sqlite","indexeddb","websql","localstorage"]}},"StorageConfigToken":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["STORAGE_CONFIG_TOKEN"]},"provideStorage":{"__symbolic":"function"}}}]

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

{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbolic":"class"},"type":{"summaryKind":3,"type":{"reference":{"__symbol":0},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":true,"token":{"identifier":{"reference":{"__symbol":5}}}}],"lifecycleHooks":[]}}},{"symbol":{"__symbol":1},"metadata":{"__symbolic":"function","parameters":[],"value":{"name":"_ionicstorage","storeName":"_ionickv","driverOrder":["sqlite","indexeddb","websql","localstorage"]}}},{"symbol":{"__symbol":2},"metadata":{"__symbolic":"function"}},{"symbol":{"__symbol":3},"metadata":{"__symbolic":"new","expression":{"__symbol":4},"arguments":["STORAGE_CONFIG_TOKEN"]}}],"symbols":[{"__symbol":0,"name":"Storage","filePath":"/Users/dan/Dev/ionic-storage/dist/es5/storage.d.ts"},{"__symbol":1,"name":"getDefaultConfig","filePath":"/Users/dan/Dev/ionic-storage/dist/es5/storage.d.ts"},{"__symbol":2,"name":"provideStorage","filePath":"/Users/dan/Dev/ionic-storage/dist/es5/storage.d.ts"},{"__symbol":3,"name":"StorageConfigToken","filePath":"/Users/dan/Dev/ionic-storage/dist/es5/storage.d.ts"},{"__symbol":4,"name":"OpaqueToken","filePath":"/Users/dan/Dev/ionic-storage/node_modules/@angular/core/index.d.ts"},{"__symbol":5,"name":"any","filePath":"/Users/dan/Dev/ionic-storage/dist/es5/storage.d.ts"}]}
{"summaries":[{"symbol":{"__symbol":0},"metadata":{"__symbolic":"class"}},{"symbol":{"__symbol":1},"metadata":{"__symbolic":"function","parameters":[],"value":{"name":"_ionicstorage","storeName":"_ionickv","driverOrder":["sqlite","indexeddb","websql","localstorage"]}}},{"symbol":{"__symbol":2},"metadata":{"__symbolic":"new","expression":{"__symbol":3},"arguments":["STORAGE_CONFIG_TOKEN"]}},{"symbol":{"__symbol":4},"metadata":{"__symbolic":"function"}}],"symbols":[{"__symbol":0,"name":"Storage","filePath":"/Users/justinwillis/Projects/ionic-storage/dist/es5/storage.d.ts"},{"__symbol":1,"name":"getDefaultConfig","filePath":"/Users/justinwillis/Projects/ionic-storage/dist/es5/storage.d.ts"},{"__symbol":2,"name":"StorageConfigToken","filePath":"/Users/justinwillis/Projects/ionic-storage/dist/es5/storage.d.ts"},{"__symbol":3,"name":"OpaqueToken","filePath":"/Users/justinwillis/Projects/ionic-storage/node_modules/@angular/core/index.d.ts"},{"__symbol":4,"name":"provideStorage","filePath":"/Users/justinwillis/Projects/ionic-storage/dist/es5/storage.d.ts"}]}
{
"name": "@ionic/storage",
"version": "2.0.0",
"version": "2.0.1",
"description": "Ionic Storage utility",

@@ -5,0 +5,0 @@ "main": "es2015/index.js",

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