Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot b18fd046f0 chore(release): 0.1.0-develop.63 [skip ci]
# [0.1.0-develop.63](https://git.lumeweb.com/LumeWeb/libkernel/compare/v0.1.0-develop.62...v0.1.0-develop.63) (2023-09-16)

### Bug Fixes

* remove checking the method for kernel -> sw messages ([6e1e244](6e1e244f0e))
2023-09-16 18:27:13 +00:00
Derrick Hammer b73e6b3b31
Merge remote-tracking branch 'origin/develop' into develop 2023-09-16 14:26:11 -04:00
Derrick Hammer 6e1e244f0e
fix: remove checking the method for kernel -> sw messages 2023-09-16 14:26:05 -04:00
4 changed files with 14 additions and 14 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.63](https://git.lumeweb.com/LumeWeb/libkernel/compare/v0.1.0-develop.62...v0.1.0-develop.63) (2023-09-16)
### Bug Fixes
* remove checking the method for kernel -> sw messages ([6e1e244](https://git.lumeweb.com/LumeWeb/libkernel/commit/6e1e244f0e7ad607f8fd249fe38b8dbe1a6def51))
# [0.1.0-develop.62](https://git.lumeweb.com/LumeWeb/libkernel/compare/v0.1.0-develop.61...v0.1.0-develop.62) (2023-09-11)
# [0.1.0-develop.61](https://git.lumeweb.com/LumeWeb/libkernel/compare/v0.1.0-develop.60...v0.1.0-develop.61) (2023-09-11)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/libkernel",
"version": "0.1.0-develop.62",
"version": "0.1.0-develop.63",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/libkernel",
"version": "0.1.0-develop.62",
"version": "0.1.0-develop.63",
"dependencies": {
"@lumeweb/libweb": "0.2.0-develop.58",
"emittery": "^1.0.1",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/libkernel",
"version": "0.1.0-develop.62",
"version": "0.1.0-develop.63",
"main": "lib/index.js",
"type": "module",
"types": "lib/index.d.ts",

View File

@ -136,17 +136,10 @@ function handleMessage(event: MessageEvent) {
return;
}
if (event.source === kernelIframe?.contentWindow) {
if (
["response", "queryUpdate", "responseNonce", "responseUpdate"].includes(
event.data.method,
) &&
event.data.sw
) {
delete event.data.sw;
serviceWorker?.postMessage(event.data);
return;
}
if (event.source === kernelIframe?.contentWindow && event.data.sw) {
delete event.data.sw;
serviceWorker?.postMessage(event.data);
return;
}
if (FROM_SW) {
if (["moduleCall", "queryUpdate", "response"].includes(event.data.method)) {