@peerbit/indexer-sqlite3
Advanced tools
Comparing version 1.1.1 to 1.1.2-1a3d976
@@ -363,5 +363,3 @@ /* | ||
sabView: state.sabFileBufView, | ||
readOnly: create | ||
? false | ||
: state.sq3Codes.SQLITE_OPEN_READONLY & flags, | ||
readOnly: !create && !!(state.sq3Codes.SQLITE_OPEN_READONLY & flags), | ||
deleteOnClose: !!(state.sq3Codes.SQLITE_OPEN_DELETEONCLOSE & flags), | ||
@@ -434,3 +432,3 @@ }); | ||
const fh = __openFiles[fid]; | ||
if (state.sq3Codes.SQLITE_LOCK_NONE === lockType && fh.syncHandle) { | ||
if (fh.syncHandle && state.sq3Codes.SQLITE_LOCK_NONE === lockType) { | ||
try { | ||
@@ -437,0 +435,0 @@ await closeSyncHandle(fh); |
156
package.json
{ | ||
"name": "@peerbit/indexer-sqlite3", | ||
"version": "1.1.1", | ||
"description": "SQLite index for document store", | ||
"type": "module", | ||
"sideEffects": false, | ||
"types": "./dist/src/index.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
], | ||
"src/*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
"src", | ||
"dist", | ||
"!dist/e2e", | ||
"!dist/test", | ||
"!**/*.tsbuildinfo" | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
"import": "./dist/src/index.js" | ||
}, | ||
"./sqlite.org": { | ||
"types": "./dist/peerbit/sqlite.org/sqlite3.d.ts", | ||
"import": "./dist/peerbit/sqlite.org/sqlite3.js" | ||
} | ||
}, | ||
"browser": { | ||
"./dist/src/sqlite3.js": "./dist/src/sqlite3.browser.js" | ||
}, | ||
"eslintConfig": { | ||
"extends": "peerbit", | ||
"parserOptions": { | ||
"project": true, | ||
"sourceType": "module" | ||
}, | ||
"ignorePatterns": [ | ||
"!.aegir.js", | ||
"test/ts-use", | ||
"*.d.ts" | ||
] | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"clean": "aegir clean", | ||
"copy-sqlite-wasm": "mkdir -p ./dist/peerbit/ && cp -r ../../../../node_modules/@sqlite.org/sqlite-wasm/sqlite-wasm/jswasm/. ./dist/peerbit/", | ||
"build-worker": "node ../../../../node_modules/esbuild/bin/esbuild --bundle ./src/sqlite3.worker.ts --format=esm --outfile=./dist/peerbit/sqlite3.worker.min.js", | ||
"build": "aegir build && npm run build-worker && npm run copy-sqlite-wasm", | ||
"test": "aegir test", | ||
"test:browser": "aegir clean && aegir test -t browser", | ||
"test:node": "aegir clean && aegir test -t node", | ||
"lint": "aegir lint" | ||
}, | ||
"author": "dao.xyz", | ||
"license": "MIT", | ||
"dependencies": { | ||
"better-sqlite3": "^11.3.0", | ||
"@peerbit/indexer-interface": "^1.1.1", | ||
"@sqlite.org/sqlite-wasm": "^3.46.1-build3" | ||
}, | ||
"devDependencies": { | ||
"@types/better-sqlite3": "^7.6.11", | ||
"@peerbit/indexer-tests": "^1.1.1" | ||
} | ||
"name": "@peerbit/indexer-sqlite3", | ||
"version": "1.1.2-1a3d976", | ||
"description": "SQLite index for document store", | ||
"type": "module", | ||
"sideEffects": false, | ||
"types": "./dist/src/index.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
], | ||
"src/*": [ | ||
"*", | ||
"dist/*", | ||
"dist/src/*", | ||
"dist/src/*/index" | ||
] | ||
} | ||
}, | ||
"files": [ | ||
"src", | ||
"dist", | ||
"!dist/e2e", | ||
"!dist/test", | ||
"!**/*.tsbuildinfo" | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
"import": "./dist/src/index.js" | ||
}, | ||
"./sqlite.org": { | ||
"types": "./dist/peerbit/sqlite.org/sqlite3.d.ts", | ||
"import": "./dist/peerbit/sqlite.org/sqlite3.js" | ||
} | ||
}, | ||
"browser": { | ||
"./dist/src/sqlite3.js": "./dist/src/sqlite3.browser.js" | ||
}, | ||
"eslintConfig": { | ||
"extends": "peerbit", | ||
"parserOptions": { | ||
"project": true, | ||
"sourceType": "module" | ||
}, | ||
"ignorePatterns": [ | ||
"!.aegir.js", | ||
"test/ts-use", | ||
"*.d.ts" | ||
] | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"clean": "aegir clean", | ||
"copy-sqlite-wasm": "mkdir -p ./dist/peerbit/ && cp -r ../../../../node_modules/@sqlite.org/sqlite-wasm/sqlite-wasm/jswasm/. ./dist/peerbit/", | ||
"build-worker": "node ../../../../node_modules/esbuild/bin/esbuild --bundle ./src/sqlite3.worker.ts --format=esm --outfile=./dist/peerbit/sqlite3.worker.min.js", | ||
"build": "aegir build && npm run build-worker && npm run copy-sqlite-wasm", | ||
"test": "aegir test", | ||
"test:browser": "aegir clean && aegir test -t browser", | ||
"test:node": "aegir clean && aegir test -t node", | ||
"lint": "aegir lint" | ||
}, | ||
"author": "dao.xyz", | ||
"license": "MIT", | ||
"dependencies": { | ||
"better-sqlite3": "^11.5.0", | ||
"@peerbit/indexer-interface": "1.1.1-1a3d976", | ||
"@sqlite.org/sqlite-wasm": "^3.47.0-build1" | ||
}, | ||
"devDependencies": { | ||
"@types/better-sqlite3": "^7.6.11", | ||
"@peerbit/indexer-tests": "1.1.1-1a3d976" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
18
6324635
100394
2
+ Added@peerbit/cache@2.1.0-1a3d976(transitive)
+ Added@peerbit/crypto@2.3.2-1a3d976(transitive)
+ Added@peerbit/indexer-interface@1.1.1-1a3d976(transitive)
+ Added@sqlite.org/sqlite-wasm@3.47.0-build1(transitive)
- Removed@peerbit/cache@2.1.2(transitive)
- Removed@peerbit/crypto@2.3.5(transitive)
- Removed@peerbit/indexer-interface@1.1.1(transitive)
- Removed@sqlite.org/sqlite-wasm@3.46.1-build5(transitive)
Updatedbetter-sqlite3@^11.5.0