@squaredup/plugin-common

2.0.8 • Public • Published

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 value
  • categorizeObjectArrayByProp : Categorizes an array of objects into separate properties of an object based on a property on each object
  • collectResponses : Takes in a list of promises (usually API responses) and returns information about successful and failed responses
  • processStandardDataStreamMessages : a helper routine to report errors returned by collectResponses() in a standard format

Readme

Keywords

none

Package Sidebar

Install

npm i @squaredup/plugin-common

Weekly Downloads

606

Version

2.0.8

License

ISC

Unpacked Size

18.8 kB

Total Files

9

Last publish

Collaborators

  • wigsaparelli
  • kieran.langton.squaredup
  • wayneplummer
  • squaredup-engineering
  • jrosedev
  • shaswot77
  • clarkd