Commit ae4edf4 1 parent f9663fc commit ae4edf4 Copy full SHA for ae4edf4
File tree 5 files changed +17
-15
lines changed
5 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ module.exports = new Map([
13
13
return db ;
14
14
} ] ,
15
15
[ 'node-sqlite3' , async ( filename , pragma ) => {
16
- const db = await require ( 'sqlite' ) . open ( filename ) ;
16
+ const driver = require ( 'sqlite3' ) . Database ;
17
+ const db = await ( require ( 'sqlite' ) . open ) ( { filename, driver } ) ;
17
18
for ( const str of pragma ) await db . run ( `PRAGMA ${ str } ` ) ;
18
19
return db ;
19
20
} ] ,
Original file line number Diff line number Diff line change 1
- #! /usr/bin/env sh
1
+ #! /usr/bin/env bash
2
2
3
3
# ===
4
4
# This script defines and generates the bundled SQLite3 unit (sqlite3.c).
18
18
# 3. node-gyp links the two resulting binaries to generate better_sqlite3.node.
19
19
# ===
20
20
21
- VERSION= " 3340000 "
22
- YEAR= " 2020 "
21
+ YEAR= " 2021 "
22
+ VERSION= " 3350200 "
23
23
24
24
DEFINES="
25
25
SQLITE_DQS=0
@@ -64,7 +64,7 @@ curl -#f "https://www.sqlite.org/$YEAR/sqlite-src-$VERSION.zip" > "$TEMP/source.
64
64
65
65
echo " extracting source..."
66
66
unzip " $TEMP /source.zip" -d " $TEMP " > /dev/null || exit 1
67
- cd " $TEMP /sqlite-src-$VERSION "
67
+ cd " $TEMP /sqlite-src-$VERSION " || exit 1
68
68
69
69
echo " configuring amalgamation..."
70
70
sh configure > /dev/null || exit 1
@@ -92,7 +92,7 @@ printf "$DEFINES" | sed -e "/^\s*$/d" >> "$DOCS"
92
92
printf " \`\`\` \n" >> " $DOCS "
93
93
94
94
echo " cleaning up..."
95
- cd - > /dev/null
95
+ cd - > /dev/null || exit 1
96
96
rm -rf " $TEMP "
97
97
98
98
echo " done!"
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ If you're using a SQLite3 encryption extension that is a drop-in replacement for
34
34
35
35
# Bundled configuration
36
36
37
- By default, this distribution currently uses SQLite3 ** version 3.34.0 ** with the following [ compilation options] ( https://www.sqlite.org/compile.html ) :
37
+ By default, this distribution currently uses SQLite3 ** version 3.35.2 ** with the following [ compilation options] ( https://www.sqlite.org/compile.html ) :
38
38
39
39
```
40
40
SQLITE_DQS=0
Original file line number Diff line number Diff line change 11
11
},
12
12
"dependencies" : {
13
13
"bindings" : " ^1.5.0" ,
14
- "prebuild-install" : " ^5.3.3 " ,
15
- "tar" : " ^6.0.5 "
14
+ "prebuild-install" : " ^6.0.1 " ,
15
+ "tar" : " ^6.1.0 "
16
16
},
17
17
"devDependencies" : {
18
- "chai" : " ^4.2.0 " ,
18
+ "chai" : " ^4.3.4 " ,
19
19
"cli-color" : " ^2.0.0" ,
20
- "fs-extra" : " ^8 .1.0" ,
21
- "mocha" : " ^7.0.1 " ,
20
+ "fs-extra" : " ^9 .1.0" ,
21
+ "mocha" : " ^8.3.2 " ,
22
22
"nodemark" : " ^0.3.0" ,
23
- "prebuild" : " ^10.0.0" ,
24
- "sqlite" : " ^3.0.3"
23
+ "prebuild" : " ^10.0.1" ,
24
+ "sqlite" : " ^4.0.19" ,
25
+ "sqlite3" : " ^5.0.2"
25
26
},
26
27
"scripts" : {
27
28
"install" : " prebuild-install || npm run build-release" ,
31
32
"rebuild-debug" : " npm run lzz && npm run build-debug" ,
32
33
"test" : " mocha --exit --slow=75 --timeout=5000" ,
33
34
"benchmark" : " node benchmark" ,
34
- "download" : " sh ./deps/download.sh" ,
35
+ "download" : " bash ./deps/download.sh" ,
35
36
"lzz" : " lzz -hx hpp -sx cpp -k BETTER_SQLITE3 -d -hl -sl -e ./src/better_sqlite3.lzz" ,
36
37
"prepublishOnly" : " npm run lzz"
37
38
},
You can’t perform that action at this time.
0 commit comments