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

@scrypted/amcrest

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scrypted/amcrest - npm Package Compare versions

Comparing version 0.0.56 to 0.0.57

5

package.json
{
"name": "@scrypted/amcrest",
"version": "0.0.56",
"version": "0.0.57",
"description": "Amcrest Plugin for Scrypted",

@@ -36,3 +36,6 @@ "author": "Scrypted",

"multiparty": "^4.2.2"
},
"devDependencies": {
"@types/node": "^16.11.0"
}
}

1

src/amcrest-api.ts

@@ -12,2 +12,3 @@ import AxiosDigestAuth from '@koush/axios-digest-auth';

TalkHangup = "Code=_DoTalkAction_;action=Hangup",
TalkPulse = "Code=_DoTalkAction_;action=Pulse",
AlarmIPCStart = "Code=AlarmIPC;action=Start",

@@ -14,0 +15,0 @@ AlarmIPCStop = "Code=AlarmIPC;action=Stop",

@@ -37,2 +37,4 @@ import sdk, { MediaObject, Camera, ScryptedInterface, Setting, ScryptedDeviceType, Intercom, FFMpegInput, ScryptedMimeTypes } from "@scrypted/sdk";

let pulseTimeout: NodeJS.Timeout;
events.on('close', () => ret.emit('error', new Error('close')));

@@ -63,2 +65,7 @@ events.on('error', e => ret.emit('error', e));

}
else if (event === AmcrestEvent.TalkPulse) {
clearTimeout(pulseTimeout);
pulseTimeout = setTimeout(() => this.binaryState = false, 30000);
this.binaryState = true;
}
})

@@ -65,0 +72,0 @@ }

Sorry, the diff of this file is too big to display

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