@cocreate/indexeddb 1.7.6 → 1.7.8
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/CHANGELOG.md +14 -0
- package/CoCreate.config.js +1 -1
- package/package.json +4 -4
- package/src/index.js +3 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.7.8](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.7.7...v1.7.8) (2023-04-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bump [@cocreate](https://github.com/cocreate) dependencies ([4ea8a8c](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/4ea8a8cf20f84c37ef7e48dff13d1fdf35d3898b))
|
|
7
|
+
|
|
8
|
+
## [1.7.7](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.7.6...v1.7.7) (2023-04-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* test indexeddb using databases() instead of open(). open caused a db to be created ([7112717](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/711271719e108484e7752a66ad2dcb9b5184c197))
|
|
14
|
+
|
|
1
15
|
## [1.7.6](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.7.5...v1.7.6) (2023-04-11)
|
|
2
16
|
|
|
3
17
|
|
package/CoCreate.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/indexeddb",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.8",
|
|
4
4
|
"description": "A simple indexeddb component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"indexeddb",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"webpack-log": "^3.0.1"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@cocreate/docs": "^1.6.
|
|
64
|
-
"@cocreate/hosting": "^1.8.
|
|
65
|
-
"@cocreate/utils": "^1.19.
|
|
63
|
+
"@cocreate/docs": "^1.6.4",
|
|
64
|
+
"@cocreate/hosting": "^1.8.4",
|
|
65
|
+
"@cocreate/utils": "^1.19.4"
|
|
66
66
|
}
|
|
67
67
|
}
|
package/src/index.js
CHANGED
|
@@ -1171,14 +1171,9 @@ function init() {
|
|
|
1171
1171
|
return;
|
|
1172
1172
|
} else {
|
|
1173
1173
|
try {
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
db.close()
|
|
1178
|
-
}
|
|
1179
|
-
if (window.CoCreateConfig)
|
|
1180
|
-
if (window.CoCreateConfig.indexeddb !== false)
|
|
1181
|
-
setStatus(true)
|
|
1174
|
+
indexedDB.databases()
|
|
1175
|
+
if (window.CoCreateConfig && window.CoCreateConfig.indexeddb !== false)
|
|
1176
|
+
setStatus(true)
|
|
1182
1177
|
} catch(e) {
|
|
1183
1178
|
setStatus(false);
|
|
1184
1179
|
}
|