mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 20:25:26 +00:00
Added new Bundle.prototype.files getter
This commit is contained in:
@@ -87,6 +87,21 @@ export default class Bundle {
|
||||
return Object.isFrozen(this[filesSymbol]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a copy of the current list of buffers
|
||||
* that have been added to the class.
|
||||
*
|
||||
* It does not include translation files, manifest
|
||||
* and signature.
|
||||
*
|
||||
* Final files list might differ due to export
|
||||
* conditions.
|
||||
*/
|
||||
|
||||
public get files() {
|
||||
return Object.keys(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