New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

html-encode

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-encode - npm Package Compare versions

Comparing version
2.1.8
to
2.1.9
+1
-1
package.json

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/Kikobeats/html-encode",
"version": "2.1.8",
"version": "2.1.9",
"main": "index.js",

@@ -8,0 +8,0 @@ "author": {

@@ -26,3 +26,3 @@ # html-encode

const { body: buffer, headers } = await got(url, { responseType: 'buffer' })
const str = toUTF8(buffer, headers['content-type'])
const str = toUTF8(buffer, headers['content-type']?.split(';')[0].toLowerCase())
console.log(str)

@@ -29,0 +29,0 @@ })()