conventional-changelog-preset-loader
Advanced tools
Comparing version 4.0.0 to 4.1.0
16
index.js
@@ -102,8 +102,8 @@ 'use strict' | ||
} else | ||
if (typeof presetOrParams === 'object' && typeof presetOrParams.name === 'string') { | ||
preset = presetOrParams.name | ||
params = presetOrParams | ||
} else { | ||
throw Error('Preset must be string or object with property `name`') | ||
} | ||
if (typeof presetOrParams === 'object' && typeof presetOrParams.name === 'string') { | ||
preset = presetOrParams.name | ||
params = presetOrParams | ||
} else { | ||
throw Error('Preset must be string or object with property `name`') | ||
} | ||
@@ -119,2 +119,6 @@ const presetNameVariants = resolvePresetNameVariants(preset) | ||
if (typeof createPreset !== 'function') { | ||
throw Error(`The "${preset}" preset does not export a function. Maybe you are using an old version of the preset. Please upgrade.`) | ||
} | ||
return params | ||
@@ -121,0 +125,0 @@ ? await createPreset(params) |
{ | ||
"name": "conventional-changelog-preset-loader", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "Configuration preset loader for `conventional-changelog`.", | ||
@@ -27,4 +27,4 @@ "repository": { | ||
"conventional-changelog-angular": "^7.0.0", | ||
"conventional-changelog-conventionalcommits": "^7.0.0" | ||
"conventional-changelog-conventionalcommits": "^7.0.2" | ||
} | ||
} |
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
8184
101