bare-fs 2.2.2 → 2.2.3

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/binding.c CHANGED
@@ -7,6 +7,10 @@
7
7
  #include <utf.h>
8
8
  #include <uv.h>
9
9
 
10
+ #ifndef _MSC_VER
11
+ #include <unistd.h>
12
+ #endif
13
+
10
14
  /**
11
15
  * Per-thread singleton response handler that all file system requests
12
16
  * reference.
package/index.js CHANGED
@@ -1,11 +1,10 @@
1
1
  /* global Bare */
2
2
  const EventEmitter = require('bare-events')
3
- const os = require('bare-os')
4
3
  const path = require('bare-path')
5
4
  const { Readable, Writable } = require('streamx')
6
5
  const binding = require('./binding')
7
6
 
8
- const isWindows = os.platform() === 'win32'
7
+ const isWindows = Bare.platform === 'win32'
9
8
 
10
9
  const constants = exports.constants = {
11
10
  O_RDWR: binding.O_RDWR,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-fs",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "Native file system for Javascript",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -27,7 +27,6 @@
27
27
  "homepage": "https://github.com/holepunchto/bare-fs#readme",
28
28
  "dependencies": {
29
29
  "bare-events": "^2.0.0",
30
- "bare-os": "^2.0.0",
31
30
  "bare-path": "^2.0.0",
32
31
  "streamx": "^2.13.0"
33
32
  },
Binary file
Binary file
Binary file