@homeofthings/sqlite3 6.1.0 → 6.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -2
- package/src/statement.h +3 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homeofthings/sqlite3",
|
|
3
3
|
"description": "Asynchronous, non-blocking SQLite3 bindings",
|
|
4
|
-
"version": "6.1.
|
|
4
|
+
"version": "6.1.1",
|
|
5
5
|
"homepage": "https://github.com/gms1/node-sqlite3",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Mapbox",
|
|
@@ -52,7 +52,8 @@
|
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"eslint": "8.56.0",
|
|
54
54
|
"mocha": "10.2.0",
|
|
55
|
-
"prebuild": "13.0.1"
|
|
55
|
+
"prebuild": "13.0.1",
|
|
56
|
+
"tinybench": "^2.9.0"
|
|
56
57
|
},
|
|
57
58
|
"peerDependencies": {
|
|
58
59
|
"node-gyp": "12.x"
|
|
@@ -73,6 +74,8 @@
|
|
|
73
74
|
"prebuild": "prebuild --runtime napi --all --verbose",
|
|
74
75
|
"rebuild": "node-gyp rebuild",
|
|
75
76
|
"upload": "prebuild --verbose --prerelease",
|
|
77
|
+
"frozen-install": "yarn install --frozen-lockfile",
|
|
78
|
+
"lint": "eslint .eslintrc.js lib/ test/ tools/",
|
|
76
79
|
"test": "node test/support/createdb.js && mocha -R spec --timeout 480000"
|
|
77
80
|
},
|
|
78
81
|
"license": "BSD-3-Clause",
|
package/src/statement.h
CHANGED
|
@@ -57,7 +57,9 @@ namespace Values {
|
|
|
57
57
|
Field(_name, SQLITE_BLOB), length(len) {
|
|
58
58
|
value = new char[len];
|
|
59
59
|
assert(value != nullptr);
|
|
60
|
-
|
|
60
|
+
if (len > 0) {
|
|
61
|
+
memcpy(value, val, len);
|
|
62
|
+
}
|
|
61
63
|
}
|
|
62
64
|
inline virtual ~Blob() override {
|
|
63
65
|
delete[] value;
|