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.
Files changed (2) hide show
  1. package/index.js +2 -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 (URL.isURL(filepath)) filepath = fileURLToPath(filepath)
2369
+ if (isURL(filepath)) filepath = fileURLToPath(filepath)
2370
2370
  else filepath = filepath.toString()
2371
2371
  }
2372
2372
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-fs",
3
- "version": "4.5.5",
3
+ "version": "4.5.6",
4
4
  "description": "Native file system operations for Javascript",
5
5
  "exports": {
6
6
  "./package": "./package.json",