@pi-r/mssql 0.6.2 → 0.6.4

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/client/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import type { MSSQLDataSource } from '@e-mc/types/lib/db';
2
-
3
1
  import type { IDbSourceClient } from '@e-mc/db/types';
4
2
 
3
+ import type { MSSQLDataSource } from '../types';
4
+
5
5
  declare const MSSQL: IDbSourceClient<MSSQLDataSource>;
6
6
 
7
7
  export = MSSQL;
package/client/index.js CHANGED
@@ -422,7 +422,9 @@ async function executeBatchQuery(batch, options = '', outResult) {
422
422
  if (isOutputParameters(params)) {
423
423
  ({ input: params, output: paramsOutput } = params);
424
424
  }
425
- convertParameters.call(request, tedious.TYPES, params, false);
425
+ if (params) {
426
+ convertParameters.call(request, tedious.TYPES, params, false);
427
+ }
426
428
  if (paramsOutput) {
427
429
  convertParameters.call(request, tedious.TYPES, paramsOutput, true);
428
430
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/mssql",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "MSSQL client driver for E-mc.",
5
5
  "main": "client/index.js",
6
6
  "types": "client/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
12
- "url": "https://github.com/anpham6/pi-r.git",
12
+ "url": "git+https://github.com/anpham6/pi-r.git",
13
13
  "directory": "src/db/mssql"
14
14
  },
15
15
  "keywords": [
@@ -21,9 +21,9 @@
21
21
  "license": "MIT",
22
22
  "homepage": "https://github.com/anpham6/pi-r#readme",
23
23
  "dependencies": {
24
- "@e-mc/db": "^0.8.2",
25
- "@e-mc/types": "^0.8.2",
26
- "tedious": "^16.6.1",
24
+ "@e-mc/db": "^0.8.4",
25
+ "@e-mc/types": "^0.8.4",
26
+ "tedious": "^16.7.1",
27
27
  "tedious-connection-pool2": "^2.1.0"
28
28
  }
29
29
  }