You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@firebase/functions

Package Overview
Dependencies
Maintainers
4
Versions
3512
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase/functions - npm Package Compare versions

Comparing version

to
0.12.9-canary.574800585

dist/esm/index.esm.js

21

dist/index.cjs.js

@@ -337,3 +337,3 @@ 'use strict';

if (!this.appCheck) {
appCheckProvider === null || appCheckProvider === void 0 ? void 0 : appCheckProvider.get().then(appCheck => (this.appCheck = appCheck), () => {
appCheckProvider?.get().then(appCheck => (this.appCheck = appCheck), () => {
/* get() never rejects */

@@ -349,3 +349,3 @@ });

const token = await this.auth.getToken();
return token === null || token === void 0 ? void 0 : token.accessToken;
return token?.accessToken;
}

@@ -671,3 +671,2 @@ catch (e) {

async function streamAtURL(functionsInstance, url, data, options) {
var _a;
// Encode any special types, such as dates, in the input data.

@@ -687,3 +686,3 @@ data = encode(data);

headers,
signal: options === null || options === void 0 ? void 0 : options.signal
signal: options?.signal
});

@@ -732,3 +731,3 @@ }

});
(_a = options === null || options === void 0 ? void 0 : options.signal) === null || _a === void 0 ? void 0 : _a.addEventListener('abort', () => {
options?.signal?.addEventListener('abort', () => {
const error = new FunctionsError('cancelled', 'Request was cancelled.');

@@ -738,3 +737,3 @@ resultRejecter(error);

const reader = response.body.getReader();
const rstream = createResponseStream(reader, resultResolver, resultRejecter, options === null || options === void 0 ? void 0 : options.signal);
const rstream = createResponseStream(reader, resultResolver, resultRejecter, options?.signal);
return {

@@ -814,3 +813,3 @@ stream: {

async function pump() {
if (signal === null || signal === void 0 ? void 0 : signal.aborted) {
if (signal?.aborted) {
const error = new FunctionsError('cancelled', 'Request was cancelled');

@@ -830,3 +829,3 @@ controller.error(error);

}
if (signal === null || signal === void 0 ? void 0 : signal.aborted) {
if (signal?.aborted) {
const error = new FunctionsError('cancelled', 'Request was cancelled');

@@ -864,3 +863,3 @@ controller.error(error);

const name = "@firebase/functions";
const version = "0.12.9-20250626140224";
const version = "0.12.9-canary.574800585";

@@ -898,4 +897,4 @@ /**

app.registerVersion(name, version, variant);
// BUILD_TARGET will be replaced by values like esm2017, cjs2017, etc during the compilation
app.registerVersion(name, version, 'cjs2017');
// BUILD_TARGET will be replaced by values like esm, cjs, etc during the compilation
app.registerVersion(name, version, 'cjs2020');
}

@@ -902,0 +901,0 @@

{
"name": "@firebase/functions",
"version": "0.12.9-20250626140224",
"version": "0.12.9-canary.574800585",
"description": "",
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
"main": "dist/index.cjs.js",
"browser": "dist/esm/index.esm2017.js",
"module": "dist/esm/index.esm2017.js",
"browser": "dist/esm/index.esm.js",
"module": "dist/esm/index.esm.js",
"exports": {

@@ -13,3 +13,3 @@ ".": {

"node": {
"import": "./dist/esm/index.esm2017.js",
"import": "./dist/esm/index.esm.js",
"require": "./dist/index.cjs.js"

@@ -19,5 +19,5 @@ },

"require": "./dist/index.cjs.js",
"import": "./dist/esm/index.esm2017.js"
"import": "./dist/esm/index.esm.js"
},
"default": "./dist/esm/index.esm2017.js"
"default": "./dist/esm/index.esm.js"
},

@@ -51,6 +51,6 @@ "./package.json": "./package.json"

"peerDependencies": {
"@firebase/app": "0.13.2-20250626140224"
"@firebase/app": "0.13.2-canary.574800585"
},
"devDependencies": {
"@firebase/app": "0.13.2-20250626140224",
"@firebase/app": "0.13.2-canary.574800585",
"rollup": "2.79.2",

@@ -71,7 +71,7 @@ "@rollup/plugin-json": "6.1.0",

"dependencies": {
"@firebase/component": "0.6.18-20250626140224",
"@firebase/messaging-interop-types": "0.2.3",
"@firebase/auth-interop-types": "0.2.4",
"@firebase/app-check-interop-types": "0.3.3",
"@firebase/util": "1.12.1-20250626140224",
"@firebase/component": "0.6.18-canary.574800585",
"@firebase/messaging-interop-types": "0.2.3-canary.574800585",
"@firebase/auth-interop-types": "0.2.4-canary.574800585",
"@firebase/app-check-interop-types": "0.3.3-canary.574800585",
"@firebase/util": "1.12.1-canary.574800585",
"tslib": "^2.1.0"

@@ -86,4 +86,4 @@ },

"engines": {
"node": ">=18.0.0"
"node": ">=20.0.0"
}
}

Sorry, the diff of this file is not supported yet