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

@firebase/functions-compat

Package Overview
Dependencies
Maintainers
5
Versions
1145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase/functions-compat - npm Package Compare versions

Comparing version 0.0.900-exp.f18a6d41d to 0.0.900-exp.f8e97019f

11

dist/index.esm2017.js

@@ -1,4 +0,3 @@

import firebase, { firebase as firebase$1 } from '@firebase/app-compat';
import firebase from '@firebase/app-compat';
import { httpsCallable, useFunctionsEmulator } from '@firebase/functions';
import '@firebase/functions-types';
import { FirebaseError } from '@firebase/util';

@@ -73,3 +72,4 @@ import { Component } from '@firebase/component';

*/
const factory = (container, regionOrCustomDomain) => {
const DEFAULT_REGION = 'us-central1';
const factory = (container, { instanceIdentifier: regionOrCustomDomain }) => {
// Dependencies

@@ -80,3 +80,3 @@ const app = container.getProvider('app-compat').getImmediate();

.getImmediate({
identifier: regionOrCustomDomain
identifier: regionOrCustomDomain !== null && regionOrCustomDomain !== void 0 ? regionOrCustomDomain : DEFAULT_REGION
});

@@ -87,3 +87,2 @@ return new FunctionsService(app, functionsServiceExp);

const namespaceExports = {
// no-inline
Functions: FunctionsService

@@ -113,3 +112,3 @@ };

registerFunctions();
firebase$1.registerVersion(name, version);
firebase.registerVersion(name, version);
//# sourceMappingURL=index.esm2017.js.map

@@ -1,4 +0,3 @@

import firebase, { firebase as firebase$1 } from '@firebase/app-compat';
import firebase from '@firebase/app-compat';
import { httpsCallable, useFunctionsEmulator } from '@firebase/functions';
import '@firebase/functions-types';
import { FirebaseError } from '@firebase/util';

@@ -74,3 +73,5 @@ import { Component } from '@firebase/component';

*/
var factory = function (container, regionOrCustomDomain) {
var DEFAULT_REGION = 'us-central1';
var factory = function (container, _a) {
var regionOrCustomDomain = _a.instanceIdentifier;
// Dependencies

@@ -81,3 +82,3 @@ var app = container.getProvider('app-compat').getImmediate();

.getImmediate({
identifier: regionOrCustomDomain
identifier: regionOrCustomDomain !== null && regionOrCustomDomain !== void 0 ? regionOrCustomDomain : DEFAULT_REGION
});

@@ -88,3 +89,2 @@ return new FunctionsService(app, functionsServiceExp);

var namespaceExports = {
// no-inline
Functions: FunctionsService

@@ -114,3 +114,3 @@ };

registerFunctions();
firebase$1.registerVersion(name, version);
firebase.registerVersion(name, version);
//# sourceMappingURL=index.esm5.js.map

@@ -5,3 +5,2 @@ 'use strict';

var functions = require('@firebase/functions');
require('@firebase/functions-types');
var util = require('@firebase/util');

@@ -81,3 +80,5 @@ var component = require('@firebase/component');

*/
var factory = function (container, regionOrCustomDomain) {
var DEFAULT_REGION = 'us-central1';
var factory = function (container, _a) {
var regionOrCustomDomain = _a.instanceIdentifier;
// Dependencies

@@ -88,3 +89,3 @@ var app = container.getProvider('app-compat').getImmediate();

.getImmediate({
identifier: regionOrCustomDomain
identifier: regionOrCustomDomain !== null && regionOrCustomDomain !== void 0 ? regionOrCustomDomain : DEFAULT_REGION
});

@@ -95,3 +96,2 @@ return new FunctionsService(app, functionsServiceExp);

var namespaceExports = {
// no-inline
Functions: FunctionsService

@@ -98,0 +98,0 @@ };

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

*/
export {};
import * as types from '@firebase/functions-types';
declare module '@firebase/app-compat' {
interface FirebaseNamespace {
functions?: {
(app?: FirebaseApp): types.FirebaseFunctions;
Functions: typeof types.FirebaseFunctions;
};
}
interface FirebaseApp {
functions?(regionOrCustomDomain?: string): types.FirebaseFunctions;
}
}

@@ -17,5 +17,5 @@ /**

*/
import { FirebaseApp } from '@firebase/app-compat';
import { FunctionsService } from './service';
import { FirebaseApp } from '@firebase/app-types';
import { Functions as FunctionsServiceExp } from "@firebase/functions-types";
import { Functions as FunctionsServiceExp } from "@firebase/functions";
declare module '@firebase/component' {

@@ -22,0 +22,0 @@ interface NameServiceMapping {

@@ -18,4 +18,4 @@ /**

import { FirebaseFunctions, HttpsCallable } from '@firebase/functions-types';
import { HttpsCallableOptions, Functions as FunctionsServiceExp } from "@firebase/functions-types";
import { FirebaseApp } from '@firebase/app-types';
import { HttpsCallableOptions, Functions as FunctionsServiceExp } from "@firebase/functions";
import { FirebaseApp } from '@firebase/app-compat';
export declare class FunctionsService implements FirebaseFunctions {

@@ -22,0 +22,0 @@ app: FirebaseApp;

@@ -17,4 +17,4 @@ /**

*/
import { FirebaseApp } from '@firebase/app-types';
import { FirebaseApp } from '@firebase/app-compat';
import { FunctionsService } from '../src/service';
export declare function createTestService(app: FirebaseApp, regionOrCustomDomain?: string): FunctionsService;
{
"name": "@firebase/functions-compat",
"version": "0.0.900-exp.f18a6d41d",
"version": "0.0.900-exp.f8e97019f",
"description": "",

@@ -16,3 +16,3 @@ "private": false,

"peerDependencies": {
"@firebase/app-compat": "0.0.900-exp.f18a6d41d"
"@firebase/app-compat": "0.0.900-exp.f8e97019f"
},

@@ -24,3 +24,3 @@ "devDependencies": {

"rollup-plugin-typescript2": "0.29.0",
"typescript": "4.0.5"
"typescript": "4.2.2"
},

@@ -50,10 +50,9 @@ "repository": {

},
"typings": "dist/functions-compat-public.d.ts",
"typings": "dist/src/index.d.ts",
"dependencies": {
"@firebase/component": "0.1.21",
"@firebase/functions": "0.0.900-exp.f18a6d41d",
"@firebase/functions-types": "0.0.900-exp.f18a6d41d",
"@firebase/component": "0.2.1",
"@firebase/functions": "0.0.900-exp.f8e97019f",
"@firebase/messaging-types": "0.5.0",
"@firebase/util": "0.3.4",
"tslib": "^1.11.1"
"@firebase/util": "0.4.0",
"tslib": "^2.1.0"
},

@@ -60,0 +59,0 @@ "nyc": {

Sorry, the diff of this file is not supported yet

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