authup 0.17.1 → 0.18.0

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.
Files changed (67) hide show
  1. package/dist/commands/index.d.ts +4 -4
  2. package/dist/commands/index.js +26 -26
  3. package/dist/commands/info.d.ts +2 -2
  4. package/dist/commands/info.js +31 -31
  5. package/dist/commands/server.d.ts +2 -2
  6. package/dist/commands/server.js +45 -45
  7. package/dist/commands/start.d.ts +2 -2
  8. package/dist/commands/start.js +43 -43
  9. package/dist/commands/ui.d.ts +2 -2
  10. package/dist/commands/ui.js +41 -41
  11. package/dist/config/index.d.ts +2 -2
  12. package/dist/config/index.js +24 -24
  13. package/dist/config/module.d.ts +2 -2
  14. package/dist/config/module.js +27 -27
  15. package/dist/config/read.d.ts +2 -2
  16. package/dist/config/read.js +28 -28
  17. package/dist/config/type.d.ts +10 -10
  18. package/dist/config/type.js +8 -8
  19. package/dist/index.d.ts +2 -2
  20. package/dist/index.js +21 -21
  21. package/dist/packages/index.d.ts +3 -3
  22. package/dist/packages/index.js +25 -25
  23. package/dist/packages/server/commands/index.d.ts +4 -4
  24. package/dist/packages/server/commands/index.js +26 -26
  25. package/dist/packages/server/commands/module.d.ts +5 -5
  26. package/dist/packages/server/commands/module.js +45 -45
  27. package/dist/packages/server/commands/reset.d.ts +4 -4
  28. package/dist/packages/server/commands/reset.js +24 -24
  29. package/dist/packages/server/commands/start.d.ts +2 -2
  30. package/dist/packages/server/commands/start.js +23 -23
  31. package/dist/packages/server/commands/utils.d.ts +3 -3
  32. package/dist/packages/server/commands/utils.js +26 -26
  33. package/dist/packages/server/constants.d.ts +4 -4
  34. package/dist/packages/server/constants.js +14 -14
  35. package/dist/packages/server/index.d.ts +2 -2
  36. package/dist/packages/server/index.js +24 -24
  37. package/dist/packages/type.d.ts +4 -4
  38. package/dist/packages/type.js +8 -8
  39. package/dist/packages/ui/commands/index.d.ts +2 -2
  40. package/dist/packages/ui/commands/index.js +24 -24
  41. package/dist/packages/ui/commands/module.d.ts +5 -5
  42. package/dist/packages/ui/commands/module.js +48 -48
  43. package/dist/packages/ui/commands/start.d.ts +10 -10
  44. package/dist/packages/ui/commands/start.js +46 -46
  45. package/dist/packages/ui/config/index.d.ts +2 -2
  46. package/dist/packages/ui/config/index.js +24 -24
  47. package/dist/packages/ui/config/module.d.ts +3 -3
  48. package/dist/packages/ui/config/module.js +21 -21
  49. package/dist/packages/ui/config/validate.d.ts +2 -2
  50. package/dist/packages/ui/config/validate.js +22 -22
  51. package/dist/packages/ui/constants.d.ts +3 -3
  52. package/dist/packages/ui/constants.js +13 -13
  53. package/dist/packages/ui/index.d.ts +4 -4
  54. package/dist/packages/ui/index.js +26 -26
  55. package/dist/packages/ui/type.d.ts +6 -6
  56. package/dist/packages/ui/type.js +8 -8
  57. package/dist/utils/index.d.ts +4 -4
  58. package/dist/utils/index.js +26 -26
  59. package/dist/utils/line-breaks.d.ts +1 -1
  60. package/dist/utils/line-breaks.js +13 -13
  61. package/dist/utils/path.d.ts +1 -1
  62. package/dist/utils/path.js +17 -17
  63. package/dist/utils/process-output.d.ts +1 -1
  64. package/dist/utils/process-output.js +41 -41
  65. package/dist/utils/stringify-object-args.d.ts +1 -1
  66. package/dist/utils/stringify-object-args.js +18 -18
  67. package/package.json +6 -6
@@ -1,9 +1,9 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2022.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  //# sourceMappingURL=type.js.map
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env node
2
- export {};
1
+ #!/usr/bin/env node
2
+ export {};
3
3
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,22 +1,22 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- /*
4
- * Copyright (c) 2022.
5
- * Author Peter Placzek (tada5hi)
6
- * For the full copyright and license information,
7
- * view the LICENSE file that was distributed with this source code.
8
- */
9
- var __importDefault = (this && this.__importDefault) || function (mod) {
10
- return (mod && mod.__esModule) ? mod : { "default": mod };
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- const cac_1 = __importDefault(require("cac"));
14
- const commands_1 = require("./commands");
15
- const cli = (0, cac_1.default)();
16
- (0, commands_1.buildInfoCommand)(cli);
17
- (0, commands_1.buildStartCommand)(cli);
18
- (0, commands_1.buildServerCommand)(cli);
19
- (0, commands_1.buildUiCommand)(cli);
20
- cli.help();
21
- cli.parse();
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ /*
4
+ * Copyright (c) 2022.
5
+ * Author Peter Placzek (tada5hi)
6
+ * For the full copyright and license information,
7
+ * view the LICENSE file that was distributed with this source code.
8
+ */
9
+ var __importDefault = (this && this.__importDefault) || function (mod) {
10
+ return (mod && mod.__esModule) ? mod : { "default": mod };
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ const cac_1 = __importDefault(require("cac"));
14
+ const commands_1 = require("./commands");
15
+ const cli = (0, cac_1.default)();
16
+ (0, commands_1.buildInfoCommand)(cli);
17
+ (0, commands_1.buildStartCommand)(cli);
18
+ (0, commands_1.buildServerCommand)(cli);
19
+ (0, commands_1.buildUiCommand)(cli);
20
+ cli.help();
21
+ cli.parse();
22
22
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export * from './ui';
2
- export * from './server';
3
- export * from './type';
1
+ export * from './ui';
2
+ export * from './server';
3
+ export * from './type';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,26 +1,26 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2022.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("./ui"), exports);
24
- __exportStar(require("./server"), exports);
25
- __exportStar(require("./type"), exports);
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
+ if (k2 === undefined) k2 = k;
10
+ var desc = Object.getOwnPropertyDescriptor(m, k);
11
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
+ desc = { enumerable: true, get: function() { return m[k]; } };
13
+ }
14
+ Object.defineProperty(o, k2, desc);
15
+ }) : (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ o[k2] = m[k];
18
+ }));
19
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
+ };
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ __exportStar(require("./ui"), exports);
24
+ __exportStar(require("./server"), exports);
25
+ __exportStar(require("./type"), exports);
26
26
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- export * from './module';
2
- export * from './reset';
3
- export * from './start';
4
- export * from './utils';
1
+ export * from './module';
2
+ export * from './reset';
3
+ export * from './start';
4
+ export * from './utils';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,27 +1,27 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2022.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("./module"), exports);
24
- __exportStar(require("./reset"), exports);
25
- __exportStar(require("./start"), exports);
26
- __exportStar(require("./utils"), exports);
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
+ if (k2 === undefined) k2 = k;
10
+ var desc = Object.getOwnPropertyDescriptor(m, k);
11
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
+ desc = { enumerable: true, get: function() { return m[k]; } };
13
+ }
14
+ Object.defineProperty(o, k2, desc);
15
+ }) : (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ o[k2] = m[k];
18
+ }));
19
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
+ };
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ __exportStar(require("./module"), exports);
24
+ __exportStar(require("./reset"), exports);
25
+ __exportStar(require("./start"), exports);
26
+ __exportStar(require("./utils"), exports);
27
27
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- /// <reference types="node" />
2
- import type { ChildProcess } from 'child_process';
3
- import type { CommandExecutionContext } from '../../type';
4
- import type { ServerCommand } from '../constants';
5
- export declare function executeServerCommand(command: `${ServerCommand}`, ctx?: CommandExecutionContext): Promise<ChildProcess>;
1
+ /// <reference types="node" />
2
+ import type { ChildProcess } from 'child_process';
3
+ import type { CommandExecutionContext } from '../../type';
4
+ import type { ServerCommand } from '../constants';
5
+ export declare function executeServerCommand(command: `${ServerCommand}`, ctx?: CommandExecutionContext): Promise<ChildProcess>;
6
6
  //# sourceMappingURL=module.d.ts.map
@@ -1,46 +1,46 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2022-2022.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.executeServerCommand = void 0;
13
- const child_process_1 = require("child_process");
14
- const consola_1 = __importDefault(require("consola"));
15
- const path_1 = __importDefault(require("path"));
16
- const process_1 = __importDefault(require("process"));
17
- const resolve_package_path_1 = __importDefault(require("resolve-package-path"));
18
- const utils_1 = require("../../../utils");
19
- async function executeServerCommand(command, ctx) {
20
- ctx = ctx || {};
21
- ctx.env = ctx.env || {};
22
- ctx.args = ctx.args || {};
23
- return new Promise((resolve, reject) => {
24
- let base = 'npx @authup/server';
25
- const modulePath = (0, resolve_package_path_1.default)('@authup/server', process_1.default.cwd()) ||
26
- (0, resolve_package_path_1.default)('@authup/server', (0, utils_1.getClosestNodeModulesPath)());
27
- if (typeof modulePath === 'string') {
28
- const directory = path_1.default.dirname(modulePath);
29
- const outputPath = path_1.default.join(directory, 'dist', 'cli', 'index.js');
30
- base = `node ${outputPath}`;
31
- }
32
- const childProcess = (0, child_process_1.exec)(`${base} ${command} ${(0, utils_1.stringifyObjectArgs)(ctx.args)}`, {
33
- env: ctx.env,
34
- });
35
- childProcess.on('spawn', () => {
36
- resolve(childProcess);
37
- });
38
- childProcess.stderr.setEncoding('utf-8');
39
- childProcess.stderr.on('data', (data) => {
40
- consola_1.default.warn(data);
41
- reject(data);
42
- });
43
- });
44
- }
45
- exports.executeServerCommand = executeServerCommand;
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022-2022.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.executeServerCommand = void 0;
13
+ const child_process_1 = require("child_process");
14
+ const consola_1 = __importDefault(require("consola"));
15
+ const path_1 = __importDefault(require("path"));
16
+ const process_1 = __importDefault(require("process"));
17
+ const resolve_package_path_1 = __importDefault(require("resolve-package-path"));
18
+ const utils_1 = require("../../../utils");
19
+ async function executeServerCommand(command, ctx) {
20
+ ctx = ctx || {};
21
+ ctx.env = ctx.env || {};
22
+ ctx.args = ctx.args || {};
23
+ return new Promise((resolve, reject) => {
24
+ let base = 'npx @authup/server';
25
+ const modulePath = (0, resolve_package_path_1.default)('@authup/server', process_1.default.cwd()) ||
26
+ (0, resolve_package_path_1.default)('@authup/server', (0, utils_1.getClosestNodeModulesPath)());
27
+ if (typeof modulePath === 'string') {
28
+ const directory = path_1.default.dirname(modulePath);
29
+ const outputPath = path_1.default.join(directory, 'dist', 'cli', 'index.js');
30
+ base = `node ${outputPath}`;
31
+ }
32
+ const childProcess = (0, child_process_1.exec)(`${base} ${command} ${(0, utils_1.stringifyObjectArgs)(ctx.args)}`, {
33
+ env: ctx.env,
34
+ });
35
+ childProcess.on('spawn', () => {
36
+ resolve(childProcess);
37
+ });
38
+ childProcess.stderr.setEncoding('utf-8');
39
+ childProcess.stderr.on('data', (data) => {
40
+ consola_1.default.warn(data);
41
+ reject(data);
42
+ });
43
+ });
44
+ }
45
+ exports.executeServerCommand = executeServerCommand;
46
46
  //# sourceMappingURL=module.js.map
@@ -1,5 +1,5 @@
1
- /// <reference types="node" />
2
- import type { ChildProcess } from 'child_process';
3
- import type { CommandExecutionContext } from '../../type';
4
- export declare function resetServer(ctx?: CommandExecutionContext): Promise<ChildProcess>;
1
+ /// <reference types="node" />
2
+ import type { ChildProcess } from 'child_process';
3
+ import type { CommandExecutionContext } from '../../type';
4
+ export declare function resetServer(ctx?: CommandExecutionContext): Promise<ChildProcess>;
5
5
  //# sourceMappingURL=reset.d.ts.map
@@ -1,25 +1,25 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2022.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.resetServer = void 0;
13
- const consola_1 = __importDefault(require("consola"));
14
- const constants_1 = require("../constants");
15
- const module_1 = require("./module");
16
- const utils_1 = require("./utils");
17
- async function resetServer(ctx) {
18
- consola_1.default.info('Server: Cleanup configuration, database, ...');
19
- const childProcess = await (0, module_1.executeServerCommand)(constants_1.ServerCommand.RESET, ctx);
20
- consola_1.default.success('Server: Cleaned up');
21
- (0, utils_1.handleServerCommandOutput)(childProcess);
22
- return childProcess;
23
- }
24
- exports.resetServer = resetServer;
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.resetServer = void 0;
13
+ const consola_1 = __importDefault(require("consola"));
14
+ const constants_1 = require("../constants");
15
+ const module_1 = require("./module");
16
+ const utils_1 = require("./utils");
17
+ async function resetServer(ctx) {
18
+ consola_1.default.info('Server: Cleanup configuration, database, ...');
19
+ const childProcess = await (0, module_1.executeServerCommand)(constants_1.ServerCommand.RESET, ctx);
20
+ consola_1.default.success('Server: Cleaned up');
21
+ (0, utils_1.handleServerCommandOutput)(childProcess);
22
+ return childProcess;
23
+ }
24
+ exports.resetServer = resetServer;
25
25
  //# sourceMappingURL=reset.js.map
@@ -1,3 +1,3 @@
1
- import type { CommandExecutionContext } from '../../type';
2
- export declare function startServer(ctx?: CommandExecutionContext): Promise<void>;
1
+ import type { CommandExecutionContext } from '../../type';
2
+ export declare function startServer(ctx?: CommandExecutionContext): Promise<void>;
3
3
  //# sourceMappingURL=start.d.ts.map
@@ -1,24 +1,24 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2022.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.startServer = void 0;
13
- const consola_1 = __importDefault(require("consola"));
14
- const constants_1 = require("../constants");
15
- const module_1 = require("./module");
16
- const utils_1 = require("./utils");
17
- async function startServer(ctx) {
18
- consola_1.default.info('Server: Starting...');
19
- const childProcess = await (0, module_1.executeServerCommand)(constants_1.ServerCommand.START, ctx);
20
- consola_1.default.success('Server: Started');
21
- (0, utils_1.handleServerCommandOutput)(childProcess);
22
- }
23
- exports.startServer = startServer;
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.startServer = void 0;
13
+ const consola_1 = __importDefault(require("consola"));
14
+ const constants_1 = require("../constants");
15
+ const module_1 = require("./module");
16
+ const utils_1 = require("./utils");
17
+ async function startServer(ctx) {
18
+ consola_1.default.info('Server: Starting...');
19
+ const childProcess = await (0, module_1.executeServerCommand)(constants_1.ServerCommand.START, ctx);
20
+ consola_1.default.success('Server: Started');
21
+ (0, utils_1.handleServerCommandOutput)(childProcess);
22
+ }
23
+ exports.startServer = startServer;
24
24
  //# sourceMappingURL=start.js.map
@@ -1,4 +1,4 @@
1
- /// <reference types="node" />
2
- import type { ChildProcess } from 'child_process';
3
- export declare function handleServerCommandOutput(childProcess: ChildProcess): void;
1
+ /// <reference types="node" />
2
+ import type { ChildProcess } from 'child_process';
3
+ export declare function handleServerCommandOutput(childProcess: ChildProcess): void;
4
4
  //# sourceMappingURL=utils.d.ts.map
@@ -1,27 +1,27 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2022.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.handleServerCommandOutput = void 0;
13
- const consola_1 = __importDefault(require("consola"));
14
- const utils_1 = require("../../../utils");
15
- function handleServerCommandOutput(childProcess) {
16
- childProcess.stdout.on('data', (data) => {
17
- if (typeof data !== 'string' || data.length === 0) {
18
- return;
19
- }
20
- const lines = (0, utils_1.parseProcessOutputData)(data);
21
- for (let i = 0; i < lines.length; i++) {
22
- consola_1.default.info(`Server: ${lines[i]}`);
23
- }
24
- });
25
- }
26
- exports.handleServerCommandOutput = handleServerCommandOutput;
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.handleServerCommandOutput = void 0;
13
+ const consola_1 = __importDefault(require("consola"));
14
+ const utils_1 = require("../../../utils");
15
+ function handleServerCommandOutput(childProcess) {
16
+ childProcess.stdout.on('data', (data) => {
17
+ if (typeof data !== 'string' || data.length === 0) {
18
+ return;
19
+ }
20
+ const lines = (0, utils_1.parseProcessOutputData)(data);
21
+ for (let i = 0; i < lines.length; i++) {
22
+ consola_1.default.info(`Server: ${lines[i]}`);
23
+ }
24
+ });
25
+ }
26
+ exports.handleServerCommandOutput = handleServerCommandOutput;
27
27
  //# sourceMappingURL=utils.js.map
@@ -1,5 +1,5 @@
1
- export declare enum ServerCommand {
2
- START = "start",
3
- RESET = "reset"
4
- }
1
+ export declare enum ServerCommand {
2
+ START = "start",
3
+ RESET = "reset"
4
+ }
5
5
  //# sourceMappingURL=constants.d.ts.map
@@ -1,15 +1,15 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2022.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.ServerCommand = void 0;
10
- var ServerCommand;
11
- (function (ServerCommand) {
12
- ServerCommand["START"] = "start";
13
- ServerCommand["RESET"] = "reset";
14
- })(ServerCommand = exports.ServerCommand || (exports.ServerCommand = {}));
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.ServerCommand = void 0;
10
+ var ServerCommand;
11
+ (function (ServerCommand) {
12
+ ServerCommand["START"] = "start";
13
+ ServerCommand["RESET"] = "reset";
14
+ })(ServerCommand = exports.ServerCommand || (exports.ServerCommand = {}));
15
15
  //# sourceMappingURL=constants.js.map
@@ -1,3 +1,3 @@
1
- export * from './commands';
2
- export * from './constants';
1
+ export * from './commands';
2
+ export * from './constants';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,25 +1,25 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2022.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("./commands"), exports);
24
- __exportStar(require("./constants"), exports);
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
+ if (k2 === undefined) k2 = k;
10
+ var desc = Object.getOwnPropertyDescriptor(m, k);
11
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
+ desc = { enumerable: true, get: function() { return m[k]; } };
13
+ }
14
+ Object.defineProperty(o, k2, desc);
15
+ }) : (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ o[k2] = m[k];
18
+ }));
19
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
+ };
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ __exportStar(require("./commands"), exports);
24
+ __exportStar(require("./constants"), exports);
25
25
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- export type CommandExecutionContext<ENV extends Record<string, any> = Record<string, any>, ARGS extends Record<string, any> = Record<string, any>> = {
2
- env?: ENV;
3
- args?: ARGS;
4
- };
1
+ export type CommandExecutionContext<ENV extends Record<string, any> = Record<string, any>, ARGS extends Record<string, any> = Record<string, any>> = {
2
+ env?: ENV;
3
+ args?: ARGS;
4
+ };
5
5
  //# sourceMappingURL=type.d.ts.map
@@ -1,9 +1,9 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2022.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2022.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
9
  //# sourceMappingURL=type.js.map
@@ -1,3 +1,3 @@
1
- export * from './module';
2
- export * from './start';
1
+ export * from './module';
2
+ export * from './start';
3
3
  //# sourceMappingURL=index.d.ts.map