Socket
Socket
Sign inDemoInstall

firebase-functions-extended

Package Overview
Dependencies
237
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    firebase-functions-extended

Extended onCall function for Firebase Cloud Functions


Version published
Weekly downloads
49
increased by390%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

5.4.1 - 2022-02-16

  • Possibly improved error messages logger

Readme

Source

Firebase Functions Extended

npm version

An opinionated, abstracted and simplified way to create Google Cloud Functions.

Project is ready and being used in prod and in-dev projects. It's really good and useful for me, but currently I have no will to better prepare it to publicly publish it.

Implements common functionalities to the Cloud Functions onCall, including schema declaration and validation (using zod), error throwing and better caller information access. Typescript is recommended!

Note: undefined properties are converted to null by firebase. Instead of using .optional(), use .nullable() or .nullish(). This last one is better as you may not declare the props (and they will be undefined) in question or pass undefined (that will turn to null).

Installation

Install it in your Cloud Functions directory with:

npm i firebase-functions-extended

or

yarn add firebase-functions-extended

It also requires the installation of firebase-functions and zod.

Usage

In your client, use firebase-functions-extended-client to call the functions.

Roadmap

  • Write this README

Keywords

FAQs

Last updated on 16 Feb 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc