mssql-cr-layer 2.0.11 → 2.0.14

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 (3) hide show
  1. package/LICENSE +1 -1
  2. package/package.json +6 -6
  3. package/src/index.js +2 -0
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021 Andre Gloria <andredagloria@gmail.com> (andrglo.com)
3
+ Copyright (c) 2022 Andre Gloria <andredagloria@gmail.com> (andrglo.com)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mssql-cr-layer",
3
- "version": "2.0.11",
3
+ "version": "2.0.14",
4
4
  "description": "A MS SQL Server interface layer for common requests",
5
5
  "repository": "andrglo/mssql-cr-layer",
6
6
  "author": {
@@ -20,11 +20,11 @@
20
20
  "interface"
21
21
  ],
22
22
  "devDependencies": {
23
- "chai": "^4.3.4",
24
- "coveralls": "^3.1.0",
25
- "eslint": "^7.26.0",
23
+ "chai": "^4.3.6",
24
+ "coveralls": "^3.1.1",
25
+ "eslint": "^8.9.0",
26
26
  "eslint-config-google": "^0.14.0",
27
- "mocha": "^8.4.0",
27
+ "mocha": "^9.2.1",
28
28
  "nyc": "^15.1.0"
29
29
  },
30
30
  "scripts": {
@@ -35,6 +35,6 @@
35
35
  "license": "MIT",
36
36
  "dependencies": {
37
37
  "lodash.every": "^4.6.0",
38
- "mssql": "^7.0.0"
38
+ "mssql": "^8.0.2"
39
39
  }
40
40
  }
package/src/index.js CHANGED
@@ -324,6 +324,8 @@ function getType(value, param) {
324
324
  type = mssql.DateTime2
325
325
  } else if (typeof value === 'number') {
326
326
  type = mssql.Decimal(('' + value).length, decimalPlaces(value))
327
+ } else if (typeof value === 'boolean') {
328
+ type = mssql.Bit
327
329
  }
328
330
  }
329
331
  return type