@vrbo/steerage
Advanced tools
Comparing version 12.0.0 to 12.1.0
@@ -0,1 +1,8 @@ | ||
# [12.1.0](https://github.com/expediagroup/steerage/compare/v12.0.0...v12.1.0) (2021-12-07) | ||
### Features | ||
* exposes overrides and defaults from determination ([#33](https://github.com/expediagroup/steerage/issues/33)) ([07b1f0b](https://github.com/expediagroup/steerage/commit/07b1f0b32d71bbcdf1ae586d764d5c3f87ad3f7a)) | ||
# [12.0.0](https://github.com/expediagroup/steerage/compare/v11.1.0...v12.0.0) (2021-11-05) | ||
@@ -2,0 +9,0 @@ |
@@ -33,3 +33,3 @@ /** | ||
const resolve = async function ({ config, basedir, protocols, environment }) { | ||
const resolve = async function ({ config, basedir, protocols, environment, defaults, overrides }) { | ||
@@ -51,2 +51,4 @@ const defaultProtocols = { | ||
protocols, | ||
defaults, | ||
overrides, | ||
criteria: environment | ||
@@ -53,0 +55,0 @@ }); |
@@ -41,3 +41,5 @@ /** | ||
onconfig: Joi.function().allow(null), | ||
protocols: Joi.object().default() | ||
protocols: Joi.object().default(), | ||
defaults: Joi.alternatives(Joi.string(), Joi.object()).default({}), | ||
overrides: Joi.alternatives(Joi.string(), Joi.object()).default({}) | ||
}).required(); | ||
@@ -44,0 +46,0 @@ |
@@ -34,3 +34,5 @@ 'use strict'; | ||
environment, | ||
protocols | ||
protocols, | ||
defaults, | ||
overrides | ||
} = options; | ||
@@ -46,3 +48,5 @@ | ||
protocols, | ||
environment | ||
environment, | ||
defaults, | ||
overrides | ||
}); | ||
@@ -49,0 +53,0 @@ |
{ | ||
"name": "@vrbo/steerage", | ||
"description": "Hapi plugin for server configuration and composition using confidence, topo, and shortstop.", | ||
"version": "12.0.0", | ||
"version": "12.1.0", | ||
"author": "Trevor Livingston <tlivings@gmail.com>", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -31,2 +31,4 @@  | ||
- `environment` - (Optional) Additional criteria for [confidence](https://github.com/hapijs/confidence) property resolution and defaults to `{ env: process.env }`. | ||
- `defaults` (_Object_ | _String_) - optional default pre-resolved configuration values. | ||
- `overrides` (_Object_ | _String_) - optional override pre-resolved configuration values. | ||
@@ -33,0 +35,0 @@ ### Example onconfig hook |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
21599
222
158
1