baja-lite 1.7.0 → 1.7.1

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.
package/code.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baja-lite",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "some util for self",
5
5
  "homepage": "https://github.com/void-soul/baja-lite",
6
6
  "repository": {
@@ -44,11 +44,11 @@
44
44
  "iterare": "1.2.1",
45
45
  "mustache": "4.2.0",
46
46
  "pino": "10.1.0",
47
- "pino-pretty": "13.1.2",
47
+ "pino-pretty": "13.1.3",
48
48
  "reflect-metadata": "0.2.2",
49
49
  "request": "2.88.2",
50
50
  "request-promise": "4.2.6",
51
- "sql-formatter": "15.6.10",
51
+ "sql-formatter": "15.6.12",
52
52
  "sqlstring": "2.3.3",
53
53
  "tslib": "2.8.1"
54
54
  },
package/sql.js CHANGED
@@ -3877,10 +3877,10 @@ class StreamQuery {
3877
3877
  ${this._groups.length > 0 ? `GROUP BY ${this._groups.join(',')} ` : ''}
3878
3878
  ${this._orders.length > 0 ? `ORDER BY ${this._orders.join(',')} ` : ''}
3879
3879
  `;
3880
- if (this._startRow && this._pageSize) {
3880
+ if (this._startRow !== undefined && this._pageSize !== undefined) {
3881
3881
  sql += `LIMIT ${this._startRow}, ${this._pageSize}`;
3882
3882
  }
3883
- else if (this._startRow) {
3883
+ else if (this._startRow !== undefined) {
3884
3884
  sql += `LIMIT ${this._startRow}`;
3885
3885
  }
3886
3886
  if (option.sync === SyncMode.Async) {
package/test-mysql.js CHANGED
@@ -89,7 +89,7 @@ export async function go2() {
89
89
  database: 'sportevent',
90
90
  debug: false
91
91
  },
92
- log: 'trace',
92
+ log: 'verbose',
93
93
  columnMode: ColumnMode.HUMP,
94
94
  sqlDir: 'E:/pro/my-sdk/baja-lite/xml',
95
95
  sqlMap: {