alexa-cookie2
Advanced tools
Comparing version
@@ -46,3 +46,3 @@ /* jshint -W097 */ | ||
if (!headers || !headers['set-cookie']) return Cookie; | ||
const cookies = cookieTools.parse(Cookie); | ||
const cookies = cookieTools.parse(Cookie || ''); | ||
for (let cookie of headers['set-cookie']) { | ||
@@ -49,0 +49,0 @@ cookie = cookie.match(/^([^=]+)=([^;]+);.*/); |
@@ -10,3 +10,3 @@ /* jshint -W097 */ | ||
const express = require('express'); | ||
const proxy = require('http-proxy-middleware'); | ||
const proxy = require('http-proxy-middleware').createProxyMiddleware; | ||
const querystring = require('querystring'); | ||
@@ -13,0 +13,0 @@ const cookieTools = require('cookie'); |
{ | ||
"name": "alexa-cookie2", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Generate Cookie and CSRF for Alexa Remote", | ||
@@ -26,3 +26,3 @@ "author": { | ||
"express": "^4.17.1", | ||
"http-proxy-middleware": "^0.20.0", | ||
"http-proxy-middleware": "^1.0.2", | ||
"http-proxy-response-rewrite": "^0.0.1", | ||
@@ -29,0 +29,0 @@ "https": "^1.0.0", |
@@ -49,2 +49,5 @@ # alexa-cookie | ||
### 3.0.3 (2020.03.16) | ||
* (Apollon77) Prevent error for empty Cookie cases (on communication errors) | ||
### 3.0.2 (2019.12.27) | ||
@@ -51,0 +54,0 @@ * (Apollon77) Prevent error when no headers are existent |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
57657
0.22%98
3.16%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
Updated