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

node-red-contrib-sonospollytts

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-sonospollytts - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

2

CHANGELOG.md
# Node-Red
<p>
<b>Version 0.0.12</b><br/>
<b>Version 0.0.13</b><br/>
- Minor fixes

@@ -5,0 +5,0 @@ <br/>

{
"name": "node-red-contrib-sonospollytts",
"version": "0.0.12",
"version": "0.0.13",
"description": "Node-Red TTS with Sonos and Amazon Polly",

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

@@ -485,34 +485,22 @@ module.exports = function(RED) {

if(sHailingFile=="hailing.mp3"){
// The hailing file is the standard file on GitHub
pathExists(path.join(node.dir, sHailingFile)).then(res => {
if (res) {
// Copy the file from installation dir to /tmp
RED.log.info('Moving hailing.mp3 to temp dir');
try {
fs.createReadStream(sHailingFile).pipe(fs.createWriteStream(path.join(config.dir, sHailingFile)));
} catch (error) {
}
/* // Download the file via GitHub
RED.log.info('Download hailing.mp3 from GitHub');
var http = require('http');
var request = http.get("http://github.com/Supergiovane/node-red-contrib-sonospollytts/blob/master/hailing.mp3?raw=true", function(response) {
var file = fs.createWriteStream(path.join(node.dir, sHailingFile));
response.pipe(file);
file.on('finish', function() {
file.close();
RED.log.info('Finish downloading hailing.mp3 from GitHub');
});
});*/
}
});
}else if(sHailingFile==""){
// Remove the hailing.mp3 default file
RED.log.info('Moving hailing.mp3 to temp dir');
try {
RED.log.info('Deleting hailing.mp3 from temp dir');
fs.unlinkSync(path.join(config.dir, sHailingFile));
fs.createReadStream(sHailingFile).pipe(fs.createWriteStream(path.join(config.dir, sHailingFile)));
} catch (error) {
}
}else if(sHailingFile==""){
// Remove the hailing.mp3 default file
RED.log.info('Deleting hailing.mp3 from temp dir');
pathExists(path.join(config.dir, sHailingFile)).then(res => {
if (res) {
fs.unlinkSync(path.join(config.dir, "hailing.mp3"));
}
});
}

@@ -519,0 +507,0 @@

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