pqb 0.48.2 → 0.48.4

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.mjs CHANGED
@@ -4335,7 +4335,7 @@ function queryFrom(self, arg) {
4335
4335
  data.batchParsers = q.q.batchParsers;
4336
4336
  }
4337
4337
  data.from = arg;
4338
- data.selectAllColumns = data.selectAllKeys = void 0;
4338
+ data.selectAllColumns = data.selectAllKeys = data.scopes = void 0;
4339
4339
  return self;
4340
4340
  }
4341
4341
  function queryFromSql(self, args) {
@@ -7032,7 +7032,9 @@ const resolveSubQueryCallbackV2 = (q, cb) => {
7032
7032
  Object.defineProperty(base, key, {
7033
7033
  get() {
7034
7034
  const rel = relations[key].relationConfig;
7035
- return _chain(this, _clone(rel.query), rel);
7035
+ const relQuery = _clone(rel.query);
7036
+ relQuery.q.withShapes = this.q.withShapes;
7037
+ return _chain(this, relQuery, rel);
7036
7038
  }
7037
7039
  });
7038
7040
  }