+1
-2
| 'use strict' | ||
| const path = require('path') | ||
| const { pathToFileURL } = require('url-file-url') | ||
| const { encode, decode } = require('hypercore-id-encoding') | ||
@@ -44,3 +43,3 @@ const FILE = 'file:' | ||
| hash, | ||
| origin: !isPath ? this.normalize(`${protocol}//${hostname}${pathname}`) : this.normalize(pathToFileURL(url).href), | ||
| origin: this.normalize(`${protocol}//${hostname}${pathname}`), | ||
| drive: { | ||
@@ -47,0 +46,0 @@ key: null, |
+2
-3
| { | ||
| "name": "pear-link", | ||
| "version": "3.0.1", | ||
| "version": "3.0.2", | ||
| "description": "Parse Pear Links", | ||
| "main": "index.js", | ||
| "scripts": { | ||
| "test": "standard && brittle test/index.test.js", | ||
| "test": "brittle test/index.test.js && standard", | ||
| "test:bare": "bare test/index.test.js" | ||
@@ -31,3 +31,2 @@ }, | ||
| "hypercore-id-encoding": "^1.2.0", | ||
| "url-file-url": "^1.0.5", | ||
| "which-runtime": "^1.2.1" | ||
@@ -34,0 +33,0 @@ }, |
2
-33.33%16032
-0.82%114
-0.87%- Removed
- Removed
- Removed
- Removed