pqb 0.1.6 → 0.1.8

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 CHANGED
@@ -223,8 +223,8 @@ declare class WhereQueryBuilder<Q extends QueryBase = QueryBase> extends Where i
223
223
  query: QueryData;
224
224
  selectable: Q['selectable'];
225
225
  shape: Q['shape'];
226
+ relations: Q['relations'];
226
227
  __model: Query;
227
- relations: {};
228
228
  withData: {};
229
229
  constructor(q: QueryBase | string, shape: ColumnsShape);
230
230
  clone<T extends this>(this: T): T;
@@ -430,7 +430,7 @@ declare type BaseRelation = {
430
430
  key: string;
431
431
  model: QueryWithTable;
432
432
  query: QueryWithTable;
433
- joinQuery(fromQuery: QueryBase, toQuery: QueryBase): QueryBase;
433
+ joinQuery(fromQuery: QueryBase, toQuery: Query): Query;
434
434
  nestedCreateQuery: Query;
435
435
  nestedInsert?: BelongsToNestedInsert | HasOneNestedInsert | HasManyNestedInsert;
436
436
  nestedUpdate?: BelongsToNestedUpdate | HasOneNestedUpdate | HasManyNestedUpdate;
package/dist/index.esm.js CHANGED
@@ -3918,7 +3918,6 @@ class WhereQueryBuilder extends Where {
3918
3918
  constructor(q, shape) {
3919
3919
  super();
3920
3920
  this.query = {};
3921
- this.relations = {};
3922
3921
  this.withData = {};
3923
3922
  this.table = typeof q === "object" ? q.table : q;
3924
3923
  this.shape = shape;