Revert "Added Bundle.prototype.files getter to prevent exposing filesSymbol"

This reverts commit 6f7a597cbe.
This commit is contained in:
Alexander Cerutti
2021-09-26 23:32:21 +02:00
parent 6f7a597cbe
commit aaea9c1304
3 changed files with 7 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
import { Stream } from "stream";
import { ZipFile } from "yazl";
const filesSymbol = Symbol("bundleFiles");
export const filesSymbol = Symbol("bundleFiles");
const bundleStateSymbol = Symbol("state");
const archiveSymbol = Symbol("zip");
@@ -78,14 +78,6 @@ export default class Bundle {
return this[bundleStateSymbol] === BundleState.CLOSED;
}
/**
* Returns the list of files added to the bundle
*/
public get files() {
return this[filesSymbol];
}
/**
* Allows files to be added to the bundle.
* If the bundle is closed, it will throw an error.