Socket
Socket
Sign inDemoInstall

q-io

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

q-io - npm Package Compare versions

Comparing version 1.9.2 to 1.9.3

spec/fs/fixtures/hello.txt

15

fs-mock.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc