@balena/sbvr-types
Advanced tools
Comparing version
@@ -7,2 +7,7 @@ # Change Log | ||
# v3.4.16 | ||
## (2022-11-25) | ||
* Switch from `new Buffer` to `Buffer.from` to avoid deprecation warnings [Pagan Gazzard] | ||
# v3.4.15 | ||
@@ -9,0 +14,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) { |
{ | ||
"name": "@balena/sbvr-types", | ||
"version": "3.4.15", | ||
"version": "3.4.16-build-buffer-from-e671336ee310572b02253ba75d45b15d2c7acc76-1", | ||
"description": "SBVR type definitions.", | ||
@@ -61,4 +61,4 @@ "main": "out", | ||
"versionist": { | ||
"publishedAt": "2022-11-18T01:46:07.427Z" | ||
"publishedAt": "2022-11-25T16:20:17.429Z" | ||
} | ||
} |
@@ -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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
107127
0.48%2
100%