Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@squaredup/plugin-common

Package Overview
Dependencies
Maintainers
7
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@squaredup/plugin-common

Common functions that can be used by any plugin

npmnpm
Version
2.0.7
Version published
Weekly downloads
20
-88.89%
Maintainers
7
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 14 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts