Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.ensureTargeted = void 0;
  4. function ensureTargeted(only, codebase, id) {
  5. const parts = only.split(",");
  6. if (parts.includes("functions")) {
  7. return only;
  8. }
  9. let newTarget = `functions:${codebase}`;
  10. if (parts.includes(newTarget)) {
  11. return only;
  12. }
  13. if (id) {
  14. newTarget = `${newTarget}:${id}`;
  15. if (parts.includes(newTarget)) {
  16. return only;
  17. }
  18. }
  19. return `${only},${newTarget}`;
  20. }
  21. exports.ensureTargeted = ensureTargeted;