Archived
1
0

Remove block padding (blank lines)

Also made a rule for it.
This commit is contained in:
Asher
2019-02-05 18:08:48 -06:00
parent dc08df5540
commit e770920be0
43 changed files with 108 additions and 189 deletions

View File

@ -13,7 +13,6 @@ export interface IFileReader {
* RequireFS allows users to require from a file system.
*/
export class RequireFS {
private readonly reader: IFileReader;
private readonly customModules: Map<string, { exports: object }>;
private readonly requireCache: Map<string, { exports: object }>;
@ -126,7 +125,6 @@ export class RequireFS {
return stripPrefix(resolvedPath);
}
}
export const fromTar = (content: Uint8Array): RequireFS => {

View File

@ -5,7 +5,6 @@ const textDecoder = new (typeof TextDecoder === "undefined" ? require("text-enco
* Tar represents a tar archive.
*/
export class Tar {
/**
* Return a tar object from a Uint8Array.
*/
@ -42,14 +41,12 @@ export class Tar {
public get files(): ReadonlyMap<string, TarFile> {
return this._files;
}
}
/**
* Represents a tar files location within a reader
*/
export class TarFile {
/**
* Locate a tar file from a reader.
*/
@ -186,14 +183,12 @@ export class TarFile {
public read(): Uint8Array {
return this.reader.jump(this.data.offset).read(this.data.size);
}
}
/**
* Reads within a Uint8Array.
*/
export class Reader {
private array: Uint8Array;
private _offset: number;
private lastClamp: number;
@ -281,5 +276,4 @@ export class Reader {
return data;
}
}