bare-fs 4.1.0 → 4.1.1

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 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -853,7 +853,7 @@ function ftruncate(fd, len, cb) {
853
853
  binding.ftruncate(req.handle, fd, len)
854
854
  }
855
855
 
856
- function ftruncate(fd, len) {
856
+ function ftruncateSync(fd, len) {
857
857
  if (typeof fd !== 'number') {
858
858
  throw typeError(
859
859
  'ERR_INVALID_ARG_TYPE',
@@ -2641,6 +2641,7 @@ exports.copyFileSync = copyFileSync
2641
2641
  exports.existsSync = existsSync
2642
2642
  exports.fchmodSync = fchmodSync
2643
2643
  exports.fstatSync = fstatSync
2644
+ exports.ftruncateSync = ftruncateSync
2644
2645
  exports.lstatSync = lstatSync
2645
2646
  exports.mkdirSync = mkdirSync
2646
2647
  exports.openSync = openSync
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-fs",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Native file system for Javascript",
5
5
  "exports": {
6
6
  "./package": "./package.json",