@azure/core-util
Advanced tools
Comparing version 1.5.1-alpha.20231002.2 to 1.5.1-alpha.20231010.2
@@ -56,3 +56,3 @@ // Copyright (c) Microsoft Corporation. | ||
export function uint8ArrayToUtf8String(uint8Array) { | ||
const decoder = new TextDecoder("utf-8"); | ||
const decoder = new TextDecoder(); | ||
const dataString = decoder.decode(uint8Array); | ||
@@ -66,3 +66,3 @@ return dataString; | ||
export function utf8StringToUint8Array(value) { | ||
return new TextEncoder("utf-8").encode(value); | ||
return new TextEncoder().encode(value); | ||
} | ||
@@ -69,0 +69,0 @@ /** |
{ | ||
"name": "@azure/core-util", | ||
"version": "1.5.1-alpha.20231002.2", | ||
"version": "1.5.1-alpha.20231010.2", | ||
"description": "Core library for shared utility methods", | ||
@@ -68,3 +68,3 @@ "sdk-type": "client", | ||
"engines": { | ||
"node": ">=14.0.0" | ||
"node": ">=16.0.0" | ||
}, | ||
@@ -84,3 +84,3 @@ "homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-util/", | ||
"@types/mocha": "^10.0.0", | ||
"@types/node": "^14.0.0", | ||
"@types/node": "^16.0.0", | ||
"@types/sinon": "^10.0.0", | ||
@@ -87,0 +87,0 @@ "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb", |
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
125996