|
1 | 1 | "use strict";
|
| 2 | +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { |
| 3 | + if (k2 === undefined) k2 = k; |
| 4 | + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); |
| 5 | +}) : (function(o, m, k, k2) { |
| 6 | + if (k2 === undefined) k2 = k; |
| 7 | + o[k2] = m[k]; |
| 8 | +})); |
| 9 | +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { |
| 10 | + Object.defineProperty(o, "default", { enumerable: true, value: v }); |
| 11 | +}) : function(o, v) { |
| 12 | + o["default"] = v; |
| 13 | +}); |
| 14 | +var __importStar = (this && this.__importStar) || function (mod) { |
| 15 | + if (mod && mod.__esModule) return mod; |
| 16 | + var result = {}; |
| 17 | + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |
| 18 | + __setModuleDefault(result, mod); |
| 19 | + return result; |
| 20 | +}; |
2 | 21 | var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
| 22 | + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } |
3 | 23 | return new (P || (P = Promise))(function (resolve, reject) {
|
4 | 24 | function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5 | 25 | function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
6 |
| - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } |
| 26 | + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } |
7 | 27 | step((generator = generator.apply(thisArg, _arguments || [])).next());
|
8 | 28 | });
|
9 | 29 | };
|
10 |
| -var __importStar = (this && this.__importStar) || function (mod) { |
11 |
| - if (mod && mod.__esModule) return mod; |
12 |
| - var result = {}; |
13 |
| - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; |
14 |
| - result["default"] = mod; |
15 |
| - return result; |
16 |
| -}; |
17 | 30 | Object.defineProperty(exports, "__esModule", { value: true });
|
| 31 | +exports.getProtoc = void 0; |
18 | 32 | // Load tempDirectory before it gets wiped by tool-cache
|
19 | 33 | let tempDirectory = process.env["RUNNER_TEMP"] || "";
|
20 | 34 | const os = __importStar(require("os"));
|
|
0 commit comments