unprint 0.18.25 → 0.18.26

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.18.25",
3
+ "version": "0.18.26",
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
@@ -383,12 +383,12 @@ function prefixUrl(urlPath, originUrl, customOptions) {
383
383
  }
384
384
 
385
385
  if (!originUrl) {
386
- // path without protocol, i.e. //www.example.com
386
+ // path including origin without protocol, i.e. //www.example.com
387
387
  if (options.protocol && /^\/\//.test(urlPath)) {
388
388
  return `${options.protocol}:${urlPath}`;
389
389
  }
390
390
 
391
- return null;
391
+ return urlPath;
392
392
  }
393
393
 
394
394
  const origin = options.forceProtocol && options.protocol