@fastly/esi
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -55,6 +55,3 @@ /* | ||
} | ||
const value = this.map[key]; | ||
if (value == null) { | ||
return undefined; | ||
} | ||
const value = this.map[key] ?? ''; | ||
return quoteString(value); | ||
@@ -152,10 +149,6 @@ } | ||
constructor(url, headers) { | ||
const httpAcceptLanguageValue = headers?.get('accept-language'); | ||
if (httpAcceptLanguageValue != null) { | ||
this.values['HTTP_ACCEPT_LANGUAGE'] = new EsiAcceptLanguageVariable(httpAcceptLanguageValue); | ||
} | ||
const httpCookieValue = headers?.get('cookie'); | ||
if (httpCookieValue != null) { | ||
this.values['HTTP_COOKIE'] = new EsiCookieVariable(httpCookieValue); | ||
} | ||
const httpAcceptLanguageValue = headers?.get('accept-language') ?? ''; | ||
this.values['HTTP_ACCEPT_LANGUAGE'] = new EsiAcceptLanguageVariable(httpAcceptLanguageValue); | ||
const httpCookieValue = headers?.get('cookie') ?? ''; | ||
this.values['HTTP_COOKIE'] = new EsiCookieVariable(httpCookieValue); | ||
const httpHostValue = headers?.get('host'); | ||
@@ -162,0 +155,0 @@ if (httpHostValue != null) { |
{ | ||
"name": "@fastly/esi", | ||
"description": "ESI implementation for JavaScript, using the modern fetch and streaming APIs.", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"repository": { | ||
@@ -37,2 +37,3 @@ "type": "git", | ||
"README.md", | ||
"CHANGELOG.md", | ||
"SECURITY.md" | ||
@@ -39,0 +40,0 @@ ], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
122106
45
2817