New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hap-node-client

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hap-node-client - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

2

lib/eventedHttpClient.js

@@ -46,3 +46,3 @@ // Monkey patch before you require http for the first time.

// debug("res", data.toString());
if (response.headers['Transfer-Encoding'] && response.headers['Transfer-Encoding'].toLowerCase() === 'chunked' && data.slice(-7).toString() !== '\r\n0\r\n\r\n') {
if (response.headers && response.headers['Transfer-Encoding'] && response.headers['Transfer-Encoding'].toLowerCase() === 'chunked' && data.slice(-7).toString() !== '\r\n0\r\n\r\n') {
this.chunked = true;

@@ -49,0 +49,0 @@ buffer.push(data);

@@ -129,3 +129,3 @@ // Borrowed and heaviliy modifed from https://github.com/miguelmota/http-message-parser

if (body && body.length) {
if (result.headers['Content-Type'] === 'application/hap+json' || result.headers['Content-Type'] === 'application/json') {
if ((result.headers && result.headers['Content-Type'] === 'application/hap+json') || (result.headers && result.headers['Content-Type'] === 'application/json')) {
// JSON.parse JSON message's

@@ -132,0 +132,0 @@ try {

{
"name": "hap-node-client",
"version": "0.0.8",
"version": "0.0.9",
"description": "Client for Hap-NodeJS",

@@ -5,0 +5,0 @@ "main": "HAPNodeJSClient.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc