@squaredup/plugin-common
v2.0.9
Published
Common functions that can be used by any plugin
Downloads
1,098
Maintainers
Keywords
Readme
Plugin-Common
This is a module that contains common functions that can be used by all SquaredUp Plugins.
Important to note the no future change can be allowed to break any existing functionality, versioning must be properly maintained in package.json.
Functions
collectSuccessfulResponses
: Takes in a list of promises (usually API responses) and returns only the ones that were successful (deprecated)flattenObjectArrayProps
: Flattens single-item array properties in an array of objects to a single non-array valuecategorizeObjectArrayByProp
: Categorizes an array of objects into separate properties of an object based on a property on each objectcollectResponses
: Takes in a list of promises (usually API responses) and returns information about successful and failed responsesprocessStandardDataStreamMessages
: a helper routine to report errors returned by collectResponses() in a standard format