diff --git a/README.md b/README.md
index 3c5ac90..98634b5 100644
--- a/README.md
+++ b/README.md
@@ -365,7 +365,7 @@ export class IndexedDB<
> { ... }
```
-[GitHub](https://github.com/angular-package/indexeddb/blob/main/src/lib/indexeddb.ts)
+[GitHub](https://github.com/angular-package/indexeddb/blob/main/src/lib/indexeddb.class.ts)
diff --git a/demo/package-lock.json b/demo/package-lock.json
index 901fdbd..7425833 100644
--- a/demo/package-lock.json
+++ b/demo/package-lock.json
@@ -8,6 +8,7 @@
"name": "indexeddb",
"version": "0.0.0",
"dependencies": {
+ "@angular-package/indexeddb": "^1.0.0-alpha",
"@angular/animations": "^14.2.0",
"@angular/common": "^14.2.0",
"@angular/compiler": "^14.2.0",
@@ -16,7 +17,7 @@
"@angular/platform-browser": "^14.2.0",
"@angular/platform-browser-dynamic": "^14.2.0",
"@angular/router": "^14.2.0",
- "rxjs": "~7.5.0",
+ "rxjs": "^7.8.1",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
},
@@ -339,6 +340,33 @@
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
"dev": true
},
+ "node_modules/@angular-package/indexeddb": {
+ "version": "1.0.0-alpha",
+ "resolved": "https://registry.npmjs.org/@angular-package/indexeddb/-/indexeddb-1.0.0-alpha.tgz",
+ "integrity": "sha512-lk3qZBGPgHDm6gZ1aYv8jJVPOKumhV3/2cbrIrNfFZ+O2VP6xXj83SC60Oy8ArIXLkSyvYFZq25Q5HIcpaM3Eg==",
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://checkout.revolut.com/pay/048b10a3-0e10-42c8-a917-e3e9cb4c8e29"
+ },
+ {
+ "type": "individual",
+ "url": "https://docs.angular-package.dev/donate/cryptocurrency"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/angularpackage"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/angular-package"
+ }
+ ],
+ "license": "MIT",
+ "peerDependencies": {
+ "rxjs": "^7.8.1"
+ }
+ },
"node_modules/@angular-package/spectre.css": {
"version": "1.0.0-alpha.3.0.1",
"resolved": "https://registry.npmjs.org/@angular-package/spectre.css/-/spectre.css-1.0.0-alpha.3.0.1.tgz",
@@ -10349,9 +10377,10 @@
}
},
"node_modules/rxjs": {
- "version": "7.5.7",
- "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.7.tgz",
- "integrity": "sha512-z9MzKh/UcOqB3i20H6rtrlaE/CgjLOvheWK/9ILrbhROGTweAi1BaFsTT9FbwZi5Trr1qNRs+MXkhmR06awzQA==",
+ "version": "7.8.1",
+ "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz",
+ "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==",
+ "license": "Apache-2.0",
"dependencies": {
"tslib": "^2.1.0"
}
diff --git a/demo/package.json b/demo/package.json
index bec907c..ea47d10 100644
--- a/demo/package.json
+++ b/demo/package.json
@@ -10,6 +10,7 @@
},
"private": true,
"dependencies": {
+ "@angular-package/indexeddb": "^1.0.0-alpha",
"@angular/animations": "^14.2.0",
"@angular/common": "^14.2.0",
"@angular/compiler": "^14.2.0",
@@ -18,7 +19,7 @@
"@angular/platform-browser": "^14.2.0",
"@angular/platform-browser-dynamic": "^14.2.0",
"@angular/router": "^14.2.0",
- "rxjs": "~7.5.0",
+ "rxjs": "^7.8.1",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
},
diff --git a/demo/src/app/app.component.ts b/demo/src/app/app.component.ts
index a0156d3..a5bbe94 100644
--- a/demo/src/app/app.component.ts
+++ b/demo/src/app/app.component.ts
@@ -1,7 +1,8 @@
import { Component, ViewEncapsulation } from '@angular/core';
// Service.
-import { IDBService } from './indexeddb/idb.service';
+// import { IDBService } from './indexeddb/idb.service';
+import { IDBService } from '@angular-package/indexeddb';
// Constant.
import { ELEMENT_DATA } from './element-data.const';
diff --git a/demo/src/app/app.module.ts b/demo/src/app/app.module.ts
index 5ac4511..aba35ef 100644
--- a/demo/src/app/app.module.ts
+++ b/demo/src/app/app.module.ts
@@ -6,9 +6,12 @@ import { AppComponent } from './app.component';
// Module.
import { AppRoutingModule } from './app-routing.module';
-import { IDBModule } from './indexeddb/idb.module';
import { TableModule } from './table/table.module';
+
+// import { IDBModule } from './indexeddb/idb.module';
+import { IDBModule } from '@angular-package/indexeddb';
+
// Config.
import { IDB_CONFIG } from './indexeddb.config';
diff --git a/demo/src/app/indexeddb.config.ts b/demo/src/app/indexeddb.config.ts
index 6e9c8f3..0f7edd2 100644
--- a/demo/src/app/indexeddb.config.ts
+++ b/demo/src/app/indexeddb.config.ts
@@ -1,4 +1,5 @@
-import { IndexedDB } from "./indexeddb/indexeddb.class";
+// import { IndexedDB } from "./indexeddb/indexeddb.class";
+import { IndexedDB } from '@angular-package/indexeddb';
/**
*
diff --git a/demo/src/app/table/table.component.ts b/demo/src/app/table/table.component.ts
index 2cb2904..74edae9 100644
--- a/demo/src/app/table/table.component.ts
+++ b/demo/src/app/table/table.component.ts
@@ -3,7 +3,8 @@ import { NgForm } from '@angular/forms';
import { Subject } from 'rxjs';
// Service.
-import { IDBService } from '../indexeddb/idb.service';
+// import { IDBService } from '../indexeddb/idb.service';
+import { IDBService } from '@angular-package/indexeddb';
// Type.
import { StoreSchema } from '../type/store-schema.type';
diff --git a/demo/src/app/table/table.module.ts b/demo/src/app/table/table.module.ts
index f6fe887..69b13ce 100644
--- a/demo/src/app/table/table.module.ts
+++ b/demo/src/app/table/table.module.ts
@@ -1,8 +1,8 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
+import { FormsModule } from '@angular/forms';
import { TableComponent } from './table.component';
-import { FormsModule } from '@angular/forms';
@NgModule({
declarations: [
diff --git a/package-lock.json b/package-lock.json
index 56f3207..b7a0fc4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@angular-package/indexeddb",
- "version": "1.0.0-beta",
+ "version": "1.0.1-alpha",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@angular-package/indexeddb",
- "version": "1.0.0-beta",
+ "version": "1.0.1-alpha",
"funding": [
{
"type": "individual",
@@ -27,13 +27,11 @@
],
"license": "MIT",
"devDependencies": {
+ "rxjs": "^7.8.1",
"stylelint": "^15.10.3",
"stylelint-config-prettier-scss": "^1.0.0",
"stylelint-config-standard-scss": "^11.0.0",
- "stylelint-order": "^6.0.3"
- },
- "peerDependencies": {
- "rxjs": "^7.8.1",
+ "stylelint-order": "^6.0.3",
"tslib": "^2.3.0"
}
},
@@ -1755,8 +1753,8 @@
"version": "7.8.1",
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz",
"integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==",
+ "dev": true,
"license": "Apache-2.0",
- "peer": true,
"dependencies": {
"tslib": "^2.1.0"
}
@@ -2231,8 +2229,8 @@
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz",
"integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==",
- "license": "0BSD",
- "peer": true
+ "dev": true,
+ "license": "0BSD"
},
"node_modules/type-fest": {
"version": "1.4.0",
diff --git a/package.json b/package.json
index 68efdda..ead1a32 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@angular-package/indexeddb",
- "version": "1.0.0-alpha",
+ "version": "1.0.1-alpha",
"author": "@angular-package ",
"homepage": "",
"description": "Wrapper to IndexedDB client-side storage.",
@@ -10,13 +10,11 @@
"registry": "https://registry.npmjs.org"
},
"devDependencies": {
+ "rxjs": "^7.8.1",
"stylelint": "^15.10.3",
"stylelint-config-prettier-scss": "^1.0.0",
"stylelint-config-standard-scss": "^11.0.0",
- "stylelint-order": "^6.0.3"
- },
- "peerDependencies": {
- "rxjs": "^7.8.1",
+ "stylelint-order": "^6.0.3",
"tslib": "^2.3.0"
},
"scripts": {
diff --git a/src/lib/index.ts b/src/lib/index.ts
index 58b561c..63b5cff 100644
--- a/src/lib/index.ts
+++ b/src/lib/index.ts
@@ -1 +1,3 @@
+export * from './idb.service';
+export * from './idb.module';
export * from './indexeddb.class';