@point-hub/papi 0.0.2 → 0.0.3

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.
@@ -7,7 +7,7 @@ export declare class ConsoleKernel {
7
7
  * Register the commands for the application.
8
8
  *
9
9
  * @example
10
- * command.register(new ExampleCommand());
10
+ * this.command.register(new ExampleCommand());
11
11
  */
12
12
  register(): Promise<void>;
13
13
  }
@@ -1,15 +1,15 @@
1
- import { URL } from "url";
1
+ import { URL, fileURLToPath } from "url";
2
2
  import { fileSearch } from "@point-hub/express-utils";
3
3
  export class ConsoleKernel {
4
4
  constructor(command) {
5
- this.path = new URL(".", import.meta.url).pathname;
5
+ this.path = fileURLToPath(new URL(".", import.meta.url));
6
6
  this.command = command;
7
7
  }
8
8
  /**
9
9
  * Register the commands for the application.
10
10
  *
11
11
  * @example
12
- * command.register(new ExampleCommand());
12
+ * this.command.register(new ExampleCommand());
13
13
  */
14
14
  async register() {
15
15
  const result = await fileSearch("/*.command.(js|ts)", this.path, { maxDeep: 2, regExp: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@point-hub/papi",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Point API Framework",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",