Skip to content

Instantly share code, notes, and snippets.

View mike-4040's full-sized avatar

Mike Kravtsov mike-4040

  • Homebot
  • San Diego
  • 21:25 (UTC -07:00)
View GitHub Profile
@bradtraversy
bradtraversy / npmcrashcourse.txt
Last active June 26, 2024 09:49
NPM Crash Course Commands
# GET VERSION
npm -v (or --version)
# GET HELP
npm help
npm
# CREATE PACKAGE.JSON
npm init
npm init -y (or --yes)
@zanona
zanona / sentry-serverless-firebase.ts
Last active June 8, 2024 21:11
Missing Sentry's firebase serverless wrappers
/**
* Temporary wrapper for firebase functions until @sentry/serverless support is implemented
* It currently supports wrapping https, pubsub and firestore handlers.
* usage: https.onRequest(wrap((req, res) => {...}))
*/
import type {Event} from '@sentry/types';
import type {https} from 'firebase-functions';
import type {onRequest, onCall} from 'firebase-functions/lib/providers/https';
import type {ScheduleBuilder} from 'firebase-functions/lib/providers/pubsub';
import type {DocumentBuilder} from 'firebase-functions/lib/providers/firestore';