@rudsys/n8n-nodes-sqlite3 0.1.7 → 0.1.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.
@@ -472,10 +472,9 @@ class SqliteSsh {
472
472
  sql = "SELECT name FROM sqlite_master WHERE type='table' AND name NOT LIKE 'sqlite_%';";
473
473
  }
474
474
  else {
475
- // For create, rename, drop - table param is used
476
- // For create: table param is the NEW table name
477
- // For rename: table param is OLD name, newTableName is NEW name
478
- // For drop: table param is table to drop
475
+ if (!table) {
476
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Table name is required', { itemIndex: i });
477
+ }
479
478
  if (action === 'create') {
480
479
  const columnsUi = this.getNodeParameter('columnsUi', i);
481
480
  const columns = (columnsUi === null || columnsUi === void 0 ? void 0 : columnsUi.column) || [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rudsys/n8n-nodes-sqlite3",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "n8n node for Remote SQLite operations via SSH",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/rudsys/n8n-nodes-sqlite3",