@storyous/features
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -133,2 +133,3 @@ 'use strict'; | ||
/** | ||
* @param {Function} [processFunction] | ||
* @returns {FeatureDefinitions} | ||
@@ -139,3 +140,8 @@ */ | ||
key: 'getFeatureDefinitions', | ||
value: function getFeatureDefinitions() { | ||
value: function getFeatureDefinitions(processFunction) { | ||
if (typeof processFunction === 'function') { | ||
return processFunction(this._currentDefinitions); | ||
} | ||
return this._currentDefinitions; | ||
@@ -142,0 +148,0 @@ } |
{ | ||
"name": "@storyous/features", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -119,5 +119,11 @@ 'use strict'; | ||
/** | ||
* @param {Function} [processFunction] | ||
* @returns {FeatureDefinitions} | ||
*/ | ||
getFeatureDefinitions () { | ||
getFeatureDefinitions (processFunction) { | ||
if (typeof processFunction === 'function') { | ||
return processFunction(this._currentDefinitions); | ||
} | ||
return this._currentDefinitions; | ||
@@ -124,0 +130,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
NPM Shrinkwrap
Supply chain riskPackage contains a shrinkwrap file. This may allow the package to bypass normal install procedures.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
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
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
120432
17
3110
1
4