service-worker-mock
Advanced tools
Comparing version 1.11.3 to 1.11.4
@@ -15,10 +15,10 @@ // stubs https://developer.mozilla.org/en-US/docs/Web/API/Headers | ||
append(name, value) { | ||
if (this._map.has(name)) { | ||
value = `${this._map.get(name)},${value}`; | ||
if (this._map.has(name.toLowerCase())) { | ||
value = `${this._map.get(name.toLowerCase())},${value}`; | ||
} | ||
this._map.set(name, value); | ||
this._map.set(name.toLowerCase(), value); | ||
} | ||
delete(name) { | ||
this._map.delete(name); | ||
this._map.delete(name.toLowerCase()); | ||
} | ||
@@ -35,7 +35,7 @@ | ||
get(name) { | ||
return this._map.has(name) ? this._map.get(name) : null; | ||
return this._map.has(name.toLowerCase()) ? this._map.get(name.toLowerCase()) : null; | ||
} | ||
has(name) { | ||
return this._map.has(name); | ||
return this._map.has(name.toLowerCase()); | ||
} | ||
@@ -48,3 +48,3 @@ | ||
set(name, value) { | ||
this._map.set(name, value); | ||
this._map.set(name.toLowerCase(), value); | ||
} | ||
@@ -51,0 +51,0 @@ |
{ | ||
"name": "service-worker-mock", | ||
"version": "1.11.3", | ||
"version": "1.11.4", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
25205