Skip to content

Commit

Permalink
Define inspect.keys for Switch.Application
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Apr 11, 2024
1 parent b6145fc commit cba5ff3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/seven-kiwis-shop.md
@@ -0,0 +1,5 @@
---
"nxjs-runtime": patch
---

Define `inspect.keys` for `Switch.Application`
6 changes: 6 additions & 0 deletions 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';
Expand Down Expand Up @@ -201,3 +202,8 @@ export class Application {
}
}
$.nsAppInit(Application);

Object.defineProperty(Application.prototype, inspect.keys, {
enumerable: false,
value: () => ['id', 'nacp', 'icon', 'name', 'version', 'author'],
});

0 comments on commit cba5ff3

Please sign in to comment.