New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/stream-collator

Package Overview
Dependencies
Maintainers
2
Versions
233
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/stream-collator - npm Package Compare versions

Comparing version 2.2.5 to 2.2.6

17

CHANGELOG.json

@@ -5,2 +5,19 @@ {

{
"version": "2.2.6",
"tag": "@microsoft/stream-collator_v2.2.6",
"date": "Tue, 23 Jan 2018 17:05:28 GMT",
"comments": {
"patch": [
{
"comment": "Remove code which redirected warnings to stdout."
}
],
"dependency": [
{
"comment": "Updating dependency \"@microsoft/node-library-build\" from `4.3.5` to `4.3.6`"
}
]
}
},
{
"version": "2.2.5",

@@ -7,0 +24,0 @@ "tag": "@microsoft/stream-collator_v2.2.5",

9

CHANGELOG.md
# Change Log - @microsoft/stream-collator
This log was last generated on Thu, 18 Jan 2018 03:23:46 GMT and should not be manually modified.
This log was last generated on Tue, 23 Jan 2018 17:05:28 GMT and should not be manually modified.
## 2.2.6
Tue, 23 Jan 2018 17:05:28 GMT
### Patches
- Remove code which redirected warnings to stdout.
## 2.2.5

@@ -6,0 +13,0 @@ Thu, 18 Jan 2018 03:23:46 GMT

13

lib/Interleaver.js

@@ -17,3 +17,2 @@ "use strict";

ITaskOutputStream[ITaskOutputStream["stderr"] = 2] = "stderr";
ITaskOutputStream[ITaskOutputStream["warning"] = 3] = "warning";
})(ITaskOutputStream || (ITaskOutputStream = {}));

@@ -60,8 +59,3 @@ /**

write: (data) => this._writeTaskOutput(taskName, data),
writeError: (data) => {
const stream = (data.indexOf('Warning - ') === 0) ?
ITaskOutputStream.warning :
ITaskOutputStream.stderr;
this._writeTaskOutput(taskName, data, stream);
},
writeError: (data) => this._writeTaskOutput(taskName, data, ITaskOutputStream.stderr),
writeLine: (data) => this._writeTaskOutput(taskName, data + os.EOL)

@@ -96,7 +90,4 @@ };

}
else if (stream === ITaskOutputStream.warning && !taskInfo.quietMode) {
this._stdout.write(colors.yellow(data));
}
else if (stream === ITaskOutputStream.stderr) {
this._stdout.write(colors.red(data));
this._stdout.write(data);
}

@@ -103,0 +94,0 @@ }

@@ -7,3 +7,2 @@ "use strict";

const chai_1 = require("chai");
const colors = require("colors");
const os = require("os");

@@ -76,17 +75,7 @@ const Interleaver_1 = require("../Interleaver");

});
it('should redirect warnings to stdout in yellow', (done) => {
it('should write errors to stderr', (done) => {
const taskA = Interleaver_1.default.registerTask('A');
const warning = 'Warning - This is a warning';
taskA.writeError(warning);
chai_1.assert.equal(stdout.read(), colors.yellow(warning));
taskA.close();
chai_1.assert.equal(taskA.getStdOutput(), warning);
chai_1.assert.equal(taskA.getStdError(), '');
done();
});
it('should write errors in red', (done) => {
const taskA = Interleaver_1.default.registerTask('A');
const error = 'Critical error';
taskA.writeError(error);
chai_1.assert.equal(stdout.read(), colors.red(error));
chai_1.assert.equal(stdout.read(), error);
taskA.close();

@@ -93,0 +82,0 @@ chai_1.assert.equal(taskA.getStdOutput(), '');

{
"name": "@microsoft/stream-collator",
"version": "2.2.5",
"version": "2.2.6",
"description": "Display intelligible realtime output from your asynchronous streams",

@@ -26,4 +26,4 @@ "repository": {

"mocha": "~3.4.2",
"@microsoft/node-library-build": "4.3.5"
"@microsoft/node-library-build": "4.3.6"
}
}

Sorry, the diff of this file is not supported yet

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