Socket
Socket
Sign inDemoInstall

firebase-functions

Package Overview
Dependencies
234
Maintainers
4
Versions
110
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.8.1 to 4.8.2

2

lib/v1/cloud-functions.js

@@ -38,3 +38,3 @@ "use strict";

function makeCloudFunction({ contextOnlyHandler, dataConstructor = (raw) => raw.data, eventType, handler, labels = {}, legacyEventType, options = {}, provider, service, triggerResource, }) {
handler = (0, onInit_1.withInit)(handler);
handler = (0, onInit_1.withInit)(handler !== null && handler !== void 0 ? handler : contextOnlyHandler);
const cloudFunction = (data, context) => {

@@ -41,0 +41,0 @@ if (legacyEventType && context.eventType === legacyEventType) {

@@ -57,3 +57,3 @@ "use strict";

if (Array.isArray(origin) && origin.length === 1) {
origin = origin[1];
origin = origin[0];
}

@@ -60,0 +60,0 @@ const middleware = cors({ origin });

{
"name": "firebase-functions",
"version": "4.8.1",
"version": "4.8.2",
"description": "Firebase SDK for Cloud Functions",

@@ -204,3 +204,2 @@ "keywords": [

"express": "^4.17.1",
"node-fetch": "^2.6.7",
"protobufjs": "^7.2.2"

@@ -207,0 +206,0 @@ },

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