rado 0.1.58 → 0.1.59

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.
@@ -116,10 +116,8 @@ var Formatter = class {
116
116
  const { stmt } = ctx;
117
117
  const data = query.set || {};
118
118
  stmt.add("UPDATE").addIdentifier(query.table.name).add("SET").space();
119
- for (const key of stmt.separate(Object.keys(data))) {
120
- const column = query.table.columns[key];
121
- if (!column)
122
- continue;
119
+ const keys = Object.keys(data).filter((key) => query.table.columns[key]);
120
+ for (const key of stmt.separate(keys)) {
123
121
  stmt.identifier(key).add("=").space();
124
122
  const value = data[key];
125
123
  if (value instanceof Expr)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rado",
3
- "version": "0.1.58",
3
+ "version": "0.1.59",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",