diff --git a/built/utils/tmp-ope.d.ts b/built/utils/tmp-ope.d.ts deleted file mode 100644 index 5dd0c2d3..00000000 --- a/built/utils/tmp-ope.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function tmpOpe(): Promise; diff --git a/built/utils/tmp-ope.js b/built/utils/tmp-ope.js deleted file mode 100644 index 77434668..00000000 --- a/built/utils/tmp-ope.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.tmpOpe = void 0; -const tmp = require("tmp"); -function tmpOpe() { - return __awaiter(this, void 0, void 0, function* () { - const [path, cleanup] = yield new Promise((res, rej) => { - tmp.file((e, path, fd, cleanup) => { - if (e) - return rej(e); - res([path, cleanup]); - }); - }); - return [path, cleanup]; - }); -} -exports.tmpOpe = tmpOpe;