@fachkraftfreund/n8n-nodes-supabase 1.3.6 → 1.3.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.
@@ -203,19 +203,16 @@ async function handleBulkCreate(supabase, itemCount) {
203
203
  async function handleBulkUpsert(supabase, itemCount) {
204
204
  const table = this.getNodeParameter('table', 0);
205
205
  const onConflict = this.getNodeParameter('onConflict', 0, '');
206
- (0, supabaseClient_1.validateTableName)(table);
207
206
  const deduplicate = this.getNodeParameter('deduplicateByConflict', 0, false);
207
+ (0, supabaseClient_1.validateTableName)(table);
208
208
  let rows = collectRowData(this, itemCount);
209
209
  const options = {};
210
- if (onConflict) {
210
+ if (onConflict)
211
211
  options.onConflict = onConflict;
212
- if (deduplicate) {
213
- const before = rows.length;
214
- rows = deduplicateByConflictKeys(rows, onConflict);
215
- if (rows.length < before) {
216
- console.log(`[Supabase UPSERT ${table}] deduplicated input: ${before} → ${rows.length} rows by conflict key "${onConflict}"`);
217
- }
218
- }
212
+ if (deduplicate && onConflict) {
213
+ const before = rows.length;
214
+ rows = deduplicateByConflictKeys(rows, onConflict);
215
+ console.log(`[Supabase UPSERT ${table}] dedup by "${onConflict}": ${before} → ${rows.length} rows`);
219
216
  }
220
217
  const returnData = [];
221
218
  for (let offset = 0; offset < rows.length; offset += BULK_BATCH_SIZE) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fachkraftfreund/n8n-nodes-supabase",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "Comprehensive n8n community node for Supabase with database and storage operations",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",