Compare commits

...

5 Commits

Author SHA1 Message Date
semantic-release-bot b116388896 chore(release): 0.1.0-develop.17 [skip ci]
# [0.1.0-develop.17](https://git.lumeweb.com/LumeWeb/hosted-kernel/compare/v0.1.0-develop.16...v0.1.0-develop.17) (2023-11-04)

### Bug Fixes

* correct handling of error code ([312f8ab](312f8ab43a))
* need to call sendAuthUpdate ([31cabc6](31cabc6c0a))
* need to use try/catch not if ([4e0021e](4e0021ef23))
2023-11-04 07:35:49 +00:00
Derrick Hammer 3fc08a1e84
Merge remote-tracking branch 'origin/develop' into develop 2023-11-04 03:34:54 -04:00
Derrick Hammer 31cabc6c0a
fix: need to call sendAuthUpdate 2023-11-04 03:34:46 -04:00
Derrick Hammer 4e0021ef23
fix: need to use try/catch not if 2023-11-04 03:34:37 -04:00
Derrick Hammer 312f8ab43a
fix: correct handling of error code 2023-11-04 03:34:21 -04:00
4 changed files with 21 additions and 6 deletions

View File

@ -1,3 +1,12 @@
# [0.1.0-develop.17](https://git.lumeweb.com/LumeWeb/hosted-kernel/compare/v0.1.0-develop.16...v0.1.0-develop.17) (2023-11-04)
### Bug Fixes
* correct handling of error code ([312f8ab](https://git.lumeweb.com/LumeWeb/hosted-kernel/commit/312f8ab43a5f781817e9b899a938719699c197c8))
* need to call sendAuthUpdate ([31cabc6](https://git.lumeweb.com/LumeWeb/hosted-kernel/commit/31cabc6c0a00ebb4e9379c4d81d7e4990457f2d3))
* need to use try/catch not if ([4e0021e](https://git.lumeweb.com/LumeWeb/hosted-kernel/commit/4e0021ef23f47ebc53b065b6221190786ccb6573))
# [0.1.0-develop.16](https://git.lumeweb.com/LumeWeb/hosted-kernel/compare/v0.1.0-develop.15...v0.1.0-develop.16) (2023-11-04) # [0.1.0-develop.16](https://git.lumeweb.com/LumeWeb/hosted-kernel/compare/v0.1.0-develop.15...v0.1.0-develop.16) (2023-11-04)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@lumeweb/hosted-kernel", "name": "@lumeweb/hosted-kernel",
"version": "0.1.0-develop.16", "version": "0.1.0-develop.17",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/hosted-kernel", "name": "@lumeweb/hosted-kernel",
"version": "0.1.0-develop.16", "version": "0.1.0-develop.17",
"dependencies": { "dependencies": {
"@lumeweb/libkernel": "^0.1.0-develop.67", "@lumeweb/libkernel": "^0.1.0-develop.67",
"@noble/ciphers": "^0.1.4", "@noble/ciphers": "^0.1.4",

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/hosted-kernel", "name": "@lumeweb/hosted-kernel",
"version": "0.1.0-develop.16", "version": "0.1.0-develop.17",
"type": "module", "type": "module",
"readme": "ERROR: No README data found!", "readme": "ERROR: No README data found!",
"repository": { "repository": {

View File

@ -28,8 +28,11 @@ function testIndexedDBSupport() {
request.onerror = function (event) { request.onerror = function (event) {
// Error occurred, reject the promise // Error occurred, reject the promise
// @ts-ignore
reject(new Error("IndexedDB test error: " + event?.target?.errorCode)); reject(
// @ts-ignore
new Error("IndexedDB test error: " + event?.target?.error?.code),
);
}; };
request.onsuccess = function (event) { request.onsuccess = function (event) {
@ -55,8 +58,11 @@ function testIndexedDBSupport() {
export async function boot() { export async function boot() {
let userKey; let userKey;
if (!(await testIndexedDBSupport())) { try {
await testIndexedDBSupport();
} catch {
setKernelLoaded("indexeddb_error"); setKernelLoaded("indexeddb_error");
sendAuthUpdate();
logErr("indexed db is not supported or is blocked"); logErr("indexed db is not supported or is blocked");
return; return;
} }