@pi-r/mssql 0.6.11 → 0.6.12

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.
Files changed (2) hide show
  1. package/client/index.js +5 -4
  2. package/package.json +3 -3
package/client/index.js CHANGED
@@ -253,9 +253,9 @@ async function executeBatchQuery(batch, options = '', outResult) {
253
253
  if (length === 0) {
254
254
  return [];
255
255
  }
256
- let parallel, connectOnce, errorQuery, sessionKey, outCacheMiss;
256
+ let parallel, connectOnce, errorQuery, errorAsEmpty, sessionKey, outCacheMiss;
257
257
  if ((0, types_1.isPlainObject)(options)) {
258
- ({ parallel, connectOnce, errorQuery, sessionKey, outCacheMiss } = options);
258
+ ({ parallel, connectOnce, errorQuery, errorAsEmpty, sessionKey, outCacheMiss } = options);
259
259
  }
260
260
  else {
261
261
  if (typeof options === 'string') {
@@ -511,11 +511,12 @@ async function executeBatchQuery(batch, options = '', outResult) {
511
511
  }
512
512
  }
513
513
  return this.processRows(batch, tasks, {
514
+ parallel,
515
+ errorAsEmpty,
514
516
  disconnect: () => {
515
517
  clients.forEach(item => item.close());
516
518
  pools.forEach(item => item.release());
517
- },
518
- parallel
519
+ }
519
520
  }, outResult);
520
521
  }
521
522
  exports.executeBatchQuery = executeBatchQuery;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/mssql",
3
- "version": "0.6.11",
3
+ "version": "0.6.12",
4
4
  "description": "MSSQL client driver for E-mc.",
5
5
  "main": "client/index.js",
6
6
  "types": "client/index.d.ts",
@@ -21,8 +21,8 @@
21
21
  "license": "MIT",
22
22
  "homepage": "https://github.com/anpham6/pi-r#readme",
23
23
  "dependencies": {
24
- "@e-mc/db": "^0.8.29",
25
- "@e-mc/types": "^0.8.29",
24
+ "@e-mc/db": "^0.8.31",
25
+ "@e-mc/types": "^0.8.31",
26
26
  "tedious": "^16.7.1",
27
27
  "tedious-connection-pool2": "^2.1.0"
28
28
  }