diff --git a/.changeset/seven-kiwis-shop.md b/.changeset/seven-kiwis-shop.md new file mode 100644 index 0000000..5903889 --- /dev/null +++ b/.changeset/seven-kiwis-shop.md @@ -0,0 +1,5 @@ +--- +"nxjs-runtime": patch +--- + +Define `inspect.keys` for `Switch.Application` diff --git a/packages/runtime/src/switch/ns.ts b/packages/runtime/src/switch/ns.ts index 9664bae..3cb0eee 100644 --- a/packages/runtime/src/switch/ns.ts +++ b/packages/runtime/src/switch/ns.ts @@ -1,6 +1,7 @@ import { $ } from '../$'; import { FsDev } from './fsdev'; import { crypto } from '../crypto'; +import { inspect } from '../inspect'; import { readFileSync } from '../fs'; import { proto, stub } from '../utils'; import type { Profile } from './profile'; @@ -201,3 +202,8 @@ export class Application { } } $.nsAppInit(Application); + +Object.defineProperty(Application.prototype, inspect.keys, { + enumerable: false, + value: () => ['id', 'nacp', 'icon', 'name', 'version', 'author'], +});