bun-query-builder 0.1.48 → 0.1.49
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/dist/bin/cli.js +3 -3
- package/dist/src/index.js +2 -2
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -11937,7 +11937,7 @@ function createSQLiteSQL(filename) {
|
|
|
11937
11937
|
execute: () => {
|
|
11938
11938
|
try {
|
|
11939
11939
|
const trimmed = sql.trim().toUpperCase();
|
|
11940
|
-
if (trimmed.startsWith("SELECT") || trimmed.startsWith("PRAGMA")) {
|
|
11940
|
+
if (trimmed.startsWith("SELECT") || trimmed.startsWith("PRAGMA") || /\bRETURNING\b/.test(trimmed)) {
|
|
11941
11941
|
const result = wrapper.query(sql, params);
|
|
11942
11942
|
return Promise.resolve(result);
|
|
11943
11943
|
} else {
|
|
@@ -11967,7 +11967,7 @@ function createSQLiteSQL(filename) {
|
|
|
11967
11967
|
const execute = () => {
|
|
11968
11968
|
try {
|
|
11969
11969
|
const trimmed = sql.trim().toUpperCase();
|
|
11970
|
-
if (trimmed.startsWith("SELECT") || trimmed.startsWith("PRAGMA")) {
|
|
11970
|
+
if (trimmed.startsWith("SELECT") || trimmed.startsWith("PRAGMA") || /\bRETURNING\b/.test(trimmed)) {
|
|
11971
11971
|
const result = wrapper.query(sql, params);
|
|
11972
11972
|
return Promise.resolve(result);
|
|
11973
11973
|
} else {
|
|
@@ -30901,7 +30901,7 @@ function getPrefix() {
|
|
|
30901
30901
|
}
|
|
30902
30902
|
var prefix = getPrefix();
|
|
30903
30903
|
// package.json
|
|
30904
|
-
var version2 = "0.1.
|
|
30904
|
+
var version2 = "0.1.49";
|
|
30905
30905
|
|
|
30906
30906
|
// bin/cli.ts
|
|
30907
30907
|
init_actions();
|
package/dist/src/index.js
CHANGED
|
@@ -11936,7 +11936,7 @@ function createSQLiteSQL(filename) {
|
|
|
11936
11936
|
execute: () => {
|
|
11937
11937
|
try {
|
|
11938
11938
|
const trimmed = sql.trim().toUpperCase();
|
|
11939
|
-
if (trimmed.startsWith("SELECT") || trimmed.startsWith("PRAGMA")) {
|
|
11939
|
+
if (trimmed.startsWith("SELECT") || trimmed.startsWith("PRAGMA") || /\bRETURNING\b/.test(trimmed)) {
|
|
11940
11940
|
const result = wrapper.query(sql, params);
|
|
11941
11941
|
return Promise.resolve(result);
|
|
11942
11942
|
} else {
|
|
@@ -11966,7 +11966,7 @@ function createSQLiteSQL(filename) {
|
|
|
11966
11966
|
const execute = () => {
|
|
11967
11967
|
try {
|
|
11968
11968
|
const trimmed = sql.trim().toUpperCase();
|
|
11969
|
-
if (trimmed.startsWith("SELECT") || trimmed.startsWith("PRAGMA")) {
|
|
11969
|
+
if (trimmed.startsWith("SELECT") || trimmed.startsWith("PRAGMA") || /\bRETURNING\b/.test(trimmed)) {
|
|
11970
11970
|
const result = wrapper.query(sql, params);
|
|
11971
11971
|
return Promise.resolve(result);
|
|
11972
11972
|
} else {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "bun-query-builder",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.49",
|
|
6
6
|
"description": "A simple yet performant query builder for TypeScript. Built with Bun.",
|
|
7
7
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
8
8
|
"license": "MIT",
|