UNPKG

fast-extract

Version:

Extract contents from various archive types (tar, tar.bz2, tar.gz, tar.xz, tgz, zip)

1 lines 1.44 kB
{"version":3,"sources":["/Users/kevin/Dev/OpenSource/iterators/fast-extract/src/streams/pipelines/7z.mjs"],"sourcesContent":["import SevenZTransform from '../transforms/7z.mjs';\nimport EntryProgressTransform from '../transforms/EntryProgress.mjs';\nimport PathToData from '../transforms/PathToData.mjs';\nimport WriteFileTransform from '../transforms/WriteFile.mjs';\nimport createWriteEntriesStream from '../write/entries.mjs';\n\nexport default function create7zPipeline(_dest, _streams, _options) {\n throw new Error('7z not supported');\n // const isPath = typeof options.source === 'string';\n // streams = streams.slice();\n // if (isPath) {\n // if (streams.length) {\n // streams.unshift(new PathToData());\n // streams.push(new WriteFileTransform(dest, options));\n // }\n // } else {\n // streams.push(new WriteFileTransform(dest, options));\n // }\n // streams.push(new SevenZTransform());\n // !options.progress || streams.push(new EntryProgressTransform(options));\n // streams.push(createWriteEntriesStream(dest, options));\n // return streams;\n}\n"],"names":["create7zPipeline","_dest","_streams","_options","Error"],"mappings":";;;;+BAMA;;;eAAwBA;;;AAAT,SAASA,iBAAiBC,KAAK,EAAEC,QAAQ,EAAEC,QAAQ;IAChE,MAAM,IAAIC,MAAM;AAChB,qDAAqD;AACrD,6BAA6B;AAC7B,gBAAgB;AAChB,0BAA0B;AAC1B,yCAAyC;AACzC,2DAA2D;AAC3D,MAAM;AACN,WAAW;AACX,yDAAyD;AACzD,IAAI;AACJ,uCAAuC;AACvC,0EAA0E;AAC1E,yDAAyD;AACzD,kBAAkB;AACpB"}