@graffy/pg 0.16.9-alpha.1 → 0.16.9

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.
Files changed (3) hide show
  1. package/index.cjs +1 -2
  2. package/index.mjs +1 -2
  3. package/package.json +2 -2
package/index.cjs CHANGED
@@ -313,8 +313,7 @@ const getInsert = (rows, options) => {
313
313
  colUsed[colIx[verCol]] = true;
314
314
  const vals = [];
315
315
  for (const row of rows) {
316
- const rowVals = Array(cols.length).fill(null);
317
- rowVals[colIx[verCol]] = sql`default`;
316
+ const rowVals = Array(cols.length).fill(sql`default`);
318
317
  for (const col of cols) {
319
318
  if (col === verCol || !(col in row))
320
319
  continue;
package/index.mjs CHANGED
@@ -311,8 +311,7 @@ const getInsert = (rows, options) => {
311
311
  colUsed[colIx[verCol]] = true;
312
312
  const vals = [];
313
313
  for (const row of rows) {
314
- const rowVals = Array(cols.length).fill(null);
315
- rowVals[colIx[verCol]] = sql`default`;
314
+ const rowVals = Array(cols.length).fill(sql`default`);
316
315
  for (const col of cols) {
317
316
  if (col === verCol || !(col in row))
318
317
  continue;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graffy/pg",
3
3
  "description": "The standard Postgres module for Graffy. Each instance this module mounts a Postgres table as a Graffy subtree.",
4
4
  "author": "aravind (https://github.com/aravindet)",
5
- "version": "0.16.9-alpha.1",
5
+ "version": "0.16.9",
6
6
  "main": "./index.cjs",
7
7
  "exports": {
8
8
  "import": "./index.mjs",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "license": "Apache-2.0",
18
18
  "dependencies": {
19
- "@graffy/common": "0.16.9-alpha.1",
19
+ "@graffy/common": "0.16.9",
20
20
  "debug": "^4.3.3"
21
21
  },
22
22
  "peerDependencies": {