Compare commits

..

3 Commits

4 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,5 @@
# [0.1.0-develop.4](https://git.lumeweb.com/LumeWeb/kernel/compare/v0.1.0-develop.3...v0.1.0-develop.4) (2023-08-10)
# [0.1.0-develop.3](https://git.lumeweb.com/LumeWeb/kernel/compare/v0.1.0-develop.2...v0.1.0-develop.3) (2023-08-10) # [0.1.0-develop.3](https://git.lumeweb.com/LumeWeb/kernel/compare/v0.1.0-develop.2...v0.1.0-develop.3) (2023-08-10)
# [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/kernel/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-07-20) # [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/kernel/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-07-20)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@lumeweb/kernel", "name": "@lumeweb/kernel",
"version": "0.1.0-develop.3", "version": "0.1.0-develop.4",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/kernel", "name": "@lumeweb/kernel",
"version": "0.1.0-develop.3", "version": "0.1.0-develop.4",
"dependencies": { "dependencies": {
"@lumeweb/libkernel": "0.1.0-develop.35" "@lumeweb/libkernel": "0.1.0-develop.35"
}, },

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/kernel", "name": "@lumeweb/kernel",
"version": "0.1.0-develop.3", "version": "0.1.0-develop.4",
"type": "module", "type": "module",
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -10,7 +10,11 @@ import {
objAsString, objAsString,
sha512, sha512,
} from "@lumeweb/libkernel"; } from "@lumeweb/libkernel";
import { deriveChildKey, downloadObject, verifyCid } from "@lumeweb/libweb"; import {
deriveChildKey,
downloadSmallObject,
verifyCid,
} from "@lumeweb/libweb";
import type { moduleQuery, presentKeyData } from "@lumeweb/libkernel/module"; import type { moduleQuery, presentKeyData } from "@lumeweb/libkernel/module";
import { readableStreamToUint8Array } from "binconv"; import { readableStreamToUint8Array } from "binconv";
@ -462,7 +466,7 @@ function handleModuleCall(
// TODO: Check localStorage for the module. // TODO: Check localStorage for the module.
// Download the code for the worker. // Download the code for the worker.
const [moduleData, errDS] = await downloadObject(finalModule); const [moduleData, errDS] = await downloadSmallObject(finalModule);
if (errDS !== null) { if (errDS !== null) {
const err = addContextToErr(errDS, "unable to load module"); const err = addContextToErr(errDS, "unable to load module");
respondErr(event, messagePortal, isWorker, err); respondErr(event, messagePortal, isWorker, err);