@balena/sbvr-types
Advanced tools
Comparing version 4.0.0-4-x-99cdcc0b418c931c3a1c71109da12ed4c12e4c90-1 to 4.0.0-build-4-x-088cd25a004362b8ebd6f8a8e502a135d5198f09-1
@@ -10,5 +10,16 @@ # Change Log | ||
* Switch `JSON` to use `JSON` db type instead of `TEXT` [Pagan Gazzard] | ||
* Switch `Boolean` to use `BOOLEAN` db type instead of `INTEGER` [Pagan Gazzard] | ||
* Assert that JSON input typeof is object [Josh Bowling] | ||
# v3.4.17 | ||
## (2022-11-25) | ||
* Update dependencies [Pagan Gazzard] | ||
# v3.4.16 | ||
## (2022-11-25) | ||
* Switch from `new Buffer` to `Buffer.from` to avoid deprecation warnings [Pagan Gazzard] | ||
# v3.4.15 | ||
@@ -15,0 +26,0 @@ ## (2022-11-18) |
@@ -27,3 +27,3 @@ "use strict"; | ||
try { | ||
return new Buffer(value, 'hex'); | ||
return Buffer.from(value, 'hex'); | ||
} | ||
@@ -30,0 +30,0 @@ catch (e) { |
@@ -6,5 +6,5 @@ "use strict"; | ||
exports.types = { | ||
postgres: 'TEXT', | ||
mysql: 'TEXT', | ||
websql: 'TEXT', | ||
postgres: 'JSONB', | ||
mysql: 'JSON', | ||
websql: 'JSON', | ||
odata: { | ||
@@ -11,0 +11,0 @@ name: 'Edm.String', |
{ | ||
"name": "@balena/sbvr-types", | ||
"version": "4.0.0-4-x-99cdcc0b418c931c3a1c71109da12ed4c12e4c90-1", | ||
"version": "4.0.0-build-4-x-088cd25a004362b8ebd6f8a8e502a135d5198f09-1", | ||
"description": "SBVR type definitions.", | ||
@@ -21,3 +21,3 @@ "main": "out", | ||
"optionalDependencies": { | ||
"bcrypt": "^5.0.1", | ||
"bcrypt": "^5.1.0", | ||
"bcryptjs": "^2.4.3", | ||
@@ -27,21 +27,21 @@ "sha.js": "^2.4.11" | ||
"devDependencies": { | ||
"@balena/lint": "^6.2.0", | ||
"@balena/lint": "^6.2.1", | ||
"@types/bcrypt": "^5.0.0", | ||
"@types/chai": "^4.3.0", | ||
"@types/chai": "^4.3.4", | ||
"@types/chai-as-promised": "^7.1.5", | ||
"@types/chai-datetime": "^0.0.37", | ||
"@types/lodash": "^4.14.181", | ||
"@types/lodash": "^4.14.190", | ||
"@types/mocha": "^10.0.0", | ||
"@types/sha.js": "^2.4.0", | ||
"bluebird": "^3.7.2", | ||
"chai": "^4.3.6", | ||
"chai": "^4.3.7", | ||
"chai-as-promised": "^7.1.1", | ||
"chai-datetime": "^1.8.0", | ||
"husky": "^8.0.0", | ||
"lint-staged": "^13.0.0", | ||
"husky": "^8.0.2", | ||
"lint-staged": "^13.0.4", | ||
"lodash": "^4.17.21", | ||
"mocha": "^10.0.0", | ||
"mocha": "^10.1.0", | ||
"require-npm4-to-publish": "^1.0.0", | ||
"ts-node": "^10.7.0", | ||
"typescript": "^4.6.3" | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.9.3" | ||
}, | ||
@@ -63,4 +63,4 @@ "lint-staged": { | ||
"versionist": { | ||
"publishedAt": "2022-11-25T15:16:02.047Z" | ||
"publishedAt": "2022-11-25T16:31:51.679Z" | ||
} | ||
} |
@@ -29,3 +29,3 @@ import * as TypeUtils from '../type-utils'; | ||
try { | ||
return new Buffer(value, 'hex'); | ||
return Buffer.from(value, 'hex'); | ||
} catch (e: any) { | ||
@@ -32,0 +32,0 @@ throw new Error(`could not be converted to binary: ${e.message}`); |
import * as TypeUtils from '../type-utils'; | ||
export const types = { | ||
postgres: 'TEXT', | ||
mysql: 'TEXT', | ||
websql: 'TEXT', | ||
postgres: 'JSONB', | ||
mysql: 'JSON', | ||
websql: 'JSON', | ||
odata: { | ||
@@ -8,0 +8,0 @@ name: 'Edm.String', // TODO: What should this really be? |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109131