@joystick.js/node-canary 0.0.0-canary.311 → 0.0.0-canary.312

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.
@@ -31,20 +31,20 @@ var postgresql_default = async (settings = {}, databasePort = 2610) => {
31
31
  const pool = new Pool(connection_config);
32
32
  return {
33
33
  pool,
34
- query: (...args2) => {
35
- return pool.query(...args2).then((response) => {
34
+ query: (...args) => {
35
+ return pool.query(...args).then((response) => {
36
36
  return response?.rows || [];
37
37
  }).catch((error) => {
38
38
  console.log(chalk.redBright(`
39
39
  Failed SQL Statement:
40
40
  `));
41
- console.log(args2[0]);
41
+ console.log(args[0]);
42
42
  console.log(`
43
43
  `);
44
44
  console.log(chalk.redBright(`
45
45
  Failed Values:
46
46
  `));
47
- console.log(args2[1]);
47
+ console.log(args[1]);
48
48
  throw error;
49
49
  });
50
50
  },
@@ -56,13 +56,7 @@ Failed Values:
56
56
  console.log(chalk.redBright(`
57
57
  Failed SQL Statement:
58
58
  `));
59
- console.log(args[0]);
60
- console.log(`
61
- `);
62
- console.log(chalk.redBright(`
63
- Failed Values:
64
- `));
65
- console.log(args[1]);
59
+ console.log(column.statement);
66
60
  throw error;
67
61
  });
68
62
  },
@@ -74,13 +68,7 @@ Failed Values:
74
68
  console.log(chalk.redBright(`
75
69
  Failed SQL Statement:
76
70
  `));
77
- console.log(args[0]);
78
- console.log(`
79
- `);
80
- console.log(chalk.redBright(`
81
- Failed Values:
82
- `));
83
- console.log(args[1]);
71
+ console.log(table.statement);
84
72
  throw error;
85
73
  });
86
74
  },
@@ -92,13 +80,13 @@ Failed Values:
92
80
  console.log(chalk.redBright(`
93
81
  Failed SQL Statement:
94
82
  `));
95
- console.log(args[0]);
83
+ console.log(insert.statement);
96
84
  console.log(`
97
85
  `);
98
86
  console.log(chalk.redBright(`
99
87
  Failed Values:
100
88
  `));
101
- console.log(args[1]);
89
+ console.log(insert.values);
102
90
  throw error;
103
91
  });
104
92
  },
@@ -110,13 +98,13 @@ Failed Values:
110
98
  console.log(chalk.redBright(`
111
99
  Failed SQL Statement:
112
100
  `));
113
- console.log(args[0]);
101
+ console.log(select.statement);
114
102
  console.log(`
115
103
  `);
116
104
  console.log(chalk.redBright(`
117
105
  Failed Values:
118
106
  `));
119
- console.log(args[1]);
107
+ console.log(select.where);
120
108
  throw error;
121
109
  });
122
110
  },
@@ -128,13 +116,13 @@ Failed Values:
128
116
  console.log(chalk.redBright(`
129
117
  Failed SQL Statement:
130
118
  `));
131
- console.log(args[0]);
119
+ console.log(update.statement);
132
120
  console.log(`
133
121
  `);
134
122
  console.log(chalk.redBright(`
135
123
  Failed Values:
136
124
  `));
137
- console.log(args[1]);
125
+ console.log(update.values);
138
126
  throw error;
139
127
  });
140
128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/node-canary",
3
- "version": "0.0.0-canary.311",
3
+ "version": "0.0.0-canary.312",
4
4
  "type": "module",
5
5
  "description": "A Node.js framework for building web apps.",
6
6
  "main": "./dist/index.js",