determination
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -12,4 +12,4 @@ 'use strict'; | ||
protocols: Joi.object().default({}), | ||
defaults: Joi.object().default({}), | ||
overrides: Joi.object().default({}) | ||
defaults: Joi.alternatives(Joi.string(), Joi.object()).default({}), | ||
overrides: Joi.alternatives(Joi.string(), Joi.object()).default({}) | ||
}).required(); | ||
@@ -16,0 +16,0 @@ |
@@ -67,2 +67,9 @@ 'use strict'; | ||
if (typeof defaults === 'string') { | ||
defaults = LoadJson(defaults); | ||
} | ||
if (typeof overrides === 'string') { | ||
overrides = LoadJson(overrides); | ||
} | ||
const resolve = shortstopHandler(protocols, Path.dirname(config)); | ||
@@ -69,0 +76,0 @@ |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"author": "Trevor Livingston <tlivings@gmail.com>", | ||
@@ -13,0 +13,0 @@ "repository": { |
@@ -21,4 +21,4 @@ # determination | ||
- `protocols` (_Object_) - optional mapping of protocols for [shortstop](https://github.com/krakenjs/shortstop). | ||
- `defaults` (_Object_) - optional default configuration values. | ||
- `overrides` (_Object_) - optional override configuration values. | ||
- `defaults` (_Object_ | _String_) - optional default configuration values. | ||
- `overrides` (_Object_ | _String_) - optional override configuration values. | ||
- returns - a resolver. | ||
@@ -25,0 +25,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10485
155