Comparing version 1.9.2 to 1.9.3
@@ -101,4 +101,4 @@ | ||
} | ||
fileNode._lastModified = new Date(); | ||
fileNode._lastAccessed = new Date(); | ||
fileNode._modified = new Date(); | ||
fileNode._accessed = new Date(); | ||
return new BufferStream(fileNode._chunks, charset); | ||
@@ -113,3 +113,3 @@ } else { // read | ||
} | ||
fileNode._lastAccessed = new Date(); | ||
fileNode._accessed = new Date(); | ||
if ("begin" in options && "end" in options) { | ||
@@ -384,3 +384,5 @@ return new BufferStream( | ||
} else { | ||
throw new Error("Can't find " + JSON.stringify(this._fs.resolve(part, this._fs.join(parts))) + " via " + JSON.stringify(via)); | ||
var error = new Error("Can't find " + JSON.stringify(this._fs.resolve(part, this._fs.join(parts))) + " via " + JSON.stringify(via)); | ||
error.code = "ENOENT"; | ||
throw error; | ||
} | ||
@@ -475,3 +477,6 @@ } | ||
} else { | ||
throw new Error("Can't find " + JSON.stringify(this._fs.join(parts)) + " via " + JSON.stringify(via)); | ||
var error = new Error("Can't find " + JSON.stringify(this._fs.join(parts)) + " via " + JSON.stringify(via)); | ||
error.code = "ENOENT"; | ||
throw error; | ||
} | ||
@@ -478,0 +483,0 @@ } |
@@ -61,4 +61,5 @@ /** | ||
flags = flags || "r"; | ||
var nodeFlags = flags.replace(/b/g, "") || "r"; | ||
var nodeOptions = { | ||
"flags": flags.replace(/b/g, "") | ||
"flags": nodeFlags | ||
}; | ||
@@ -65,0 +66,0 @@ if ("bufferSize" in options) { |
{ | ||
"name": "q-io", | ||
"version": "1.9.2", | ||
"version": "1.9.3", | ||
"description": "IO using Q promises", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/kriskowal/q-io/", |
@@ -30,3 +30,3 @@ "use strict"; | ||
expect(path).toBe("hello.txt"); | ||
expect(options.flags).toBe("w+a"); | ||
expect(options.flags).toBe("a"); | ||
expect(options.charset).toBe("utf8"); | ||
@@ -33,0 +33,0 @@ |
@@ -29,3 +29,3 @@ "use strict"; | ||
expect(path).toBe("hello.txt"); | ||
expect(options.flags).toBe("ra"); | ||
expect(options.flags).toBe("a"); | ||
expect(options.charset).toBe("utf8"); | ||
@@ -32,0 +32,0 @@ |
@@ -60,3 +60,3 @@ "use strict"; | ||
expect(path).toBe("hello.txt"); | ||
expect(options.flags).toBe("wa"); | ||
expect(options.flags).toBe("a"); | ||
expect(options.charset).toBe("utf8"); | ||
@@ -63,0 +63,0 @@ return Q.resolve({write: function () {}, close: function () {}}); |
Sorry, the diff of this file is not supported yet
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
2965740
128
8199