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.10.0 to 1.10.1

13

models/MessageEvent.js
const ExtendableEvent = require('./ExtendableEvent');
// https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/MessageEvent
const defaults = () => ({
data: null,
origin: '',
lastEventId: '',
source: null,
ports: []
});
class MessageEvent extends ExtendableEvent {
constructor(type, args) {
constructor(type, init) {
super();
this.data = args;
Object.assign(this, defaults(), init);
}

@@ -9,0 +16,0 @@ }

{
"name": "service-worker-mock",
"version": "1.10.0",
"version": "1.10.1",
"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