From 16545c5fd171cbcaaf2d6facc555e6d169a06df9 Mon Sep 17 00:00:00 2001 From: Bernd Bindreiter Date: Sat, 9 Sep 2023 21:31:43 +0200 Subject: [PATCH] Update to 5.0.41 to allow setting of custom push dispatch url --- nodes/alexa-remote-account.html | 5 +++++ nodes/alexa-remote-account.js | 4 ++-- package.json | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/nodes/alexa-remote-account.html b/nodes/alexa-remote-account.html index 87b2a27..34bf6fc 100644 --- a/nodes/alexa-remote-account.html +++ b/nodes/alexa-remote-account.html @@ -61,6 +61,10 @@ +
+ + +
@@ -231,6 +235,7 @@

References

cookieFile: { required: false, value: ''}, refreshInterval: { required: false, value: '3'}, alexaServiceHost: { required: true, value: 'pitangui.amazon.com' }, + pushDispatchHost: { required: false, value: '' }, amazonPage: { required: true, value: 'amazon.com' }, acceptLanguage: { required: false, value: 'en-US' }, onKeywordInLanguage: { required: false, value: 'on' }, diff --git a/nodes/alexa-remote-account.js b/nodes/alexa-remote-account.js index 284c306..f30923c 100644 --- a/nodes/alexa-remote-account.js +++ b/nodes/alexa-remote-account.js @@ -304,7 +304,7 @@ module.exports = function (RED) { function AlexaRemoteAccountNode(input) { RED.nodes.createNode(this, input); - tools.assign(this, ['authMethod', 'proxyOwnIp', 'proxyPort', 'cookieFile', 'refreshInterval', 'alexaServiceHost', 'amazonPage', 'acceptLanguage', 'onKeywordInLanguage', 'userAgent'], input); + tools.assign(this, ['authMethod', 'proxyOwnIp', 'proxyPort', 'cookieFile', 'refreshInterval', 'alexaServiceHost', 'pushDispatchHost', 'amazonPage', 'acceptLanguage', 'onKeywordInLanguage', 'userAgent'], input); this.usePushConnection = input.usePushConnection === 'on'; this.autoInit = input.autoInit === 'on'; this.name = input.name; @@ -413,7 +413,7 @@ module.exports = function (RED) { // this.initing = true; let config = {}; - tools.assign(config, ['proxyOwnIp', 'proxyPort', 'alexaServiceHost', 'amazonPage', 'acceptLanguage', 'onKeywordInLanguage', 'userAgent', 'usePushConnection'], this); + tools.assign(config, ['proxyOwnIp', 'proxyPort', 'alexaServiceHost', 'pushDispatchHost', 'amazonPage', 'acceptLanguage', 'onKeywordInLanguage', 'userAgent', 'usePushConnection'], this); config.logger = this.debugCb; config.refreshCookieInterval = 0; config.proxyLogLevel = 'warn'; diff --git a/package.json b/package.json index 30ad34c..8a209a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-alexa-remote2-applestrudel", - "version": "5.0.40", + "version": "5.0.41", "author": { "name": "bbindreiter", "email": "bernd.bindreiter@gmail.com" @@ -43,7 +43,7 @@ "url": "https://github.com/bbindreiter/node-red-contrib-alexa-remote2-applestrudel/issues" }, "dependencies": { - "alexa-remote2": "^6.0.1" + "alexa-remote2": "^6.1.1" }, "engines": { "node": ">=16.0.0"