@mojojs/core 0.12.2 → 0.12.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.
@@ -0,0 +1,7 @@
1
+ import type { MojoApp } from '../types.js';
2
+ declare function replCommand(app: MojoApp): Promise<void>;
3
+ declare namespace replCommand {
4
+ var description: string;
5
+ var usage: string;
6
+ }
7
+ export default replCommand;
@@ -0,0 +1,13 @@
1
+ import repl from 'repl';
2
+ export default async function replCommand(app) {
3
+ repl.start().context.app = app;
4
+ }
5
+ replCommand.description = 'Start a repl for application';
6
+ replCommand.usage = `Usage: APPLICATION repl [OPTIONS]
7
+
8
+ node index.js repl
9
+
10
+ Options:
11
+ -h, --help Show this summary of available options
12
+ `;
13
+ //# sourceMappingURL=repl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repl.js","sourceRoot":"","sources":["../../src/cli/repl.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,WAAW,CAAC,GAAY;IACpD,IAAI,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC;AACjC,CAAC;AAED,WAAW,CAAC,WAAW,GAAG,8BAA8B,CAAC;AACzD,WAAW,CAAC,KAAK,GAAG;;;;;;CAMnB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojojs/core",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "description": "Real-time web framework",
5
5
  "keywords": [
6
6
  "web",