an-anime-game-launcher/src/empathize.ts
Observer KRypt0n_ fcc67af03a
API improvements
- updated empathize to 1.4.0;
  due to it was removed `Launcher.isPackageAvailable()` method
  which now included in empathize as `Package.exists()`
- `Game.isTelemetryDisabled()` now rejects an Error object
  when `iputils` package (`ping` command) is not installed
- due to the change above was slightly rewritten `Launch.ts` script
2022-01-29 13:27:33 +02:00

55 lines
863 B
TypeScript

import {
// Paths API
path, dir,
// Filesystem API
fs,
// Windows API
Windows,
// OS API
Process, Tray, IPC, Notification, Archive, Package,
// Network API
fetch, Domain, Downloader,
// Async API
promisify,
// Meta classes
Cache, Configs, Debug
} from '@empathize/framework';
import YAML from 'yaml';
import constants from './ts/Constants';
Configs.file = constants.paths.config;
Cache.file = constants.paths.cache;
Configs.serialize = YAML.stringify;
Configs.unserialize = YAML.parse;
export {
// Paths API
path, dir,
// Filesystem API
fs,
// Windows API
Windows,
// OS API
Process, Tray, IPC, Notification, Archive, Package,
// Network API
fetch, Domain, Downloader,
// Async API
promisify,
// Meta classes
Cache, Configs, Debug
};