@naturalcycles/mysql-lib 4.8.1 → 4.9.0

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.
@@ -48,12 +48,12 @@ export function insertSQL(table, rows, verb = 'INSERT', logger = console) {
48
48
  }
49
49
  return set;
50
50
  }, new Set());
51
- const fields = [...fieldSet];
51
+ const fields = Array.from(fieldSet);
52
52
  const start = [
53
53
  verb,
54
54
  `INTO`,
55
55
  mysql.escapeId(table),
56
- `(` + [...fields].map(f => mysql.escapeId(mapNameToMySQL(f))).join(',') + `)`,
56
+ `(` + fields.map(f => mysql.escapeId(mapNameToMySQL(f))).join(',') + `)`,
57
57
  `VALUES\n`,
58
58
  ].join(' ');
59
59
  const valueRows = rows.map(rec => {
package/package.json CHANGED
@@ -10,9 +10,9 @@
10
10
  "tslib": "^2"
11
11
  },
12
12
  "devDependencies": {
13
- "@types/node": "^24",
14
- "dotenv": "^17",
15
- "@naturalcycles/dev-lib": "18.4.2"
13
+ "@types/node": "^25",
14
+ "@typescript/native-preview": "beta",
15
+ "@naturalcycles/dev-lib": "20.48.0"
16
16
  },
17
17
  "exports": {
18
18
  ".": "./dist/index.js"
@@ -38,7 +38,7 @@
38
38
  "engines": {
39
39
  "node": ">=24.10.0"
40
40
  },
41
- "version": "4.8.1",
41
+ "version": "4.9.0",
42
42
  "description": "MySQL client implementing CommonDB interface",
43
43
  "keywords": [
44
44
  "mysql",
package/src/query.util.ts CHANGED
@@ -67,13 +67,13 @@ export function insertSQL(
67
67
  }
68
68
  return set
69
69
  }, new Set<string>())
70
- const fields = [...fieldSet]
70
+ const fields = Array.from(fieldSet)
71
71
 
72
72
  const start = [
73
73
  verb,
74
74
  `INTO`,
75
75
  mysql.escapeId(table),
76
- `(` + [...fields].map(f => mysql.escapeId(mapNameToMySQL(f))).join(',') + `)`,
76
+ `(` + fields.map(f => mysql.escapeId(mapNameToMySQL(f))).join(',') + `)`,
77
77
  `VALUES\n`,
78
78
  ].join(' ')
79
79