drizzle-kit 1.0.0-beta.6-da87e04 → 1.0.0-beta.6-ca7bc8a

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/api-postgres.js CHANGED
@@ -147675,7 +147675,10 @@ import { sql } from "drizzle-orm"
147675
147675
  }
147676
147676
  }).join(", ")})`;
147677
147677
  statement += it.where ? `.where(sql\`${it.where}\`)` : "";
147678
- statement += it.with && Object.keys(it.with).length > 0 ? `.with(${it.with})` : "";
147678
+ statement += it.with ? `.with({ ${it.with.split(",").map((it2) => {
147679
+ const [key, value] = it2.split("=");
147680
+ return `"${key.trim()}": ${value.trim()}`;
147681
+ }).join(", ")} })` : "";
147679
147682
  statement += `,
147680
147683
  `;
147681
147684
  });
package/api-postgres.mjs CHANGED
@@ -147709,7 +147709,10 @@ import { sql } from "drizzle-orm"
147709
147709
  }
147710
147710
  }).join(", ")})`;
147711
147711
  statement += it.where ? `.where(sql\`${it.where}\`)` : "";
147712
- statement += it.with && Object.keys(it.with).length > 0 ? `.with(${it.with})` : "";
147712
+ statement += it.with ? `.with({ ${it.with.split(",").map((it2) => {
147713
+ const [key, value] = it2.split("=");
147714
+ return `"${key.trim()}": ${value.trim()}`;
147715
+ }).join(", ")} })` : "";
147713
147716
  statement += `,
147714
147717
  `;
147715
147718
  });
package/bin.cjs CHANGED
@@ -169341,7 +169341,10 @@ import { sql } from "drizzle-orm"
169341
169341
  }
169342
169342
  }).join(", ")})`;
169343
169343
  statement += it2.where ? `.where(sql\`${it2.where}\`)` : "";
169344
- statement += it2.with && Object.keys(it2.with).length > 0 ? `.with(${it2.with})` : "";
169344
+ statement += it2.with ? `.with({ ${it2.with.split(",").map((it3) => {
169345
+ const [key, value] = it3.split("=");
169346
+ return `"${key.trim()}": ${value.trim()}`;
169347
+ }).join(", ")} })` : "";
169345
169348
  statement += `,
169346
169349
  `;
169347
169350
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "1.0.0-beta.6-da87e04",
3
+ "version": "1.0.0-beta.6-ca7bc8a",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",