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

colorprint

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colorprint - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

29

ci/build.js
#!/usr/bin/env node
"use strict";
/**
* Build this project.
*/
process.chdir(__dirname + '/..');
'use strict'
const apeTasking = require('ape-tasking'),
coz = require('coz');
process.chdir(`${__dirname}/..`)
const apeTasking = require('ape-tasking')
const coz = require('coz')
apeTasking.runTasks('build', [
(callback) => {
coz.render([
'.*.bud',
'doc/**/.*.bud',
'example/**/.*.bud',
'lib/.*.bud',
'test/.*.bud'
], callback);
}
], true);
() => coz.render([
'.*.bud',
'lib/.*.bud',
'test/.*.bud'
])
], true)
#!/usr/bin/env node
/**
* Measure coverage.
* Measure test coverage.
*/
"use strict";
'use strict'
process.chdir(__dirname + '/..');
process.chdir(`${__dirname}/..`)
const apeTasking = require('ape-tasking'),
apeCovering = require('ape-covering');
const apeTasking = require('ape-tasking')
const apeCovering = require('ape-covering')
apeTasking.runTasks('cover', [
(callback) => {
apeCovering.measureCoverage(
require.resolve('./test.js'), [], {
dir: 'doc/coverage'
}, callback
);
}
], true);
() => apeCovering.measureCoverage('_mocha', [
'test/*_test.js'
], {
dir: 'coverage'
})
], true)

@@ -7,19 +7,16 @@ #!/usr/bin/env node

"use strict";
'use strict'
process.chdir(__dirname + '/..');
process.chdir(`${__dirname}/..`)
const apeTasking = require('ape-tasking'),
apeReleasing = require('ape-releasing');
const apeTasking = require('ape-tasking')
const apeReleasing = require('ape-releasing')
apeTasking.runTasks('release', [
(callback) => {
apeReleasing.releasePackage({
beforeRelease: [
'./ci/build.js',
'./ci/test.js'
]
}, callback);
}
], true);
() => apeReleasing.releasePackage({
beforeRelease: [
'./ci/build.js',
'./ci/test.js'
]
})
], true)

@@ -7,13 +7,11 @@ #!/usr/bin/env node

"use strict";
'use strict'
process.chdir(__dirname + '/..');
process.chdir(`${__dirname}/..`)
const apeTasking = require('ape-tasking'),
apeReporting = require('ape-reporting');
const apeTasking = require('ape-tasking')
const apeReporting = require('ape-reporting')
apeTasking.runTasks([
(callback) => {
apeReporting.sendToCodeclimate('doc/coverage/lcov.info', callback);
}
], true);
apeTasking.runTasks('report', [
() => apeReporting.sendToCodeclimate('coverage/lcov.info', {})
], true)
#!/usr/bin/env node
/**
* Run test
* Run tests.
*/
"use strict";
'use strict'
process.chdir(__dirname + '/..');
process.chdir(`${__dirname}/..`)
const apeTasking = require('ape-tasking'),
apeTesting = require('ape-testing');
const apeTasking = require('ape-tasking')
const apeTesting = require('ape-testing')
apeTasking.runTasks('test', [
(callback) => {
apeTesting.runMocha('test/**/*_test.js', callback);
}
], true);
() => apeTesting.runMocha('test/*_test.js')
], true)

@@ -7,13 +7,11 @@ #!/usr/bin/env node

"use strict";
'use strict'
process.chdir(__dirname + '/..');
process.chdir(`${__dirname}/..`)
const apeTasking = require('ape-tasking'),
apeUpdating = require('ape-updating');
const apeTasking = require('ape-tasking')
const apeUpdating = require('ape-updating')
apeTasking.runTasks('update', [
(callback) => {
apeUpdating.updateDependencies({}, callback);
}
], true);
() => apeUpdating.updateDependencies({})
], true)
/**
* Print ansi-colored message to stdout/stderr.
* @version 4.0.0
* @version 4.0.1
* @module colorprint

@@ -5,0 +5,0 @@ * @author {@link http://okunishitaka.com|Taka Okunishi

@@ -17,3 +17,3 @@ /**

try {
return JSON.stringify(msg, null, 4)
return JSON.stringify(msg, null, 2)
} catch (e) {

@@ -20,0 +20,0 @@ // Do nothing.

{
"name": "colorprint",
"version": "4.0.0",
"version": "4.0.1",
"description": "Print ansi-colored message to stdout/stderr.",

@@ -10,3 +10,4 @@ "main": "lib",

"scripts": {
"test": "./ci/test.js"
"test": "./ci/test.js",
"prepublish": "./ci/build.js"
},

@@ -35,12 +36,12 @@ "repository": "okunishinishi/node-colorprint",

"devDependencies": {
"ape-covering": "^2.0.2",
"ape-deploying": "^2.0.0",
"ape-releasing": "^2.0.0",
"ape-reporting": "^2.0.3",
"ape-tasking": "^2.0.1",
"ape-testing": "^2.0.0",
"ape-tmpl": "^2.0.5",
"ape-updating": "^2.0.1",
"apiguide": "^1.0.10",
"coz": "^3.1.6"
"ape-covering": "^3.0.3",
"ape-deploying": "^4.0.2",
"ape-releasing": "^3.1.1",
"ape-reporting": "^3.0.1",
"ape-tasking": "^4.0.1",
"ape-testing": "^4.0.0",
"ape-tmpl": "^5.0.2",
"ape-updating": "^3.0.2",
"apiguide": "^3.0.0",
"coz": "^6.0.2"
},

@@ -51,2 +52,2 @@ "engines": {

}
}
}

@@ -15,2 +15,3 @@ colorprint

[![npm Version][bd_npm_shield_url]][bd_npm_url]
[![JS Standard][bd_standard_shield_url]][bd_standard_url]

@@ -20,2 +21,4 @@ [bd_repo_url]: https://github.com/okunishinishi/node-colorprint

[bd_travis_shield_url]: http://img.shields.io/travis/okunishinishi/node-colorprint.svg?style=flat
[bd_travis_com_url]: http://travis-ci.com/okunishinishi/node-colorprint
[bd_travis_com_shield_url]: https://api.travis-ci.com/okunishinishi/node-colorprint.svg?token=
[bd_license_url]: https://github.com/okunishinishi/node-colorprint/blob/master/LICENSE

@@ -29,3 +32,4 @@ [bd_codeclimate_url]: http://codeclimate.com/github/okunishinishi/node-colorprint

[bd_npm_shield_url]: http://img.shields.io/npm/v/colorprint.svg?style=flat
[bd_bower_badge_url]: https://img.shields.io/bower/v/colorprint.svg?style=flat
[bd_standard_url]: http://standardjs.com/
[bd_standard_shield_url]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg

@@ -32,0 +36,0 @@ <!-- Badge End -->

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