dendritejs-pinecone
This commit is contained in:
parent
46d659a936
commit
b28708fbf3
4 changed files with 3307 additions and 3019 deletions
|
@ -77,7 +77,7 @@
|
||||||
"react": "^16.9.0",
|
"react": "^16.9.0",
|
||||||
"react-dom": "^16.9.0",
|
"react-dom": "^16.9.0",
|
||||||
"sanitize-html": "^1.19.1",
|
"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",
|
"ua-parser-js": "^0.7.19",
|
||||||
"url": "^0.11.0"
|
"url": "^0.11.0"
|
||||||
},
|
},
|
||||||
|
|
|
@ -44,7 +44,6 @@ self.registration.addEventListener('updatefound', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
self.importScripts(`${bundle_path}/wasm_exec.js`,
|
self.importScripts(`${bundle_path}/wasm_exec.js`,
|
||||||
`${bundle_path}/go_http_bridge.js`,
|
|
||||||
`${bundle_path}/sqlitejs.js`,
|
`${bundle_path}/sqlitejs.js`,
|
||||||
`${bundle_path}/localforage.js`);
|
`${bundle_path}/localforage.js`);
|
||||||
|
|
||||||
|
@ -145,10 +144,6 @@ async function initDendrite() {
|
||||||
console.log(`dendrite-sw.js: v${version} dendrite.wasm terminated, restarting...`);
|
console.log(`dendrite-sw.js: v${version} dendrite.wasm terminated, restarting...`);
|
||||||
// purge databases and p2p nodes.
|
// purge databases and p2p nodes.
|
||||||
global._go_js_server = undefined;
|
global._go_js_server = undefined;
|
||||||
global._go_libp2p_nodes.forEach((n) => {
|
|
||||||
n.stop();
|
|
||||||
});
|
|
||||||
global._go_libp2p_nodes = [];
|
|
||||||
global._go_sqlite_dbs.clear();
|
global._go_sqlite_dbs.clear();
|
||||||
initDendritePromise = initDendrite();
|
initDendritePromise = initDendrite();
|
||||||
});
|
});
|
||||||
|
@ -173,6 +168,7 @@ async function initDendrite() {
|
||||||
// persist the new version
|
// persist the new version
|
||||||
await global.localforage.setItem("dendrite_version", version);
|
await global.localforage.setItem("dendrite_version", version);
|
||||||
}
|
}
|
||||||
|
|
||||||
let initDendritePromise = initDendrite();
|
let initDendritePromise = initDendrite();
|
||||||
|
|
||||||
self.addEventListener('install', function(event) {
|
self.addEventListener('install', function(event) {
|
||||||
|
|
|
@ -37,7 +37,6 @@ module.exports = (env, argv) => {
|
||||||
"mobileguide": "./src/vector/mobile_guide/index.js",
|
"mobileguide": "./src/vector/mobile_guide/index.js",
|
||||||
"sqlitejs": "./src/vector/sqlitejs.js",
|
"sqlitejs": "./src/vector/sqlitejs.js",
|
||||||
"localforage": "./node_modules/localforage/dist/localforage.min.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",
|
"sql_wasm": "./node_modules/sql.js/dist/sql-wasm.wasm",
|
||||||
"dendrite_wasm": "./src/vector/dendrite.wasm",
|
"dendrite_wasm": "./src/vector/dendrite.wasm",
|
||||||
"wasm_exec": "./src/vector/wasm_exec.js",
|
"wasm_exec": "./src/vector/wasm_exec.js",
|
||||||
|
|
Loading…
Add table
Reference in a new issue