Socket
Socket
Sign inDemoInstall

@stencila/configa

Package Overview
Dependencies
87
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.1 to 0.4.2

7

CHANGELOG.md

@@ -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 @@

2

dist/config.schema.json
{
"$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 -->
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc