Comparing version 9.0.0 to 9.0.1
@@ -1114,2 +1114,3 @@ var util = require('util') | ||
this.tds = 0 | ||
exports.open(this.path, this.flags, this.mode, function (er, fd) { | ||
@@ -1170,9 +1171,16 @@ if (er) { | ||
this.writelist.push(data) | ||
this.tds += data.length | ||
this.currentbuffersize += data.length | ||
callback(null, data.length) | ||
if (this.currentbuffersize > 10240) { | ||
this._intenalwrite() | ||
} | ||
this.tds += data.length | ||
} | ||
WriteStream.prototype._intenalwrite = function () { | ||
// if fd is null then don't write | ||
// filewriter isn't setup so lets ignore it and | ||
// see if we try again | ||
if (this.fd === null) { | ||
@@ -1183,2 +1191,3 @@ return | ||
this.writelist = [] | ||
this.currentbuffersize = 0 | ||
var initblob = new Blob([dataToWrite]) // eslint-disable-line | ||
@@ -1185,0 +1194,0 @@ this.fd.write(initblob) |
{ | ||
"name": "chrome-fs", | ||
"version": "9.0.0", | ||
"version": "9.0.1", | ||
"description": "Use the Node `fs` API in Chrome Apps", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
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
43030
1147