Comparing version 9.1.0 to 9.2.0
@@ -113,6 +113,2 @@ var util = require('util') | ||
exports.utimes = function (name, now, mtime, cb) { | ||
cb() | ||
} | ||
exports.chown = function (path, uid, gid, callback) { | ||
@@ -132,2 +128,6 @@ resolve(path) | ||
exports.utimes = function (name, now, mtime, cb) { | ||
cb() | ||
} | ||
exports.fchown = function (fd, uid, gid, callback) { | ||
@@ -350,3 +350,3 @@ exports.chown(fd.fullPath, uid, gid, callback) | ||
if (util.isObject(path)) { | ||
return this.ftruncate(path, len, callback) | ||
return exports.ftruncate(path, len, callback) | ||
} | ||
@@ -361,3 +361,3 @@ if (util.isFunction(len)) { | ||
callback = maybeCallback(callback) | ||
this.open(path, 'w', function (er, fd) { | ||
exports.open(path, 'w', function (er, fd) { | ||
if (er) return callback(er) | ||
@@ -441,3 +441,3 @@ fd.onwriteend = function (evt) { | ||
} else { | ||
this.stat(fd.fullPath, callback) | ||
exports.stat(fd.fullPath, callback) | ||
} | ||
@@ -931,3 +931,3 @@ } | ||
options = util._extend({ | ||
highWaterMark: 64 * 1024 | ||
highWaterMark: 33554432 // 1024 * 1024 | ||
}, options || {}) | ||
@@ -1084,2 +1084,3 @@ | ||
} | ||
options = options || {} | ||
@@ -1139,3 +1140,3 @@ | ||
} | ||
WriteStream.prototype.totalsize = 0 | ||
WriteStream.prototype._write = function (data, encoding, callbk) { | ||
@@ -1180,3 +1181,3 @@ if (!util.isBuffer(data)) { | ||
} | ||
this.totalsize += data.length | ||
this.writelist.push(data) | ||
@@ -1186,3 +1187,3 @@ this.currentbuffersize += data.length | ||
if (this.currentbuffersize > 1048576) { | ||
if (this.currentbuffersize > 134217728) { | ||
this._intenalwrite() | ||
@@ -1201,2 +1202,6 @@ } | ||
} | ||
if (this.fd.readystate > 0) { | ||
return | ||
} | ||
var dataToWrite = Buffer.concat(this.writelist) | ||
@@ -1206,3 +1211,5 @@ this.writelist = [] | ||
var initblob = new Blob([dataToWrite]) // eslint-disable-line | ||
this.fd.write(initblob) | ||
if (typeof this.fd.write !== 'undefined') { | ||
this.fd.write(initblob) | ||
} | ||
} | ||
@@ -1209,0 +1216,0 @@ |
{ | ||
"name": "chrome-fs", | ||
"version": "9.1.0", | ||
"version": "9.2.0", | ||
"description": "Use the Node `fs` API in Chrome Apps", | ||
@@ -31,5 +31,3 @@ "main": "main.js", | ||
}, | ||
"dependencies": { | ||
"util": "^0.10.3" | ||
} | ||
"dependencies": {} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42756
0
1138
- Removedutil@^0.10.3
- Removedinherits@2.0.3(transitive)
- Removedutil@0.10.4(transitive)