bare-fs 4.5.5 → 4.5.6
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.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const FIFO = require('fast-fifo')
|
|
2
2
|
const EventEmitter = require('bare-events')
|
|
3
3
|
const path = require('bare-path')
|
|
4
|
-
const { fileURLToPath } = require('bare-url')
|
|
4
|
+
const { isURL, fileURLToPath } = require('bare-url')
|
|
5
5
|
const { Readable, Writable } = require('bare-stream')
|
|
6
6
|
const binding = require('./binding')
|
|
7
7
|
const constants = require('./lib/constants')
|
|
@@ -2366,7 +2366,7 @@ exports.createWriteStream = function createWriteStream(path, opts) {
|
|
|
2366
2366
|
|
|
2367
2367
|
function toNamespacedPath(filepath) {
|
|
2368
2368
|
if (typeof filepath !== 'string') {
|
|
2369
|
-
if (
|
|
2369
|
+
if (isURL(filepath)) filepath = fileURLToPath(filepath)
|
|
2370
2370
|
else filepath = filepath.toString()
|
|
2371
2371
|
}
|
|
2372
2372
|
|