unprint 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/app.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unprint",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Simplify common web scraping tasks while staying in control of the data.",
5
5
  "main": "src/app.js",
6
6
  "scripts": {
package/src/app.js CHANGED
@@ -592,7 +592,7 @@ function initQueryFns(fns, context) {
592
592
  }]));
593
593
  }
594
594
 
595
- function init(elementOrHtml, selector, options) {
595
+ function init(elementOrHtml, selector, options = {}) {
596
596
  if (!elementOrHtml) {
597
597
  return null;
598
598
  }
@@ -633,7 +633,7 @@ function init(elementOrHtml, selector, options) {
633
633
  return context;
634
634
  }
635
635
 
636
- function initAll(context, selector, options) {
636
+ function initAll(context, selector, options = {}) {
637
637
  if (Array.isArray(context)) {
638
638
  return context.map((element) => init(element, selector, options));
639
639
  }