@stencila/configa
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -0,1 +1,8 @@ | ||
## [0.4.2](https://github.com/stencila/configa/compare/v0.4.1...v0.4.2) (2020-01-09) | ||
### Bug Fixes | ||
* **Deps:** Use chalk instead of ansi-colors ([afd4b52](https://github.com/stencila/configa/commit/afd4b526cadd9ec8974d1e3ea6c7280388fd8171)), closes [#3](https://github.com/stencila/configa/issues/3) | ||
## [0.4.1](https://github.com/stencila/configa/compare/v0.4.0...v0.4.1) (2020-01-09) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"description": "Configa 0.4.0", | ||
"description": "Configa 0.4.1", | ||
"$comment": "", | ||
@@ -6,0 +6,0 @@ "properties": { |
@@ -25,3 +25,5 @@ "use strict"; | ||
// which does nothing. | ||
const propertyDecorator = (target, propertyKey) => { }; | ||
const propertyDecorator = (target, propertyKey) => { | ||
// eslint-disable-next-line @typescript-eslint/no-empty-function | ||
}; | ||
// Validation keywords for any instance type | ||
@@ -28,0 +30,0 @@ /** |
@@ -13,3 +13,3 @@ "use strict"; | ||
const json5_1 = __importDefault(require("json5")); | ||
const ansi_colors_1 = __importDefault(require("ansi-colors")); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
function helpUsage(schema, option) { | ||
@@ -19,3 +19,3 @@ if (option === undefined) { | ||
const options = helpListOptions(schema); | ||
return `${description}\n\n${ansi_colors_1.default.bold('Options')}\n${options}`; | ||
return `${description}\n\n${chalk_1.default.bold('Options')}\n${options}`; | ||
} | ||
@@ -34,3 +34,3 @@ else { | ||
const { description, type, anyOf, default: defaultValue } = schema; | ||
let line = `${ansi_colors_1.default.magenta(name.padEnd(20))} ${description}`; | ||
let line = `${chalk_1.default.magenta(name.padEnd(20))} ${description}`; | ||
let typeName; | ||
@@ -46,5 +46,5 @@ if (type === undefined && anyOf !== undefined) { | ||
} | ||
line += ansi_colors_1.default.italic.cyan(` ${typeName}`); | ||
line += chalk_1.default.italic.cyan(` ${typeName}`); | ||
if (defaultValue !== undefined) | ||
line += ansi_colors_1.default.grey(` ${json5_1.default.stringify(defaultValue)}`); | ||
line += chalk_1.default.grey(` ${json5_1.default.stringify(defaultValue)}`); | ||
return line; | ||
@@ -51,0 +51,0 @@ }) |
{ | ||
"name": "@stencila/configa", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Application configuration: DRY, flexible and type-safe", | ||
@@ -39,4 +39,4 @@ "bin": "dist/cli.js", | ||
"devDependencies": { | ||
"@stencila/dev-config": "1.2.3", | ||
"@types/jest": "24.0.23", | ||
"@stencila/dev-config": "1.4.5", | ||
"@types/jest": "24.0.25", | ||
"@types/json5": "0.0.30", | ||
@@ -47,5 +47,5 @@ "@types/rc": "1.1.0", | ||
"json-schema": "0.2.5", | ||
"ts-jest": "24.2.0", | ||
"ts-node": "8.5.2", | ||
"typescript": "3.7.2" | ||
"ts-jest": "24.3.0", | ||
"ts-node": "8.5.4", | ||
"typescript": "3.7.4" | ||
}, | ||
@@ -56,3 +56,3 @@ "dependencies": { | ||
"ajv": "^6.10.2", | ||
"ansi-colors": "^4.1.1", | ||
"chalk": "^3.0.0", | ||
"globby": "^11.0.0", | ||
@@ -59,0 +59,0 @@ "json5": "^2.1.1", |
@@ -87,2 +87,3 @@ # Configa | ||
<!-- prettier-ignore-start --> | ||
<!-- CONFIGA-USAGE-BEGIN --> | ||
@@ -117,1 +118,2 @@ All configuration options can be set, in descending order of priority, by: | ||
<!-- CONFIGA-TABLE-END --> | ||
<!-- prettier-ignore-end --> |
77631
1633
118
+ Addedchalk@^3.0.0
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@3.0.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
- Removedansi-colors@^4.1.1
- Removedansi-colors@4.1.3(transitive)