service-worker-mock
Advanced tools
Comparing version 1.10.0 to 1.10.1
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": { |
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
23358
616