@balena/sbvr-types
Advanced tools
Comparing version
@@ -7,2 +7,7 @@ # Change Log | ||
# v3.4.16 | ||
## (2022-11-21) | ||
* Add type WebResource [Ramiro González Maciel] | ||
# v3.4.15 | ||
@@ -9,0 +14,0 @@ ## (2022-11-18) |
@@ -21,2 +21,3 @@ "use strict"; | ||
const Time = require("./types/time"); | ||
const WebResource = require("./types/web-resource"); | ||
module.exports = { | ||
@@ -42,3 +43,4 @@ 'Big Integer': BigInteger, | ||
Time, | ||
WebResource, | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -27,3 +27,3 @@ "use strict"; | ||
try { | ||
return new Buffer(value, 'hex'); | ||
return Buffer.from(value, 'hex'); | ||
} | ||
@@ -30,0 +30,0 @@ catch (e) { |
{ | ||
"name": "@balena/sbvr-types", | ||
"version": "3.4.15", | ||
"version": "3.4.16-web-resource-2-6e361628220da4c19984ed944cdcc5c1d69d4fa6-1", | ||
"description": "SBVR type definitions.", | ||
@@ -11,5 +11,6 @@ "main": "out", | ||
"test": "mocha", | ||
"test-web-resource": "mocha -g WebResource", | ||
"posttest": "npm run lint", | ||
"prepublish": "require-npm4-to-publish", | ||
"prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\"; tsc", | ||
"prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\"; rm -rf out && tsc", | ||
"prettify": "balena-lint -e js -e ts --fix src test" | ||
@@ -44,4 +45,4 @@ }, | ||
"require-npm4-to-publish": "^1.0.0", | ||
"ts-node": "^10.7.0", | ||
"typescript": "^4.6.3" | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.7.4" | ||
}, | ||
@@ -63,4 +64,4 @@ "lint-staged": { | ||
"versionist": { | ||
"publishedAt": "2022-11-18T01:46:07.427Z" | ||
"publishedAt": "2022-11-21T18:05:15.488Z" | ||
} | ||
} |
@@ -22,2 +22,3 @@ import type { SbvrType } from './type-utils'; | ||
import * as Time from './types/time'; | ||
import * as WebResource from './types/web-resource'; | ||
@@ -44,2 +45,3 @@ export = { | ||
Time, | ||
WebResource, | ||
} as { | ||
@@ -46,0 +48,0 @@ Hashed: SbvrType & { |
@@ -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}`); |
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
Sorry, the diff of this file is not supported yet
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
122138
14.56%113
21.51%1982
21.08%2
100%2
100%