Skip to content

Commit 2cd905c

Browse files
committed
Transient database Node.js support
1 parent 6061759 commit 2cd905c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

demo/node.js renamed to demo/node.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { sqlite3InitModuleNode } from '../node.mjs';
1+
import sqlite3InitModule from '../node.mjs';
22

33
const log = (...args) => console.log(...args);
44
const error = (...args) => console.error(...args);

node.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { default as sqlite3InitModuleNode } from './sqlite-wasm/jswasm/sqlite3-node.mjs';
1+
import { default as sqlite3InitModule } from './sqlite-wasm/jswasm/sqlite3-node.mjs';
22

3-
export default sqlite3InitModuleNode;
3+
export default sqlite3InitModule;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"clean": "shx rm -rf sqlite-wasm",
4242
"build": "npm run clean && node bin/index.js",
4343
"start": "npx http-server --coop",
44+
"start:node": "cd demo && node node.mjs",
4445
"fix": "npx prettier . --write",
4546
"prepare": "npm run build && npm run fix && npm run publint",
4647
"deploy": "npm run prepare && git add . && git commit -am 'New release' && git push && npm publish --access public"

0 commit comments

Comments
 (0)