Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-hikvision-ultimate

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-hikvision-ultimate - npm Package Compare versions

Comparing version 0.0.22 to 0.0.23

4

CHANGELOG.md

@@ -5,2 +5,6 @@ # node-red-contrib-hikvision-ultimate

<p>
<b>Version 0.0.23 GA VERSION WITH STABLE BEHAVOUR</b> December 2020<br/>
- NEW: added "http" and "https" protocol selection.<br/>
</p>
<p>
<b>Version 0.0.22 GA VERSION WITH STABLE BEHAVOUR</b> December 2020<br/>

@@ -7,0 +11,0 @@ - NEW: added "basic" authentication as well.<br/>

5

nodes/ANPR-config.js

@@ -14,2 +14,3 @@

node.port = config.port;
node.protocol = config.protocol || "http";
node.nodeClients = []; // Stores the registered clients

@@ -51,3 +52,3 @@ node.isConnected = true; // Assume it's connected, to signal the disconnection on start

var client;
if (node.authentication === "digest") client= new DigestFetch(node.credentials.user, node.credentials.password); // Instantiate the fetch client.
if (node.authentication === "digest") client = new DigestFetch(node.credentials.user, node.credentials.password); // Instantiate the fetch client.
if (node.authentication === "basic") client = new DigestFetch(node.credentials.user, node.credentials.password, { basic: true }); // Instantiate the fetch client.

@@ -72,3 +73,3 @@

try {
const response = await client.fetch("http://" + node.host + "/ISAPI/Traffic/channels/1/vehicleDetect/plates", options);
const response = await client.fetch(node.protocol + "://" + node.host + "/ISAPI/Traffic/channels/1/vehicleDetect/plates", options);
if (response.status >= 200 && response.status <= 300) {

@@ -75,0 +76,0 @@ //node.setAllClientsStatus({ fill: "green", shape: "ring", text: "Connected." });

@@ -15,2 +15,3 @@

node.port = config.port;
node.protocol = config.protocol || "http";
node.nodeClients = []; // Stores the registered clients

@@ -143,3 +144,3 @@ node.isConnected = true; // Assumes, that is already connected.

const response = await client.fetch("http://" + node.host + "/ISAPI/Event/notification/alertStream", options);
const response = await client.fetch(node.protocol + "://" + node.host + "/ISAPI/Event/notification/alertStream", options);

@@ -146,0 +147,0 @@ if (response.status >= 200 && response.status <= 300) {

{
"name": "node-red-contrib-hikvision-ultimate",
"version": "0.0.22",
"version": "0.0.23",
"description": "A native set of node for Hikvision Cameras, Alarms, Radars etc.",

@@ -5,0 +5,0 @@ "author": "Supergiovane (https://github.com/Supergiovane)",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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