123456789101112131415161718 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- const tslib_1 = require("tslib");
- function createArchive(format) {
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
- const archiver = yield Promise.resolve().then(() => require('archiver'));
- return archiver(format);
- });
- }
- exports.createArchive = createArchive;
- function createTarExtraction(opts) {
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
- const tar = yield Promise.resolve().then(() => require('tar'));
- return tar.extract(opts || {});
- });
- }
- exports.createTarExtraction = createTarExtraction;
|