Compare commits
No commits in common. "87aedd5ef5ac6d2b38a8a6b9e0e47f75514bc9d8" and "120fd0b321d944b769af74a9ede271964db01620" have entirely different histories.
87aedd5ef5
...
120fd0b321
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/smartarchive",
|
"name": "@push.rocks/smartarchive",
|
||||||
"version": "4.0.35",
|
"version": "4.0.34",
|
||||||
"description": "A library for working with archive files, providing utilities for compressing and decompressing data.",
|
"description": "A library for working with archive files, providing utilities for compressing and decompressing data.",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartarchive',
|
name: '@push.rocks/smartarchive',
|
||||||
version: '4.0.35',
|
version: '4.0.34',
|
||||||
description: 'A library for working with archive files, providing utilities for compressing and decompressing data.'
|
description: 'A library for working with archive files, providing utilities for compressing and decompressing data.'
|
||||||
}
|
}
|
||||||
|
@ -21,17 +21,12 @@ export class TarTools {
|
|||||||
}
|
}
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
return new Promise<void>(async (resolve, reject) => {
|
return new Promise<void>(async (resolve, reject) => {
|
||||||
let fileName: string | null = null;
|
let fileName =
|
||||||
|
optionsArg.fileName || optionsArg.content instanceof plugins.smartfile.SmartFile
|
||||||
if (optionsArg.fileName) {
|
? (optionsArg.content as plugins.smartfile.SmartFile).relative
|
||||||
fileName = optionsArg.fileName;
|
: null || optionsArg.content instanceof plugins.smartfile.StreamFile
|
||||||
} else if (optionsArg.content instanceof plugins.smartfile.SmartFile) {
|
? (optionsArg.content as plugins.smartfile.StreamFile).relativeFilePath
|
||||||
fileName = (optionsArg.content as plugins.smartfile.SmartFile).relative;
|
: null || optionsArg.filePath;
|
||||||
} else if (optionsArg.content instanceof plugins.smartfile.StreamFile) {
|
|
||||||
fileName = (optionsArg.content as plugins.smartfile.StreamFile).relativeFilePath;
|
|
||||||
} else if (optionsArg.filePath) {
|
|
||||||
fileName = optionsArg.filePath;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* contentByteLength is used to set the size of the entry in the tar file
|
* contentByteLength is used to set the size of the entry in the tar file
|
||||||
|
Loading…
Reference in New Issue
Block a user