No Description
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.

triggerRegionHelper.js 616B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.ensureTriggerRegions = void 0;
  4. const backend = require("./backend");
  5. const services_1 = require("./services");
  6. async function ensureTriggerRegions(want) {
  7. const regionLookups = [];
  8. for (const ep of backend.allEndpoints(want)) {
  9. if (ep.platform === "gcfv1" || !backend.isEventTriggered(ep)) {
  10. continue;
  11. }
  12. regionLookups.push((0, services_1.serviceForEndpoint)(ep).ensureTriggerRegion(ep));
  13. }
  14. await Promise.all(regionLookups);
  15. }
  16. exports.ensureTriggerRegions = ensureTriggerRegions;