@mainnet-cash/indexeddb-storage 2.7.0 → 2.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.html +1 -1
- package/dist/indexeddb-storage-2.7.3.js +108 -0
- package/dist/module/IndexedDBProvider.d.ts +6 -4
- package/dist/module/IndexedDBProvider.js +74 -53
- package/dist/module/IndexedDBProvider.js.map +1 -1
- package/dist/tsconfig.browser.tsbuildinfo +1 -1
- package/package.json +2 -3
- package/src/IndexedDBProvider.ts +74 -55
- package/dist/indexeddb-storage-2.7.0.js +0 -118
package/dist/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<title>The Empty Mainnet App</title>
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><script defer src="indexeddb-storage-2.7.
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><script defer src="indexeddb-storage-2.7.3.js"></script></head>
|
|
7
7
|
<body><script defer src="mainnet.js"></script><script>document.addEventListener("DOMContentLoaded", async (event) => Object.assign(globalThis, await __mainnetPromise))</script>
|
|
8
8
|
</body>
|
|
9
9
|
</html>
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
3
|
+
* This devtool is neither made for production nor for readable output files.
|
|
4
|
+
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
5
|
+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
6
|
+
* or disable the default devtool with "devtool: false".
|
|
7
|
+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
8
|
+
*/
|
|
9
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
11
|
+
module.exports = factory();
|
|
12
|
+
else if(typeof define === 'function' && define.amd)
|
|
13
|
+
define([], factory);
|
|
14
|
+
else {
|
|
15
|
+
var a = factory();
|
|
16
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
17
|
+
}
|
|
18
|
+
})(self, () => {
|
|
19
|
+
return /******/ (() => { // webpackBootstrap
|
|
20
|
+
/******/ "use strict";
|
|
21
|
+
/******/ var __webpack_modules__ = ({
|
|
22
|
+
|
|
23
|
+
/***/ "./src/IndexedDBProvider.ts":
|
|
24
|
+
/*!**********************************!*\
|
|
25
|
+
!*** ./src/IndexedDBProvider.ts ***!
|
|
26
|
+
\**********************************/
|
|
27
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
28
|
+
|
|
29
|
+
eval("/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ IndexedDBProvider)\n/* harmony export */ });\nclass IndexedDBProvider {\n constructor(dbName = \"wallet\", storeName = \"wallet\") {\n this.db = null;\n this.dbName = dbName;\n this.storeName = storeName;\n }\n async openDB() {\n if (this.db)\n return this.db;\n return new Promise((resolve, reject) => {\n const request = indexedDB.open(this.dbName, 31);\n request.onupgradeneeded = (event) => {\n const db = request.result;\n if (!db.objectStoreNames.contains(this.storeName)) {\n db.createObjectStore(this.storeName, { keyPath: \"name\" });\n }\n };\n request.onsuccess = () => {\n this.db = request.result;\n resolve(this.db);\n };\n request.onerror = () => reject(request.error);\n });\n }\n async init() {\n await this.openDB();\n return this;\n }\n async close() {\n if (this.db) {\n this.db.close();\n this.db = null;\n }\n return this;\n }\n getInfo() {\n return \"indexedDB\";\n }\n async addWallet(name, walletId) {\n const db = await this.openDB();\n return new Promise((resolve, reject) => {\n const tx = db.transaction(this.storeName, \"readwrite\");\n const store = tx.objectStore(this.storeName);\n const getReq = store.get(name);\n getReq.onsuccess = () => {\n if (getReq.result) {\n resolve(false);\n }\n else {\n const addReq = store.add({ name, wallet: walletId });\n addReq.onsuccess = () => resolve(true);\n addReq.onerror = () => reject(addReq.error);\n }\n };\n getReq.onerror = () => reject(getReq.error);\n });\n }\n async getWallet(name) {\n const db = await this.openDB();\n return new Promise((resolve, reject) => {\n const tx = db.transaction(this.storeName, \"readonly\");\n const store = tx.objectStore(this.storeName);\n const req = store.get(name);\n req.onsuccess = () => resolve(req.result);\n req.onerror = () => reject(req.error);\n });\n }\n async getWallets() {\n const db = await this.openDB();\n return new Promise((resolve, reject) => {\n const tx = db.transaction(this.storeName, \"readonly\");\n const store = tx.objectStore(this.storeName);\n const req = store.getAll();\n req.onsuccess = () => resolve(req.result || []);\n req.onerror = () => reject(req.error);\n });\n }\n async updateWallet(name, walletId) {\n const db = await this.openDB();\n return new Promise((resolve, reject) => {\n const tx = db.transaction(this.storeName, \"readwrite\");\n const store = tx.objectStore(this.storeName);\n const getReq = store.get(name);\n getReq.onsuccess = () => {\n if (!getReq.result) {\n resolve();\n }\n else {\n const putReq = store.put({ name, wallet: walletId });\n putReq.onsuccess = () => resolve();\n putReq.onerror = () => reject(putReq.error);\n }\n };\n getReq.onerror = () => reject(getReq.error);\n });\n }\n async walletExists(name) {\n return (await this.getWallet(name)) !== undefined;\n }\n}\n\n\n//# sourceURL=webpack://@mainnet-cash/indexeddb-storage/./src/IndexedDBProvider.ts?");
|
|
30
|
+
|
|
31
|
+
/***/ }),
|
|
32
|
+
|
|
33
|
+
/***/ "./src/index.ts":
|
|
34
|
+
/*!**********************!*\
|
|
35
|
+
!*** ./src/index.ts ***!
|
|
36
|
+
\**********************/
|
|
37
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
38
|
+
|
|
39
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"IndexedDBProvider\": () => (/* reexport safe */ _IndexedDBProvider_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])\n/* harmony export */ });\n/* harmony import */ var _IndexedDBProvider_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./IndexedDBProvider.js */ \"./src/IndexedDBProvider.ts\");\n\n\n\n//# sourceURL=webpack://@mainnet-cash/indexeddb-storage/./src/index.ts?");
|
|
40
|
+
|
|
41
|
+
/***/ })
|
|
42
|
+
|
|
43
|
+
/******/ });
|
|
44
|
+
/************************************************************************/
|
|
45
|
+
/******/ // The module cache
|
|
46
|
+
/******/ var __webpack_module_cache__ = {};
|
|
47
|
+
/******/
|
|
48
|
+
/******/ // The require function
|
|
49
|
+
/******/ function __webpack_require__(moduleId) {
|
|
50
|
+
/******/ // Check if module is in cache
|
|
51
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
52
|
+
/******/ if (cachedModule !== undefined) {
|
|
53
|
+
/******/ return cachedModule.exports;
|
|
54
|
+
/******/ }
|
|
55
|
+
/******/ // Create a new module (and put it into the cache)
|
|
56
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
57
|
+
/******/ // no module.id needed
|
|
58
|
+
/******/ // no module.loaded needed
|
|
59
|
+
/******/ exports: {}
|
|
60
|
+
/******/ };
|
|
61
|
+
/******/
|
|
62
|
+
/******/ // Execute the module function
|
|
63
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
64
|
+
/******/
|
|
65
|
+
/******/ // Return the exports of the module
|
|
66
|
+
/******/ return module.exports;
|
|
67
|
+
/******/ }
|
|
68
|
+
/******/
|
|
69
|
+
/************************************************************************/
|
|
70
|
+
/******/ /* webpack/runtime/define property getters */
|
|
71
|
+
/******/ (() => {
|
|
72
|
+
/******/ // define getter functions for harmony exports
|
|
73
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
74
|
+
/******/ for(var key in definition) {
|
|
75
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
76
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
77
|
+
/******/ }
|
|
78
|
+
/******/ }
|
|
79
|
+
/******/ };
|
|
80
|
+
/******/ })();
|
|
81
|
+
/******/
|
|
82
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
83
|
+
/******/ (() => {
|
|
84
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
85
|
+
/******/ })();
|
|
86
|
+
/******/
|
|
87
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
88
|
+
/******/ (() => {
|
|
89
|
+
/******/ // define __esModule on exports
|
|
90
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
91
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
92
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
93
|
+
/******/ }
|
|
94
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
95
|
+
/******/ };
|
|
96
|
+
/******/ })();
|
|
97
|
+
/******/
|
|
98
|
+
/************************************************************************/
|
|
99
|
+
/******/
|
|
100
|
+
/******/ // startup
|
|
101
|
+
/******/ // Load entry module and return exports
|
|
102
|
+
/******/ // This entry module can't be inlined because the eval devtool is used.
|
|
103
|
+
/******/ var __webpack_exports__ = __webpack_require__("./src/index.ts");
|
|
104
|
+
/******/
|
|
105
|
+
/******/ return __webpack_exports__;
|
|
106
|
+
/******/ })()
|
|
107
|
+
;
|
|
108
|
+
});
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import Dexie from "dexie";
|
|
2
1
|
import { StorageProvider, WalletDbEntryI } from "mainnet-js";
|
|
3
|
-
export default class IndexedDBProvider
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export default class IndexedDBProvider implements StorageProvider {
|
|
3
|
+
private dbName;
|
|
4
|
+
private storeName;
|
|
5
|
+
private db;
|
|
6
|
+
constructor(dbName?: string, storeName?: string);
|
|
7
|
+
private openDB;
|
|
6
8
|
init(): Promise<this>;
|
|
7
9
|
close(): Promise<this>;
|
|
8
10
|
getInfo(): string;
|
|
@@ -1,76 +1,97 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
this.
|
|
6
|
-
|
|
1
|
+
export default class IndexedDBProvider {
|
|
2
|
+
constructor(dbName = "wallet", storeName = "wallet") {
|
|
3
|
+
this.db = null;
|
|
4
|
+
this.dbName = dbName;
|
|
5
|
+
this.storeName = storeName;
|
|
6
|
+
}
|
|
7
|
+
async openDB() {
|
|
8
|
+
if (this.db)
|
|
9
|
+
return this.db;
|
|
10
|
+
return new Promise((resolve, reject) => {
|
|
11
|
+
const request = indexedDB.open(this.dbName, 31);
|
|
12
|
+
request.onupgradeneeded = (event) => {
|
|
13
|
+
const db = request.result;
|
|
14
|
+
if (!db.objectStoreNames.contains(this.storeName)) {
|
|
15
|
+
db.createObjectStore(this.storeName, { keyPath: "name" });
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
request.onsuccess = () => {
|
|
19
|
+
this.db = request.result;
|
|
20
|
+
resolve(this.db);
|
|
21
|
+
};
|
|
22
|
+
request.onerror = () => reject(request.error);
|
|
7
23
|
});
|
|
8
|
-
this.db = this.table("wallet");
|
|
9
24
|
}
|
|
10
25
|
async init() {
|
|
26
|
+
await this.openDB();
|
|
11
27
|
return this;
|
|
12
28
|
}
|
|
13
29
|
async close() {
|
|
30
|
+
if (this.db) {
|
|
31
|
+
this.db.close();
|
|
32
|
+
this.db = null;
|
|
33
|
+
}
|
|
14
34
|
return this;
|
|
15
35
|
}
|
|
16
36
|
getInfo() {
|
|
17
37
|
return "indexedDB";
|
|
18
38
|
}
|
|
19
39
|
async addWallet(name, walletId) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
40
|
+
const db = await this.openDB();
|
|
41
|
+
return new Promise((resolve, reject) => {
|
|
42
|
+
const tx = db.transaction(this.storeName, "readwrite");
|
|
43
|
+
const store = tx.objectStore(this.storeName);
|
|
44
|
+
const getReq = store.get(name);
|
|
45
|
+
getReq.onsuccess = () => {
|
|
46
|
+
if (getReq.result) {
|
|
47
|
+
resolve(false);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
const addReq = store.add({ name, wallet: walletId });
|
|
51
|
+
addReq.onsuccess = () => resolve(true);
|
|
52
|
+
addReq.onerror = () => reject(addReq.error);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
getReq.onerror = () => reject(getReq.error);
|
|
32
56
|
});
|
|
33
57
|
}
|
|
34
58
|
async getWallet(name) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
59
|
+
const db = await this.openDB();
|
|
60
|
+
return new Promise((resolve, reject) => {
|
|
61
|
+
const tx = db.transaction(this.storeName, "readonly");
|
|
62
|
+
const store = tx.objectStore(this.storeName);
|
|
63
|
+
const req = store.get(name);
|
|
64
|
+
req.onsuccess = () => resolve(req.result);
|
|
65
|
+
req.onerror = () => reject(req.error);
|
|
66
|
+
});
|
|
42
67
|
}
|
|
43
68
|
async getWallets() {
|
|
44
|
-
|
|
45
|
-
|
|
69
|
+
const db = await this.openDB();
|
|
70
|
+
return new Promise((resolve, reject) => {
|
|
71
|
+
const tx = db.transaction(this.storeName, "readonly");
|
|
72
|
+
const store = tx.objectStore(this.storeName);
|
|
73
|
+
const req = store.getAll();
|
|
74
|
+
req.onsuccess = () => resolve(req.result || []);
|
|
75
|
+
req.onerror = () => reject(req.error);
|
|
46
76
|
});
|
|
47
|
-
if (walletObjects) {
|
|
48
|
-
const WalletArray = await Promise.all(walletObjects.map(async (obj) => {
|
|
49
|
-
return obj;
|
|
50
|
-
}));
|
|
51
|
-
return WalletArray;
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
return [];
|
|
55
|
-
}
|
|
56
77
|
}
|
|
57
78
|
async updateWallet(name, walletId) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
79
|
+
const db = await this.openDB();
|
|
80
|
+
return new Promise((resolve, reject) => {
|
|
81
|
+
const tx = db.transaction(this.storeName, "readwrite");
|
|
82
|
+
const store = tx.objectStore(this.storeName);
|
|
83
|
+
const getReq = store.get(name);
|
|
84
|
+
getReq.onsuccess = () => {
|
|
85
|
+
if (!getReq.result) {
|
|
86
|
+
resolve();
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
const putReq = store.put({ name, wallet: walletId });
|
|
90
|
+
putReq.onsuccess = () => resolve();
|
|
91
|
+
putReq.onerror = () => reject(putReq.error);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
getReq.onerror = () => reject(getReq.error);
|
|
74
95
|
});
|
|
75
96
|
}
|
|
76
97
|
async walletExists(name) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IndexedDBProvider.js","sourceRoot":"","sources":["../../src/IndexedDBProvider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IndexedDBProvider.js","sourceRoot":"","sources":["../../src/IndexedDBProvider.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAO,iBAAiB;IAKpC,YAAY,MAAM,GAAG,QAAQ,EAAE,SAAS,GAAG,QAAQ;QAF3C,OAAE,GAAuB,IAAI,CAAC;QAGpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAEO,KAAK,CAAC,MAAM;QAClB,IAAI,IAAI,CAAC,EAAE;YAAE,OAAO,IAAI,CAAC,EAAE,CAAC;QA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