Compare commits

...

5 Commits

5 changed files with 25 additions and 22 deletions

View File

@ -1,3 +1,5 @@
# [0.1.0-develop.4](https://git.lumeweb.com/LumeWeb/hosted-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/hosted-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/hosted-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/hosted-kernel/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-07-21) # [0.1.0-develop.2](https://git.lumeweb.com/LumeWeb/hosted-kernel/compare/v0.1.0-develop.1...v0.1.0-develop.2) (2023-07-21)

35
npm-shrinkwrap.json generated
View File

@ -1,14 +1,14 @@
{ {
"name": "@lumeweb/hosted-kernel", "name": "@lumeweb/hosted-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/hosted-kernel", "name": "@lumeweb/hosted-kernel",
"version": "0.1.0-develop.3", "version": "0.1.0-develop.4",
"dependencies": { "dependencies": {
"@lumeweb/libweb": "0.2.0-develop.27", "@lumeweb/libweb": "0.2.0-develop.30",
"@noble/ciphers": "^0.1.4", "@noble/ciphers": "^0.1.4",
"binconv": "^0.2.0" "binconv": "^0.2.0"
}, },
@ -1678,9 +1678,9 @@
} }
}, },
"node_modules/@lumeweb/libportal": { "node_modules/@lumeweb/libportal": {
"version": "0.2.0-develop.16", "version": "0.2.0-develop.17",
"resolved": "https://registry.npmjs.org/@lumeweb/libportal/-/libportal-0.2.0-develop.16.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libportal/-/libportal-0.2.0-develop.17.tgz",
"integrity": "sha512-wyzza/ttvU6I1gIs4tnYSkcT6s7MIBnUdJSNAbe6k6NsQ1w4bhBVJhEKbBru/lAEASO/PAhHGBwaOCv20rZZfA==", "integrity": "sha512-V8ac4NvRNCeE87rXNi9GX4J+ueztIWofBWMs24bmxWxrA46XOXC1Gm475IlAp4mSkyyUmy3vnnwQ4nYOi1U8Ew==",
"dependencies": { "dependencies": {
"@lumeweb/node-library-preset": "git+https://git.lumeweb.com/LumeWeb/node-library-preset.git", "@lumeweb/node-library-preset": "git+https://git.lumeweb.com/LumeWeb/node-library-preset.git",
"@noble/curves": "^1.1.0", "@noble/curves": "^1.1.0",
@ -1695,15 +1695,16 @@
} }
}, },
"node_modules/@lumeweb/libweb": { "node_modules/@lumeweb/libweb": {
"version": "0.2.0-develop.27", "version": "0.2.0-develop.30",
"resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.27.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.30.tgz",
"integrity": "sha512-obS4a6mcHJNoWXy5fCDuGAIVMee0ivK8q/q0semqoS3v0PS7t7sUmRX5ajyCwGbACXYqEdq3vU7RwzxhUkuNGg==", "integrity": "sha512-6T/yhjk/2KYiJ4gjVQwHDFcjOlzz/EosZPbpkpAdUDW+yuFW0XiGKh7nQWyjVuk8C2zDawNh3jTRTz/FRiSFhg==",
"dependencies": { "dependencies": {
"@lumeweb/community-portals": "^0.1.0-develop.6", "@lumeweb/community-portals": "^0.1.0-develop.6",
"@lumeweb/libportal": "^0.2.0-develop.16", "@lumeweb/libportal": "0.2.0-develop.17",
"@lumeweb/node-library-preset": "0.2.7", "@lumeweb/node-library-preset": "0.2.7",
"@noble/curves": "^1.1.0", "@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1" "@noble/hashes": "^1.3.1",
"binconv": "^0.2.0"
} }
}, },
"node_modules/@lumeweb/node-library-preset": { "node_modules/@lumeweb/node-library-preset": {
@ -10946,9 +10947,9 @@
} }
}, },
"node_modules/node-fetch": { "node_modules/node-fetch": {
"version": "3.3.1", "version": "3.3.2",
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.1.tgz", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz",
"integrity": "sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow==", "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==",
"dependencies": { "dependencies": {
"data-uri-to-buffer": "^4.0.0", "data-uri-to-buffer": "^4.0.0",
"fetch-blob": "^3.1.4", "fetch-blob": "^3.1.4",
@ -18387,9 +18388,9 @@
} }
}, },
"node_modules/tus-js-client": { "node_modules/tus-js-client": {
"version": "3.1.0", "version": "3.1.1",
"resolved": "https://registry.npmjs.org/tus-js-client/-/tus-js-client-3.1.0.tgz", "resolved": "https://registry.npmjs.org/tus-js-client/-/tus-js-client-3.1.1.tgz",
"integrity": "sha512-Hfpc8ho4C9Lhs/OflPUA/nHUHZJUrKD5upoPBq7dYJJ9DQhWocsjJU2RZYfN16Y5n19j9dFDszwCvVZ5sfcogw==", "integrity": "sha512-SZzWP62jEFLmROSRZx+uoGLKqsYWMGK/m+PiNehPVWbCm7/S9zRIMaDxiaOcKdMnFno4luaqP5E+Y1iXXPjP0A==",
"dependencies": { "dependencies": {
"buffer-from": "^1.1.2", "buffer-from": "^1.1.2",
"combine-errors": "^3.0.3", "combine-errors": "^3.0.3",

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/hosted-kernel", "name": "@lumeweb/hosted-kernel",
"version": "0.1.0-develop.3", "version": "0.1.0-develop.4",
"type": "module", "type": "module",
"readme": "ERROR: No README data found!", "readme": "ERROR: No README data found!",
"repository": { "repository": {
@ -16,7 +16,7 @@
"@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.43" "@lumeweb/presetter-kernel-module-preset": "^0.1.0-develop.43"
}, },
"dependencies": { "dependencies": {
"@lumeweb/libweb": "0.2.0-develop.27", "@lumeweb/libweb": "0.2.0-develop.30",
"@noble/ciphers": "^0.1.4", "@noble/ciphers": "^0.1.4",
"binconv": "^0.2.0" "binconv": "^0.2.0"
} }

View File

@ -1,6 +1,6 @@
import { import {
addContextToErr, addContextToErr,
downloadObject, downloadSmallObject,
Err, Err,
maybeInitDefaultPortals, maybeInitDefaultPortals,
setActivePortalMasterKey, setActivePortalMasterKey,
@ -100,7 +100,7 @@ export async function loadKernel() {
async function downloadKernel( async function downloadKernel(
kernelCid: string, kernelCid: string,
): Promise<[kernelCode: ReadableStream, err: Err]> { ): Promise<[kernelCode: ReadableStream, err: Err]> {
const [code, err] = await downloadObject(kernelCid); const [code, err] = await downloadSmallObject(kernelCid);
if (err != null) { if (err != null) {
return [null as any, err]; return [null as any, err];

View File

@ -1,7 +1,7 @@
import { x25519 } from "@noble/curves/ed25519"; import { x25519 } from "@noble/curves/ed25519";
export const defaultKernelLink = export const defaultKernelLink =
"zduKTLDR3JwRbBMNyVTdgKH63t6TcJAFmRsiyeuPAzE4an6VUq8vWc8Tvo"; "zduU8tCftgnWPaJZrmyjCwCSftsMkSyeR9tjFxbEiBEp5HwxUpvfFJmvg7";
const store = new Map<string, any>( const store = new Map<string, any>(
Object.entries({ Object.entries({