epos 1.7.3 → 1.7.5

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.
@@ -100,10 +100,14 @@ export interface Epos {
100
100
  assets: {
101
101
  /** Get asset URL. Asset must be loaded first. */
102
102
  url(path: string): Promise<string>;
103
- /** Load asset to memory. Pass '*' to load all assets. */
104
- load(path: string): Promise<void>;
105
- /** Unload asset from memory. Pass '*' to unload all assets.*/
103
+ /** Load asset by path. */
104
+ load(path: string): Promise<Blob>;
105
+ /** Load all assets. */
106
+ loadAll(): Promise<Blob[]>;
107
+ /** Unload asset from memory. */
106
108
  unload(path: string): void;
109
+ /** Unload all assets from memory. */
110
+ unloadAll(): void;
107
111
  /** Get list of all available asset paths. */
108
112
  list(filter?: {
109
113
  loaded?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epos",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "imkost",