We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4226241 + 7807b40 commit d507a48Copy full SHA for d507a48
packages/data-utils/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@virgilsecurity/data-utils",
3
- "version": "0.1.4",
+ "version": "0.1.5",
4
"description": "Library that contains different functions / classes that are used for data manipulation in different Virgil Security libraries.",
5
"main": "./dist/node.cjs.js",
6
"module": "./dist/node.es.js",
packages/data-utils/src/dataToUint8Array.ts
@@ -14,7 +14,7 @@ export const createDataToUint8ArrayFunction = (NodeBuffer: any) =>
14
if (
15
typeof data === 'object' &&
16
typeof data.value === 'string' &&
17
- typeof NodeBuffer.isEncoding(data.encoding)
+ NodeBuffer.isEncoding(data.encoding)
18
) {
19
return NodeBuffer.from(data.value, data.encoding);
20
}
0 commit comments