unprint 0.16.0 → 0.16.1

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 +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unprint",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
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
@@ -176,7 +176,12 @@ function queryContent(context, selector, customOptions) {
176
176
  }
177
177
 
178
178
  function queryContents(context, selector, customOptions) {
179
- const options = { ...context.options, ...customOptions };
179
+ const options = {
180
+ ...context.options,
181
+ trim: true,
182
+ ...customOptions,
183
+ };
184
+
180
185
  const targets = queryElements(context, selector, options);
181
186
 
182
187
  return targets.map((target) => extractContent(target, options)).filter(Boolean);