pqb 0.0.6 → 0.0.7
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 +2 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/queryMethods/columnInfo.ts +1 -1
- package/src/queryMethods/join.ts +1 -1
- package/src/queryMethods/then.ts +1 -2
- package/src/queryMethods/where.test.ts +2 -2
- package/src/relations.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -430,6 +430,7 @@ declare type BaseRelation = {
|
|
|
430
430
|
type: string;
|
|
431
431
|
key: string;
|
|
432
432
|
model: QueryWithTable;
|
|
433
|
+
query: QueryWithTable;
|
|
433
434
|
joinQuery: Query;
|
|
434
435
|
nestedCreateQuery: Query;
|
|
435
436
|
nestedInsert?: BelongsToNestedInsert | HasOneNestedInsert | HasManyNestedInsert;
|
|
@@ -883,7 +884,7 @@ declare const noop: () => void;
|
|
|
883
884
|
declare type EmptyObject = typeof emptyObject;
|
|
884
885
|
declare const emptyObject: {};
|
|
885
886
|
|
|
886
|
-
declare type ThenResult<Res> =
|
|
887
|
+
declare type ThenResult<Res> = (resolve?: (value: Res) => any, reject?: (error: any) => any) => Promise<Res | never>;
|
|
887
888
|
declare const queryMethodByReturnType: Record<QueryReturnType, 'query' | 'arrays'>;
|
|
888
889
|
declare class Then {
|
|
889
890
|
then(this: Query, resolve?: (result: any) => any, reject?: (error: any) => any): Promise<any>;
|
package/dist/index.esm.js
CHANGED
|
@@ -3958,7 +3958,7 @@ const _join = (q, type, args) => {
|
|
|
3958
3958
|
joinKey = first;
|
|
3959
3959
|
const relation = q.relations[joinKey];
|
|
3960
3960
|
if (relation) {
|
|
3961
|
-
parsers = relation.
|
|
3961
|
+
parsers = relation.query.query.parsers || relation.query.columnsParsers;
|
|
3962
3962
|
} else {
|
|
3963
3963
|
const shape = (_a = q.query.withShapes) == null ? void 0 : _a[first];
|
|
3964
3964
|
if (shape) {
|