pqb 0.9.21 → 0.9.22
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/index.d.ts +220 -198
- package/dist/index.js +16 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -185,6 +185,7 @@ const queryTypeWithLimitOne = {
|
|
|
185
185
|
};
|
|
186
186
|
const isQueryReturnsAll = (q) => !q.query.returnType || q.query.returnType === "all";
|
|
187
187
|
const queryTypeReturningMultipleRows = {
|
|
188
|
+
undefined: true,
|
|
188
189
|
all: true,
|
|
189
190
|
rows: true,
|
|
190
191
|
pluck: true
|
|
@@ -1430,21 +1431,6 @@ const cloneQueryArrays = (q) => {
|
|
|
1430
1431
|
}
|
|
1431
1432
|
};
|
|
1432
1433
|
|
|
1433
|
-
function applyMixins(derivedCtor, constructors) {
|
|
1434
|
-
constructors.forEach((baseCtor) => {
|
|
1435
|
-
Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => {
|
|
1436
|
-
Object.defineProperty(
|
|
1437
|
-
derivedCtor.prototype,
|
|
1438
|
-
name,
|
|
1439
|
-
Object.getOwnPropertyDescriptor(baseCtor.prototype, name) || /* @__PURE__ */ Object.create(null)
|
|
1440
|
-
);
|
|
1441
|
-
});
|
|
1442
|
-
});
|
|
1443
|
-
}
|
|
1444
|
-
const joinTruthy = (...strings) => {
|
|
1445
|
-
return strings.filter((string) => string).join("");
|
|
1446
|
-
};
|
|
1447
|
-
|
|
1448
1434
|
var __defProp$p = Object.defineProperty;
|
|
1449
1435
|
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
1450
1436
|
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
@@ -1864,6 +1850,21 @@ const dateTypeMethods = {
|
|
|
1864
1850
|
}
|
|
1865
1851
|
};
|
|
1866
1852
|
|
|
1853
|
+
function applyMixins(derivedCtor, constructors) {
|
|
1854
|
+
constructors.forEach((baseCtor) => {
|
|
1855
|
+
Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => {
|
|
1856
|
+
Object.defineProperty(
|
|
1857
|
+
derivedCtor.prototype,
|
|
1858
|
+
name,
|
|
1859
|
+
Object.getOwnPropertyDescriptor(baseCtor.prototype, name) || /* @__PURE__ */ Object.create(null)
|
|
1860
|
+
);
|
|
1861
|
+
});
|
|
1862
|
+
});
|
|
1863
|
+
}
|
|
1864
|
+
const joinTruthy = (...strings) => {
|
|
1865
|
+
return strings.filter((string) => string).join("");
|
|
1866
|
+
};
|
|
1867
|
+
|
|
1867
1868
|
class DateBaseColumn extends ColumnType {
|
|
1868
1869
|
constructor() {
|
|
1869
1870
|
super(...arguments);
|