@cfpb/cfpb-atomic-component
Advanced tools
Comparing version 0.33.0 to 0.34.0
{ | ||
"name": "@cfpb/cfpb-atomic-component", | ||
"version": "0.33.0", | ||
"version": "0.34.0", | ||
"description": "Design System atomic component utilities", | ||
@@ -14,4 +14,4 @@ "less": "src/cfpb-atomic-component.less", | ||
], | ||
"gitHead": "efbec4df653635d61b08e9114c70ab17f20f08ac", | ||
"gitHead": "7ae82ebf5fe6c0416e41119591391232b7c2cf31", | ||
"type": "module" | ||
} |
@@ -106,5 +106,6 @@ /* ========================================================================== | ||
* If not supplied, it defaults to the `document`. | ||
* @param {object} config - Configuration will be provided to the Constructor's init() | ||
* @returns {Array} List of instances that were instantiated. | ||
*/ | ||
function instantiateAll(selector, Constructor, scope) { | ||
function instantiateAll(selector, Constructor, scope, config = {}) { | ||
const base = scope || document; | ||
@@ -119,3 +120,3 @@ const elements = base.querySelectorAll(selector); | ||
inst = new Constructor(element); | ||
inst.init(); | ||
inst.init(config); | ||
insts.push(inst); | ||
@@ -122,0 +123,0 @@ } |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
63789
1458
0