Socket
Socket
Sign inDemoInstall

service-worker-mock

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

service-worker-mock - npm Package Compare versions

Comparing version 1.11.3 to 1.11.4

14

models/Headers.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc