alexa-cookie2 4.1.1 → 4.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -49,6 +49,9 @@ Partly based on [Amazon Alexa Remote Control](http://blog.loetzimmer.de/2017/10/
49
49
  Thank you for that work.
50
50
 
51
51
  ## Changelog:
52
+ ### 4.1.2 (2022-07-19)
53
+ * (Apollon77) Prevent crash case
54
+
52
55
  ### 4.1.1 (2022-07-18)
53
56
  * (Apollon77/bbindreiter) Update used User-Agent for some requests
54
57
 
package/alexa-cookie.js CHANGED
@@ -397,7 +397,7 @@ function AlexaCookie() {
397
397
  };
398
398
 
399
399
  this.getDeviceAppName = () => {
400
- return _options.deviceAppName || defaultAppName;
400
+ return (_options && _options.deviceAppName) || defaultAppName;
401
401
  };
402
402
 
403
403
  const handleTokenRegistration = (_options, loginData, callback) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alexa-cookie2",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "Generate Cookie and CSRF for Alexa Remote",
5
5
  "author": {
6
6
  "name": "Apollon77",