Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 2.0.4 to 2.0.5

35

fs-common.js

@@ -143,10 +143,3 @@ "use strict";

]).spread(function (reader, writer) {
return reader.forEach(function (block) {
return writer.write(block);
}).then(function () {
return Q.all([
reader.close(),
writer.close()
]);
});
return reader.copy(writer);
});

@@ -163,17 +156,17 @@ };

return sourceFs.exists(target).then(function (targetExists) {
var copySubTree = sourceFs.list(source).then(function (list) {
return Q.all(list.map(function (child) {
return sourceFs.copyTree(
sourceFs.join(source, child),
targetFs.join(target, child),
targetFs
);
}));
});
function copySubTree() {
return sourceFs.list(source).then(function (list) {
return Q.all(list.map(function (child) {
return sourceFs.copyTree(
sourceFs.join(source, child),
targetFs.join(target, child),
targetFs
);
}));
});
}
if (targetExists) {
return copySubTree;
return copySubTree();
} else {
return targetFs.makeDirectory(target).then(function () {
return copySubTree;
});
return targetFs.makeDirectory(target).then(copySubTree);
}

@@ -180,0 +173,0 @@ });

4

http-apps/fs.js

@@ -72,4 +72,6 @@ "use strict";

}
}, function (error) {
return options.notFound(request);
});
}, function (reason) {
}, function (error) {
return options.notFound(request);

@@ -76,0 +78,0 @@ });

{
"name": "q-io",
"version": "2.0.4",
"version": "2.0.5",
"publishConfig": {

@@ -5,0 +5,0 @@ "tag": "future"

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