@material/auto-init
Advanced tools
Comparing version 15.0.0-canary.a16dbd1a6.0 to 15.0.0-canary.a246a4439.0
@@ -6,4 +6,4 @@ # Change Log | ||
# [15.0.0-canary.a16dbd1a6.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.a16dbd1a6.0) (2023-02-04) | ||
# [15.0.0-canary.a246a4439.0](https://github.com/material-components/material-components-web/compare/v14.0.0...v15.0.0-canary.a246a4439.0) (2023-09-18) | ||
**Note:** Version bump only for package @material/auto-init |
@@ -202,17 +202,17 @@ /** | ||
var CONSOLE_WARN = console.warn.bind(console); | ||
function emit(evtType, evtData, shouldBubble) { | ||
function emit(eventType, eventData, shouldBubble) { | ||
if (shouldBubble === void 0) { | ||
shouldBubble = false; | ||
} | ||
var evt; | ||
var event; | ||
if (typeof CustomEvent === 'function') { | ||
evt = new CustomEvent(evtType, { | ||
event = new CustomEvent(eventType, { | ||
bubbles: shouldBubble, | ||
detail: evtData | ||
detail: eventData | ||
}); | ||
} else { | ||
evt = document.createEvent('CustomEvent'); | ||
evt.initCustomEvent(evtType, shouldBubble, false, evtData); | ||
event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent(eventType, shouldBubble, false, eventData); | ||
} | ||
document.dispatchEvent(evt); | ||
document.dispatchEvent(event); | ||
} | ||
@@ -219,0 +219,0 @@ /* istanbul ignore next: optional argument is not a branch statement */ |
14
index.js
@@ -29,16 +29,16 @@ /** | ||
var CONSOLE_WARN = console.warn.bind(console); | ||
function emit(evtType, evtData, shouldBubble) { | ||
function emit(eventType, eventData, shouldBubble) { | ||
if (shouldBubble === void 0) { shouldBubble = false; } | ||
var evt; | ||
var event; | ||
if (typeof CustomEvent === 'function') { | ||
evt = new CustomEvent(evtType, { | ||
event = new CustomEvent(eventType, { | ||
bubbles: shouldBubble, | ||
detail: evtData, | ||
detail: eventData, | ||
}); | ||
} | ||
else { | ||
evt = document.createEvent('CustomEvent'); | ||
evt.initCustomEvent(evtType, shouldBubble, false, evtData); | ||
event = document.createEvent('CustomEvent'); | ||
event.initCustomEvent(eventType, shouldBubble, false, eventData); | ||
} | ||
document.dispatchEvent(evt); | ||
document.dispatchEvent(event); | ||
} | ||
@@ -45,0 +45,0 @@ /* istanbul ignore next: optional argument is not a branch statement */ |
{ | ||
"name": "@material/auto-init", | ||
"description": "Declarative, easy-to-use auto-initialization for Material Components for the web", | ||
"version": "15.0.0-canary.a16dbd1a6.0", | ||
"version": "15.0.0-canary.a246a4439.0", | ||
"main": "dist/mdc.autoInit.js", | ||
@@ -15,6 +15,6 @@ "module": "index.js", | ||
"dependencies": { | ||
"@material/base": "15.0.0-canary.a16dbd1a6.0", | ||
"@material/base": "15.0.0-canary.a246a4439.0", | ||
"tslib": "^2.1.0" | ||
}, | ||
"gitHead": "6b1923aa24f460ae50c61296787e46f524bcf15c" | ||
"gitHead": "40201df8b7e53b61aead4acdfa34b48fb1d155b8" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
50059
+ Added@material/base@15.0.0-canary.a246a4439.0(transitive)
- Removed@material/base@15.0.0-canary.a16dbd1a6.0(transitive)