dendritejs-pinecone

This commit is contained in:
Neil Alexander 2021-06-25 14:36:07 +01:00
parent 46d659a936
commit b28708fbf3
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
4 changed files with 3307 additions and 3019 deletions

View file

@ -77,7 +77,7 @@
"react": "^16.9.0",
"react-dom": "^16.9.0",
"sanitize-html": "^1.19.1",
"sql.js": "github:neilalexander/sql.js#b9b375ed34e2ad5eef04f528cfb45d7277c142b9",
"sql.js": "github:neilalexander/sql.js#252a72bf57b0538cbd49bbd6f70af71e516966ae",
"ua-parser-js": "^0.7.19",
"url": "^0.11.0"
},

View file

@ -44,7 +44,6 @@ self.registration.addEventListener('updatefound', () => {
})
self.importScripts(`${bundle_path}/wasm_exec.js`,
`${bundle_path}/go_http_bridge.js`,
`${bundle_path}/sqlitejs.js`,
`${bundle_path}/localforage.js`);
@ -145,10 +144,6 @@ async function initDendrite() {
console.log(`dendrite-sw.js: v${version} dendrite.wasm terminated, restarting...`);
// purge databases and p2p nodes.
global._go_js_server = undefined;
global._go_libp2p_nodes.forEach((n) => {
n.stop();
});
global._go_libp2p_nodes = [];
global._go_sqlite_dbs.clear();
initDendritePromise = initDendrite();
});
@ -173,6 +168,7 @@ async function initDendrite() {
// persist the new version
await global.localforage.setItem("dendrite_version", version);
}
let initDendritePromise = initDendrite();
self.addEventListener('install', function(event) {

View file

@ -37,7 +37,6 @@ module.exports = (env, argv) => {
"mobileguide": "./src/vector/mobile_guide/index.js",
"sqlitejs": "./src/vector/sqlitejs.js",
"localforage": "./node_modules/localforage/dist/localforage.min.js",
"go_http_bridge": "./node_modules/go-http-js-libp2p/js/bridge.js",
"sql_wasm": "./node_modules/sql.js/dist/sql-wasm.wasm",
"dendrite_wasm": "./src/vector/dendrite.wasm",
"wasm_exec": "./src/vector/wasm_exec.js",

6317
yarn.lock

File diff suppressed because it is too large Load diff