nitro-patcher 0.2.0 → 0.3.0

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.
package/dist/browser.d.ts CHANGED
@@ -7,7 +7,7 @@ export interface PatchMetadata {
7
7
  isBeta?: boolean;
8
8
  }
9
9
  export interface PatchReadme {
10
- format: 'markdown' | 'plaintext';
10
+ format: "markdown" | "plaintext";
11
11
  content: string;
12
12
  }
13
13
  export interface PatchInfo {
@@ -22,7 +22,7 @@ export interface BrowserPatchOptions {
22
22
  }
23
23
  export interface BrowserPatchResult {
24
24
  buffer: Uint8Array<ArrayBuffer>;
25
- returnValue: 'SUCCESS' | 'MD5_MISMATCH';
25
+ returnValue: "SUCCESS" | "MD5_MISMATCH";
26
26
  inputMd5: string;
27
27
  outputMd5: string;
28
28
  }
@@ -48,7 +48,10 @@ export declare const readPatchMetadata: (archive: Uint8Array, options?: BrowserP
48
48
  export declare const readPatchReadme: (archive: Uint8Array, options?: BrowserPatchOptions) => PatchReadme | null;
49
49
  /** Read metadata and README content while parsing the patch package only once. */
50
50
  export declare const readPatchInfo: (archive: Uint8Array, options?: BrowserPatchOptions) => PatchInfo;
51
+ /** Extract one file from a ZIP archive entirely in memory. */
52
+ export declare const extractZipEntry: (archive: Uint8Array, entryName: string, options?: BrowserPatchOptions) => Uint8Array<ArrayBuffer>;
51
53
  export declare const PatchHelper: Readonly<{
54
+ extractZipEntry: (archive: Uint8Array, entryName: string, options?: BrowserPatchOptions) => Uint8Array<ArrayBuffer>;
52
55
  patchBuffer: (original: Uint8Array, archive: Uint8Array, options?: BrowserPatchOptions) => BrowserPatchResult;
53
56
  readPatchInfo: (archive: Uint8Array, options?: BrowserPatchOptions) => PatchInfo;
54
57
  readPatchMetadata: (archive: Uint8Array, options?: BrowserPatchOptions) => PatchMetadata | null;