@sprucelabs/postgres-data-store 5.1.8 → 5.1.10
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.
|
@@ -370,11 +370,12 @@ class PostgresDatabase {
|
|
|
370
370
|
return result;
|
|
371
371
|
}
|
|
372
372
|
async query(query, params) {
|
|
373
|
+
var _a;
|
|
373
374
|
const results = await this.client.query({
|
|
374
375
|
text: query,
|
|
375
376
|
values: params,
|
|
376
377
|
});
|
|
377
|
-
return results.rows;
|
|
378
|
+
return (_a = results === null || results === void 0 ? void 0 : results.rows) !== null && _a !== void 0 ? _a : [];
|
|
378
379
|
}
|
|
379
380
|
}
|
|
380
381
|
exports.default = PostgresDatabase;
|
|
@@ -412,12 +412,13 @@ export default class PostgresDatabase {
|
|
|
412
412
|
return result;
|
|
413
413
|
}
|
|
414
414
|
query(query, params) {
|
|
415
|
+
var _a;
|
|
415
416
|
return __awaiter(this, void 0, void 0, function* () {
|
|
416
417
|
const results = yield this.client.query({
|
|
417
418
|
text: query,
|
|
418
419
|
values: params,
|
|
419
420
|
});
|
|
420
|
-
return results.rows;
|
|
421
|
+
return (_a = results === null || results === void 0 ? void 0 : results.rows) !== null && _a !== void 0 ? _a : [];
|
|
421
422
|
});
|
|
422
423
|
}
|
|
423
424
|
}
|
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"sprucebot",
|
|
23
23
|
"sprucelabs"
|
|
24
24
|
],
|
|
25
|
-
"version": "5.1.
|
|
25
|
+
"version": "5.1.10",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build.ci": "yarn build.tsc && yarn build.resolve-paths && yarn lint",
|
|
28
28
|
"build.dev": "yarn build.tsc --sourceMap ; yarn resolve-paths.lint",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@sprucelabs/data-stores": "^26.3.9",
|
|
55
|
-
"@sprucelabs/schema": "^29.3.
|
|
55
|
+
"@sprucelabs/schema": "^29.3.6",
|
|
56
56
|
"pg": "^8.11.3"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|