Няма описание
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.getProjectNumber = void 0;
  4. const projects_1 = require("./management/projects");
  5. const projectUtils_1 = require("./projectUtils");
  6. async function getProjectNumber(options) {
  7. if (options.projectNumber) {
  8. return options.projectNumber;
  9. }
  10. const projectId = (0, projectUtils_1.needProjectId)(options);
  11. const metadata = await (0, projects_1.getFirebaseProject)(projectId);
  12. options.projectNumber = metadata.projectNumber;
  13. return options.projectNumber;
  14. }
  15. exports.getProjectNumber = getProjectNumber;