New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@balena/sbvr-types

Package Overview
Dependencies
Maintainers
1
Versions
225
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@balena/sbvr-types - npm Package Compare versions

Comparing version

to
4.0.0-build-4-x-088cd25a004362b8ebd6f8a8e502a135d5198f09-1

11

CHANGELOG.md

@@ -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)

2

out/types/file.js

@@ -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