colorprint
Advanced tools
Comparing version 6.0.2 to 6.0.3
/** | ||
* Print ansi-colored message to stdout/stderr. | ||
* @version 6.0.2 | ||
* @version 6.0.3 | ||
* @module colorprint | ||
@@ -8,3 +8,2 @@ * @author {@link http://okunishitaka.com|Taka Okunishi | ||
* @requires {@link https://www.npmjs.org/package/cli-color|cli-color@^1.1.0 | ||
* @requires {@link https://www.npmjs.org/package/commander|commander@^2.20.0 | ||
* @requires {@link https://www.npmjs.org/package/supports-color|supports-color@^7.0.0 | ||
@@ -11,0 +10,0 @@ */ |
{ | ||
"name": "colorprint", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"description": "Print ansi-colored message to stdout/stderr.", | ||
"main": "lib", | ||
"browser": "shim/browser", | ||
"bin": { | ||
"colorprint": "bin/colorprint" | ||
}, | ||
"scripts": { | ||
@@ -33,3 +30,2 @@ "test": "node ./ci/test.js", | ||
"cli-color": "^1.1.0", | ||
"commander": "^2.20.0", | ||
"supports-color": "^7.0.0" | ||
@@ -44,3 +40,2 @@ }, | ||
"ape-updating": "^5.0.3", | ||
"babel-runtime": "^6.26.0", | ||
"coz": "^7.0.19" | ||
@@ -47,0 +42,0 @@ }, |
/** | ||
* Print ansi-colored message to stdout/stderr. | ||
* @version 6.0.2 | ||
* @version 6.0.3 | ||
* @module colorprint | ||
@@ -8,3 +8,2 @@ * @author {@link http://okunishitaka.com|Taka Okunishi | ||
* @requires {@link https://www.npmjs.org/package/cli-color|cli-color@^1.1.0 | ||
* @requires {@link https://www.npmjs.org/package/commander|commander@^2.20.0 | ||
* @requires {@link https://www.npmjs.org/package/supports-color|supports-color@^7.0.0 | ||
@@ -30,2 +29,2 @@ */ | ||
module.exports = colorprint; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbIkNvbG9ycHJpbnQiLCJyZXF1aXJlIiwiY2xpQ29sb3IiLCJkZWZpbmUiLC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NvbG9yQF43LjAuMFxuICovXG5cbid1c2Ugc3RyaWN0J1xuXG5jb25zdCBDb2xvcnByaW50ID0gcmVxdWlyZSgnLi9jb2xvcnByaW50JylcbmNvbnN0IGNsaUNvbG9yID0gcmVxdWlyZSgnY2xpLWNvbG9yJylcbmNvbnN0IGRlZmluZSA9IHJlcXVpcmUoJy4vZGVmaW5lJylcbmNvbnN0IGNyZWF0ZSA9IHJlcXVpcmUoJy4vY3JlYXRlJylcblxubGV0IGNvbG9ycHJpbnQgPSBjcmVhdGUoKVxuT2JqZWN0LmFzc2lnbihjb2xvcnByaW50LCB7XG4gY3JlYXRlLFxuIGRlZmluZSxcbiBDb2xvcnByaW50LFxuIGNvbG9yczogY2xpQ29sb3Jcbn0pXG5cbm1vZHVsZS5leHBvcnRzID0gY29sb3JwcmludFxuIl19 |
@@ -5,22 +5,28 @@ /** | ||
*/ | ||
'use strict' | ||
"use strict"; | ||
const decorateMsg = require('../lib/msg/decorate_msg.js') | ||
const assert = require('assert') | ||
const decorateMsg = require("../lib/msg/decorate_msg.js"); | ||
const assert = require("assert"); | ||
describe('decorate', ()=> { | ||
it('Decorate msg', (done) => { | ||
assert.ok(decorateMsg('foo', 'green')) | ||
assert.equal(decorateMsg(null), null) | ||
done() | ||
}) | ||
describe("decorate", () => { | ||
it("Decorate msg", done => { | ||
if (process.env.CI) { | ||
return; | ||
} | ||
assert.ok(decorateMsg("foo", "green")); | ||
assert.equal(decorateMsg(null), null); | ||
done(); | ||
}); | ||
it('Decorate msg with invalid color.', (done) => { | ||
assert.throws(function () { | ||
decorateMsg('foo', '__not_existing_color') | ||
}) | ||
done() | ||
}) | ||
}) | ||
it("Decorate msg with invalid color.", done => { | ||
if (process.env.CI) { | ||
return; | ||
} | ||
assert.throws(function() { | ||
decorateMsg("foo", "__not_existing_color"); | ||
}); | ||
done(); | ||
}); | ||
}); | ||
/* global describe, it */ |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
2
7
0
61510
44
852
3
- Removedcommander@^2.20.0
- Removedcommander@2.20.3(transitive)