Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@firebase/functions

Package Overview
Dependencies
Maintainers
4
Versions
3290
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 0.11.8-canary.beaa4dffb to 0.11.8-vertexai-preview.36cb0178c

19

dist/index.cjs.js

@@ -430,5 +430,4 @@ 'use strict';

*/
constructor(app, authProvider, messagingProvider, appCheckProvider, regionOrCustomDomain = DEFAULT_REGION, fetchImpl) {
constructor(app, authProvider, messagingProvider, appCheckProvider, regionOrCustomDomain = DEFAULT_REGION) {
this.app = app;
this.fetchImpl = fetchImpl;
this.emulatorOrigin = null;

@@ -513,7 +512,7 @@ this.contextProvider = new ContextProvider(authProvider, messagingProvider, appCheckProvider);

*/
async function postJSON(url, body, headers, fetchImpl) {
async function postJSON(url, body, headers) {
headers['Content-Type'] = 'application/json';
let response;
try {
response = await fetchImpl(url, {
response = await fetch(url, {
method: 'POST',

@@ -580,3 +579,3 @@ body: JSON.stringify(body),

const response = await Promise.race([
postJSON(url, body, headers, functionsInstance.fetchImpl),
postJSON(url, body, headers),
failAfterHandle.promise,

@@ -615,3 +614,3 @@ functionsInstance.cancelAllRequests

const name = "@firebase/functions";
const version = "0.11.8-canary.beaa4dffb";
const version = "0.11.8-vertexai-preview.36cb0178c";

@@ -637,3 +636,3 @@ /**

const MESSAGING_INTERNAL_NAME = 'messaging-internal';
function registerFunctions(fetchImpl, variant) {
function registerFunctions(variant) {
const factory = (container, { instanceIdentifier: regionOrCustomDomain }) => {

@@ -646,7 +645,7 @@ // Dependencies

// eslint-disable-next-line @typescript-eslint/no-explicit-any
return new FunctionsService(app, authProvider, messagingProvider, appCheckProvider, regionOrCustomDomain, fetchImpl);
return new FunctionsService(app, authProvider, messagingProvider, appCheckProvider, regionOrCustomDomain);
};
app._registerComponent(new component.Component(FUNCTIONS_TYPE, factory, "PUBLIC" /* ComponentType.PUBLIC */).setMultipleInstances(true));
app.registerVersion(name, version, variant);
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
// BUILD_TARGET will be replaced by values like esm2017, cjs2017, etc during the compilation
app.registerVersion(name, version, 'cjs2017');

@@ -725,3 +724,3 @@ }

*/
registerFunctions(fetch.bind(self));
registerFunctions();

@@ -728,0 +727,0 @@ exports.connectFunctionsEmulator = connectFunctionsEmulator;

@@ -426,5 +426,4 @@ import { _registerComponent, registerVersion, _getProvider, getApp } from '@firebase/app';

*/
constructor(app, authProvider, messagingProvider, appCheckProvider, regionOrCustomDomain = DEFAULT_REGION, fetchImpl) {
constructor(app, authProvider, messagingProvider, appCheckProvider, regionOrCustomDomain = DEFAULT_REGION) {
this.app = app;
this.fetchImpl = fetchImpl;
this.emulatorOrigin = null;

@@ -509,7 +508,7 @@ this.contextProvider = new ContextProvider(authProvider, messagingProvider, appCheckProvider);

*/
async function postJSON(url, body, headers, fetchImpl) {
async function postJSON(url, body, headers) {
headers['Content-Type'] = 'application/json';
let response;
try {
response = await fetchImpl(url, {
response = await fetch(url, {
method: 'POST',

@@ -576,3 +575,3 @@ body: JSON.stringify(body),

const response = await Promise.race([
postJSON(url, body, headers, functionsInstance.fetchImpl),
postJSON(url, body, headers),
failAfterHandle.promise,

@@ -611,3 +610,3 @@ functionsInstance.cancelAllRequests

const name = "@firebase/functions";
const version = "0.11.8-canary.beaa4dffb";
const version = "0.11.8-vertexai-preview.36cb0178c";

@@ -633,3 +632,3 @@ /**

const MESSAGING_INTERNAL_NAME = 'messaging-internal';
function registerFunctions(fetchImpl, variant) {
function registerFunctions(variant) {
const factory = (container, { instanceIdentifier: regionOrCustomDomain }) => {

@@ -642,7 +641,7 @@ // Dependencies

// eslint-disable-next-line @typescript-eslint/no-explicit-any
return new FunctionsService(app, authProvider, messagingProvider, appCheckProvider, regionOrCustomDomain, fetchImpl);
return new FunctionsService(app, authProvider, messagingProvider, appCheckProvider, regionOrCustomDomain);
};
_registerComponent(new Component(FUNCTIONS_TYPE, factory, "PUBLIC" /* ComponentType.PUBLIC */).setMultipleInstances(true));
registerVersion(name, version, variant);
// BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
// BUILD_TARGET will be replaced by values like esm2017, cjs2017, etc during the compilation
registerVersion(name, version, 'esm2017');

@@ -721,5 +720,5 @@ }

*/
registerFunctions(fetch.bind(self));
registerFunctions();
export { connectFunctionsEmulator, getFunctions, httpsCallable, httpsCallableFromURL };
//# sourceMappingURL=index.esm2017.js.map

@@ -17,2 +17,2 @@ /**

*/
export declare function registerFunctions(fetchImpl: typeof fetch, variant?: string): void;
export declare function registerFunctions(variant?: string): void;

@@ -45,3 +45,2 @@ /**

readonly app: FirebaseApp;
readonly fetchImpl: typeof fetch;
readonly contextProvider: ContextProvider;

@@ -57,3 +56,3 @@ emulatorOrigin: string | null;

*/
constructor(app: FirebaseApp, authProvider: Provider<FirebaseAuthInternalName>, messagingProvider: Provider<MessagingInternalComponentName>, appCheckProvider: Provider<AppCheckInternalComponentName>, regionOrCustomDomain: string | undefined, fetchImpl: typeof fetch);
constructor(app: FirebaseApp, authProvider: Provider<FirebaseAuthInternalName>, messagingProvider: Provider<MessagingInternalComponentName>, appCheckProvider: Provider<AppCheckInternalComponentName>, regionOrCustomDomain?: string);
_delete(): Promise<void>;

@@ -60,0 +59,0 @@ /**

{
"name": "@firebase/functions",
"version": "0.11.8-canary.beaa4dffb",
"version": "0.11.8-vertexai-preview.36cb0178c",
"description": "",
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
"main": "dist/index.node.cjs.js",
"main": "dist/index.cjs.js",
"browser": "dist/index.esm2017.js",
"module": "dist/index.esm2017.js",
"esm5": "dist/index.esm.js",
"exports": {

@@ -14,6 +13,5 @@ ".": {

"node": {
"import": "./dist/esm-node/index.node.esm.js",
"require": "./dist/index.node.cjs.js"
"import": "./dist/index.esm2017.js",
"require": "./dist/index.cjs.js"
},
"esm5": "./dist/index.esm.js",
"browser": {

@@ -42,3 +40,3 @@ "require": "./dist/index.cjs.js",

"test:browser:debug": "karma start --browsers=Chrome --auto-watch",
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'src/{,!(browser)/**/}*.test.ts' --file src/index.node.ts --config ../../config/mocharc.node.js",
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'src/{,!(browser)/**/}*.test.ts' --file src/index.ts --config ../../config/mocharc.node.js",
"test:emulator": "env FIREBASE_FUNCTIONS_EMULATOR_ORIGIN=http://localhost:5005 run-p --npm-path npm test:node",

@@ -53,6 +51,6 @@ "trusted-type-check": "tsec -p tsconfig.json --noEmit",

"peerDependencies": {
"@firebase/app": "0.10.11-canary.beaa4dffb"
"@firebase/app": "0.10.11-vertexai-preview.36cb0178c"
},
"devDependencies": {
"@firebase/app": "0.10.11-canary.beaa4dffb",
"@firebase/app": "0.10.11-vertexai-preview.36cb0178c",
"rollup": "2.79.1",

@@ -73,8 +71,7 @@ "@rollup/plugin-json": "4.1.0",

"dependencies": {
"@firebase/component": "0.6.9-canary.beaa4dffb",
"@firebase/messaging-interop-types": "0.2.2-canary.beaa4dffb",
"@firebase/auth-interop-types": "0.2.3-canary.beaa4dffb",
"@firebase/app-check-interop-types": "0.3.2-canary.beaa4dffb",
"@firebase/util": "1.10.0-canary.beaa4dffb",
"undici": "6.19.7",
"@firebase/component": "0.6.9-vertexai-preview.36cb0178c",
"@firebase/messaging-interop-types": "0.2.2-vertexai-preview.36cb0178c",
"@firebase/auth-interop-types": "0.2.3-vertexai-preview.36cb0178c",
"@firebase/app-check-interop-types": "0.3.2-vertexai-preview.36cb0178c",
"@firebase/util": "1.10.0-vertexai-preview.36cb0178c",
"tslib": "^2.1.0"

@@ -87,3 +84,6 @@ },

"reportDir": "./coverage/node"
},
"engines": {
"node": ">=18.0.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc