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
1163
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.a9388d5b2 to 0.0.900-exp.a9e3f07fc

13

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';

@@ -8,3 +7,3 @@ import { Component } from '@firebase/component';

const name = "@firebase/functions-compat";
const version = "0.0.900-exp.a9388d5b2";
const version = "0.0.900";

@@ -74,3 +73,4 @@ /**

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

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

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

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

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

@@ -114,3 +113,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';

@@ -8,3 +7,3 @@ import { Component } from '@firebase/component';

var name = "@firebase/functions-compat";
var version = "0.0.900-exp.a9388d5b2";
var version = "0.0.900";

@@ -75,3 +74,5 @@ /**

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

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

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

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

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

@@ -115,3 +115,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');

@@ -15,3 +14,3 @@ var component = require('@firebase/component');

var name = "@firebase/functions-compat";
var version = "0.0.900-exp.a9388d5b2";
var version = "0.0.900";

@@ -82,3 +81,5 @@ /**

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

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

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

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

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

@@ -99,0 +99,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.a9388d5b2",
"version": "0.0.900-exp.a9e3f07fc",
"description": "",

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

"peerDependencies": {
"@firebase/app-compat": "0.0.900-exp.a9388d5b2"
"@firebase/app-compat": "0.0.900-exp.a9e3f07fc"
},
"devDependencies": {
"@firebase/app-compat": "0.0.900",
"rollup": "2.33.2",
"rollup": "2.35.1",
"@rollup/plugin-json": "4.1.0",
"rollup-plugin-typescript2": "0.29.0",
"typescript": "4.0.5"
"typescript": "4.2.2"
},

@@ -47,13 +47,11 @@ "repository": {

"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:emulator": "env FIREBASE_FUNCTIONS_HOST=http://localhost FIREBASE_FUNCTIONS_PORT=5005 run-p test:node",
"prepare": "yarn build:release"
"test:emulator": "env FIREBASE_FUNCTIONS_HOST=http://localhost FIREBASE_FUNCTIONS_PORT=5005 run-p test:node"
},
"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.a9388d5b2",
"@firebase/functions-types": "0.0.900-exp.a9388d5b2",
"@firebase/component": "0.3.0",
"@firebase/functions": "0.0.900-exp.a9e3f07fc",
"@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 +58,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