54 lines
3.1 KiB
JavaScript
54 lines
3.1 KiB
JavaScript
/*! firebase-admin v14.0.0 */
|
|
"use strict";
|
|
/*!
|
|
* @license
|
|
* Copyright 2017 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.SDK_VERSION = exports.AppErrorCode = exports.FirebaseAppError = exports.FirebaseError = exports.refreshToken = exports.cert = exports.applicationDefault = exports.deleteApp = exports.getApps = exports.getApp = exports.initializeApp = void 0;
|
|
const utils_1 = require("./utils");
|
|
// Only Node.js has a process variable that is of [[Class]] process
|
|
const processGlobal = typeof process !== 'undefined' ? process : 0;
|
|
if (Object.prototype.toString.call(processGlobal) !== '[object process]') {
|
|
const message = `
|
|
======== WARNING! ========
|
|
|
|
firebase-admin appears to have been installed in an unsupported environment.
|
|
This package should only be used in server-side or backend Node.js environments,
|
|
and should not be used in web browsers or other client-side environments.
|
|
|
|
Use the Firebase JS SDK for client-side Firebase integrations:
|
|
|
|
https://firebase.google.com/docs/web/setup
|
|
`;
|
|
// tslint:disable-next-line:no-console
|
|
console.error(message);
|
|
}
|
|
var lifecycle_1 = require("./app/lifecycle");
|
|
Object.defineProperty(exports, "initializeApp", { enumerable: true, get: function () { return lifecycle_1.initializeApp; } });
|
|
Object.defineProperty(exports, "getApp", { enumerable: true, get: function () { return lifecycle_1.getApp; } });
|
|
Object.defineProperty(exports, "getApps", { enumerable: true, get: function () { return lifecycle_1.getApps; } });
|
|
Object.defineProperty(exports, "deleteApp", { enumerable: true, get: function () { return lifecycle_1.deleteApp; } });
|
|
var credential_factory_1 = require("./app/credential-factory");
|
|
Object.defineProperty(exports, "applicationDefault", { enumerable: true, get: function () { return credential_factory_1.applicationDefault; } });
|
|
Object.defineProperty(exports, "cert", { enumerable: true, get: function () { return credential_factory_1.cert; } });
|
|
Object.defineProperty(exports, "refreshToken", { enumerable: true, get: function () { return credential_factory_1.refreshToken; } });
|
|
var error_1 = require("./utils/error");
|
|
Object.defineProperty(exports, "FirebaseError", { enumerable: true, get: function () { return error_1.FirebaseError; } });
|
|
var error_2 = require("./app/error");
|
|
Object.defineProperty(exports, "FirebaseAppError", { enumerable: true, get: function () { return error_2.FirebaseAppError; } });
|
|
Object.defineProperty(exports, "AppErrorCode", { enumerable: true, get: function () { return error_2.AppErrorCode; } });
|
|
exports.SDK_VERSION = (0, utils_1.getSdkVersion)();
|