aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/tar/dist/commonjs/make-command.js
diff options
context:
space:
mode:
authorpack <pack@packgekko.xyz>2026-08-09 10:54:08 +0000
committerpack <pack@packgekko.xyz>2026-08-09 10:54:08 +0000
commitd3adc16a08d95d6e331de55d7d3bf05a66a874a8 (patch)
treea2dabd199501e67c547c2ce79e1374ca3aa55443 /node_modules/tar/dist/commonjs/make-command.js
parent55a4f1fc869e41aca748c63d3018f0448b1606e0 (diff)
downloadcrud-d3adc16a08d95d6e331de55d7d3bf05a66a874a8.tar.gz
stop tracking node_modules/
Diffstat (limited to 'node_modules/tar/dist/commonjs/make-command.js')
-rw-r--r--node_modules/tar/dist/commonjs/make-command.js52
1 files changed, 0 insertions, 52 deletions
diff --git a/node_modules/tar/dist/commonjs/make-command.js b/node_modules/tar/dist/commonjs/make-command.js
deleted file mode 100644
index d6fc6c7..0000000
--- a/node_modules/tar/dist/commonjs/make-command.js
+++ /dev/null
@@ -1,52 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.makeCommand = void 0;
-const options_js_1 = require("./options.js");
-const makeCommand = (syncFile, asyncFile, syncNoFile, asyncNoFile, validate) => {
- return Object.assign((opt_ = [], entries, cb) => {
- if (Array.isArray(opt_)) {
- entries = opt_;
- opt_ = {};
- }
- if (typeof entries === 'function') {
- cb = entries;
- entries = undefined;
- }
- entries = !entries ? [] : Array.from(entries);
- const opt = (0, options_js_1.dealias)(opt_);
- validate?.(opt, entries);
- if ((0, options_js_1.isSyncFile)(opt)) {
- if (typeof cb === 'function') {
- throw new TypeError('callback not supported for sync tar functions');
- }
- return syncFile(opt, entries);
- }
- else if ((0, options_js_1.isAsyncFile)(opt)) {
- const p = asyncFile(opt, entries);
- return cb ? p.then(() => cb(), cb) : p;
- }
- else if ((0, options_js_1.isSyncNoFile)(opt)) {
- if (typeof cb === 'function') {
- throw new TypeError('callback not supported for sync tar functions');
- }
- return syncNoFile(opt, entries);
- }
- else if ((0, options_js_1.isAsyncNoFile)(opt)) {
- if (typeof cb === 'function') {
- throw new TypeError('callback only supported with file option');
- }
- return asyncNoFile(opt, entries);
- /* c8 ignore start */
- }
- throw new Error('impossible options??');
- /* c8 ignore stop */
- }, {
- syncFile,
- asyncFile,
- syncNoFile,
- asyncNoFile,
- validate,
- });
-};
-exports.makeCommand = makeCommand;
-//# sourceMappingURL=make-command.js.map \ No newline at end of file