@orkestrel/sea 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -300,7 +300,7 @@ export declare function compressFile(input: string, output: string, options?: SE
300
300
  * @param compressed - Compressed byte count
301
301
  * @returns SEACompressionSize with ratio
302
302
  */
303
- export declare function computeSize(original: number, compressed: number): SEACompressionSize;
303
+ export declare function computeCompressionSize(original: number, compressed: number): SEACompressionSize;
304
304
 
305
305
  /**
306
306
  * Copies a byte range from one open file descriptor to another, streaming in
@@ -300,7 +300,7 @@ export declare function compressFile(input: string, output: string, options?: SE
300
300
  * @param compressed - Compressed byte count
301
301
  * @returns SEACompressionSize with ratio
302
302
  */
303
- export declare function computeSize(original: number, compressed: number): SEACompressionSize;
303
+ export declare function computeCompressionSize(original: number, compressed: number): SEACompressionSize;
304
304
 
305
305
  /**
306
306
  * Copies a byte range from one open file descriptor to another, streaming in
@@ -485,7 +485,7 @@ function executeShell(command, options) {
485
485
  * @param compressed - Compressed byte count
486
486
  * @returns SEACompressionSize with ratio
487
487
  */
488
- function computeSize(original, compressed) {
488
+ function computeCompressionSize(original, compressed) {
489
489
  return {
490
490
  original,
491
491
  compressed,
@@ -515,7 +515,7 @@ function compressFile(input, output, options) {
515
515
  return {
516
516
  input,
517
517
  output,
518
- size: computeSize(raw.length, compressed.length)
518
+ size: computeCompressionSize(raw.length, compressed.length)
519
519
  };
520
520
  }
521
521
  /**
@@ -547,7 +547,7 @@ function compressDirectory(directory, options, progress) {
547
547
  });
548
548
  return {
549
549
  assets: results,
550
- total: computeSize(totals.original, totals.compressed)
550
+ total: computeCompressionSize(totals.original, totals.compressed)
551
551
  };
552
552
  }
553
553
  /**
@@ -2744,6 +2744,6 @@ function createAsset(input) {
2744
2744
  function createAssetManager(options) {
2745
2745
  return new AssetManager(options);
2746
2746
  }
2747
- export { Asset, AssetManager, BROTLI_EXTENSION, DEFAULT_ENTRY_FORMAT, DEFAULT_SEA_COMPRESSION_QUALITY, ELF_CLASS_64, ELF_DATA_LSB, ELF_MAGIC, ELF_PAGE_SIZE, ELF_PF_R, ELF_PT_LOAD, ELF_PT_NOTE, ELF_PT_PHDR, Injector, MACHO_LC_SEGMENT_64, MACHO_MAGIC_64, PE32_MAGIC, PE32_PLUS_MAGIC, PE_MAGIC, PE_RESOURCE_DATA_ENTRY_SIZE, PE_RESOURCE_DIR_SIZE, PE_RESOURCE_ENTRY_SIZE, PE_RESOURCE_NAME_FLAG, PE_RESOURCE_SUBDIR_FLAG, PE_RT_RCDATA, PE_SCN_INITIALIZED_DATA, PE_SCN_MEM_READ, PE_SECTION_HEADER_SIZE, PE_SIGNATURE, SEA, SEAError, SEA_BLOB_RESOURCE, SEA_COMPRESSION_MODE_VALUES, SEA_PLATFORMS, SEA_SENTINEL_FUSE, SKIP_EXTENSIONS, ShellError, WINDOWS_SUBSYSTEM_CONSOLE, WINDOWS_SUBSYSTEM_GUI, alignELFNoteSize, alignTo, appendFile, buildBlobConfig, buildELFNoteHeader, buildSignCommand, compressDirectory, compressFile, computeSize, copyRange, createAsset, createAssetManager, createInjector, createSEA, ensureContained, ensureExists, ensureSafeKey, ensureSafeName, executeShell, finalizeExecutable, formatSize, isCompressible, isExecutableFormat, isPEExecutable, isPlatformSupported, isPowerOfTwo, isSEAError, isShellError, openBrowser, patchPESubsystem, patchSentinelFuse, readPEOffset, readU16, readU32, readU64, redactCommand, resolvePlatform, stripPESignature, stripTrailingNulls, syncDirectory, walkDirectory, writeU16, writeU32, writeU64 };
2747
+ export { Asset, AssetManager, BROTLI_EXTENSION, DEFAULT_ENTRY_FORMAT, DEFAULT_SEA_COMPRESSION_QUALITY, ELF_CLASS_64, ELF_DATA_LSB, ELF_MAGIC, ELF_PAGE_SIZE, ELF_PF_R, ELF_PT_LOAD, ELF_PT_NOTE, ELF_PT_PHDR, Injector, MACHO_LC_SEGMENT_64, MACHO_MAGIC_64, PE32_MAGIC, PE32_PLUS_MAGIC, PE_MAGIC, PE_RESOURCE_DATA_ENTRY_SIZE, PE_RESOURCE_DIR_SIZE, PE_RESOURCE_ENTRY_SIZE, PE_RESOURCE_NAME_FLAG, PE_RESOURCE_SUBDIR_FLAG, PE_RT_RCDATA, PE_SCN_INITIALIZED_DATA, PE_SCN_MEM_READ, PE_SECTION_HEADER_SIZE, PE_SIGNATURE, SEA, SEAError, SEA_BLOB_RESOURCE, SEA_COMPRESSION_MODE_VALUES, SEA_PLATFORMS, SEA_SENTINEL_FUSE, SKIP_EXTENSIONS, ShellError, WINDOWS_SUBSYSTEM_CONSOLE, WINDOWS_SUBSYSTEM_GUI, alignELFNoteSize, alignTo, appendFile, buildBlobConfig, buildELFNoteHeader, buildSignCommand, compressDirectory, compressFile, computeCompressionSize, copyRange, createAsset, createAssetManager, createInjector, createSEA, ensureContained, ensureExists, ensureSafeKey, ensureSafeName, executeShell, finalizeExecutable, formatSize, isCompressible, isExecutableFormat, isPEExecutable, isPlatformSupported, isPowerOfTwo, isSEAError, isShellError, openBrowser, patchPESubsystem, patchSentinelFuse, readPEOffset, readU16, readU32, readU64, redactCommand, resolvePlatform, stripPESignature, stripTrailingNulls, syncDirectory, walkDirectory, writeU16, writeU32, writeU64 };
2748
2748
 
2749
2749
  //# sourceMappingURL=index.js.map