Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.7.2 to 1.8.0

models/MessageEvent.js

2

index.js

@@ -23,2 +23,3 @@ // If the WHATWG URL implementation is available via the first-party `url`

const ServiceWorkerRegistration = require('./models/ServiceWorkerRegistration');
const MessageEvent = require('./models/MessageEvent');

@@ -70,2 +71,3 @@ const eventHandler = require('./utils/eventHandler');

this.URL = URL;
this.MessageEvent = MessageEvent;

@@ -72,0 +74,0 @@ // Instance variable to avoid issues with `this`

5

models/Response.js

@@ -12,3 +12,3 @@ // stubs https://developer.mozilla.org/en-US/docs/Web/API/Response

this.redirected = false;
this.url = 'http://example.com/asset';
this.url = (init && init.url) || 'http://example.com/asset';
}

@@ -20,3 +20,4 @@

statusText: this.statusText,
headers: this.headers
headers: this.headers,
url: this.url
});

@@ -23,0 +24,0 @@ }

{
"name": "service-worker-mock",
"version": "1.7.2",
"version": "1.8.0",
"main": "index.js",

@@ -5,0 +5,0 @@ "repository": {

@@ -5,2 +5,3 @@ const ExtendableEvent = require('../models/ExtendableEvent');

const PushEvent = require('../models/PushEvent');
const MessageEvent = require('../models/MessageEvent');

@@ -15,2 +16,4 @@ function createEvent(event, args) {

return new PushEvent(args);
case 'message':
return new MessageEvent('message', args);
default:

@@ -17,0 +20,0 @@ return new ExtendableEvent();

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