mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 17:25:21 +00:00
Revert "Added Bundle.prototype.files getter to prevent exposing filesSymbol"
This reverts commit 6f7a597cbe.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user