authup 0.17.1 → 0.17.2
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.
- package/dist/commands/index.d.ts +4 -4
- package/dist/commands/index.js +26 -26
- package/dist/commands/info.d.ts +2 -2
- package/dist/commands/info.js +31 -31
- package/dist/commands/server.d.ts +2 -2
- package/dist/commands/server.js +45 -45
- package/dist/commands/start.d.ts +2 -2
- package/dist/commands/start.js +43 -43
- package/dist/commands/ui.d.ts +2 -2
- package/dist/commands/ui.js +41 -41
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +24 -24
- package/dist/config/module.d.ts +2 -2
- package/dist/config/module.js +27 -27
- package/dist/config/read.d.ts +2 -2
- package/dist/config/read.js +28 -28
- package/dist/config/type.d.ts +10 -10
- package/dist/config/type.js +8 -8
- package/dist/index.d.ts +2 -2
- package/dist/index.js +21 -21
- package/dist/packages/index.d.ts +3 -3
- package/dist/packages/index.js +25 -25
- package/dist/packages/server/commands/index.d.ts +4 -4
- package/dist/packages/server/commands/index.js +26 -26
- package/dist/packages/server/commands/module.d.ts +5 -5
- package/dist/packages/server/commands/module.js +45 -45
- package/dist/packages/server/commands/reset.d.ts +4 -4
- package/dist/packages/server/commands/reset.js +24 -24
- package/dist/packages/server/commands/start.d.ts +2 -2
- package/dist/packages/server/commands/start.js +23 -23
- package/dist/packages/server/commands/utils.d.ts +3 -3
- package/dist/packages/server/commands/utils.js +26 -26
- package/dist/packages/server/constants.d.ts +4 -4
- package/dist/packages/server/constants.js +14 -14
- package/dist/packages/server/index.d.ts +2 -2
- package/dist/packages/server/index.js +24 -24
- package/dist/packages/type.d.ts +4 -4
- package/dist/packages/type.js +8 -8
- package/dist/packages/ui/commands/index.d.ts +2 -2
- package/dist/packages/ui/commands/index.js +24 -24
- package/dist/packages/ui/commands/module.d.ts +5 -5
- package/dist/packages/ui/commands/module.js +48 -48
- package/dist/packages/ui/commands/start.d.ts +10 -10
- package/dist/packages/ui/commands/start.js +46 -46
- package/dist/packages/ui/config/index.d.ts +2 -2
- package/dist/packages/ui/config/index.js +24 -24
- package/dist/packages/ui/config/module.d.ts +3 -3
- package/dist/packages/ui/config/module.js +21 -21
- package/dist/packages/ui/config/validate.d.ts +2 -2
- package/dist/packages/ui/config/validate.js +22 -22
- package/dist/packages/ui/constants.d.ts +3 -3
- package/dist/packages/ui/constants.js +13 -13
- package/dist/packages/ui/index.d.ts +4 -4
- package/dist/packages/ui/index.js +26 -26
- package/dist/packages/ui/type.d.ts +6 -6
- package/dist/packages/ui/type.js +8 -8
- package/dist/utils/index.d.ts +4 -4
- package/dist/utils/index.js +26 -26
- package/dist/utils/line-breaks.d.ts +1 -1
- package/dist/utils/line-breaks.js +13 -13
- package/dist/utils/path.d.ts +1 -1
- package/dist/utils/path.js +17 -17
- package/dist/utils/process-output.d.ts +1 -1
- package/dist/utils/process-output.js +41 -41
- package/dist/utils/stringify-object-args.d.ts +1 -1
- package/dist/utils/stringify-object-args.js +18 -18
- package/package.json +5 -5
|
@@ -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("./module"), exports);
|
|
24
|
-
__exportStar(require("./start"), 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("./start"), exports);
|
|
25
25
|
//# 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 { UICommand } from '../constants';
|
|
5
|
-
export declare function executeUICommand(command: `${UICommand}`, ctx?: CommandExecutionContext): Promise<ChildProcess>;
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { ChildProcess } from 'child_process';
|
|
3
|
+
import type { CommandExecutionContext } from '../../type';
|
|
4
|
+
import type { UICommand } from '../constants';
|
|
5
|
+
export declare function executeUICommand(command: `${UICommand}`, ctx?: CommandExecutionContext): Promise<ChildProcess>;
|
|
6
6
|
//# sourceMappingURL=module.d.ts.map
|
|
@@ -1,49 +1,49 @@
|
|
|
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.executeUICommand = 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
|
-
function executeUICommand(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/ui';
|
|
25
|
-
const modulePath = (0, resolve_package_path_1.default)('@authup/ui', process_1.default.cwd()) ||
|
|
26
|
-
(0, resolve_package_path_1.default)('@authup/ui', (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, '.output', 'server', 'index.mjs');
|
|
30
|
-
base = `node ${outputPath}`;
|
|
31
|
-
}
|
|
32
|
-
const childProcess = (0, child_process_1.exec)(`${base} ${(0, utils_1.stringifyObjectArgs)(ctx.args)}`, {
|
|
33
|
-
env: {
|
|
34
|
-
...process_1.default.env,
|
|
35
|
-
...ctx.env,
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
childProcess.on('spawn', () => {
|
|
39
|
-
resolve(childProcess);
|
|
40
|
-
});
|
|
41
|
-
childProcess.stderr.setEncoding('utf-8');
|
|
42
|
-
childProcess.stderr.on('data', (data) => {
|
|
43
|
-
consola_1.default.warn(data);
|
|
44
|
-
reject(data);
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
exports.executeUICommand = executeUICommand;
|
|
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.executeUICommand = 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
|
+
function executeUICommand(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/ui';
|
|
25
|
+
const modulePath = (0, resolve_package_path_1.default)('@authup/ui', process_1.default.cwd()) ||
|
|
26
|
+
(0, resolve_package_path_1.default)('@authup/ui', (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, '.output', 'server', 'index.mjs');
|
|
30
|
+
base = `node ${outputPath}`;
|
|
31
|
+
}
|
|
32
|
+
const childProcess = (0, child_process_1.exec)(`${base} ${(0, utils_1.stringifyObjectArgs)(ctx.args)}`, {
|
|
33
|
+
env: {
|
|
34
|
+
...process_1.default.env,
|
|
35
|
+
...ctx.env,
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
childProcess.on('spawn', () => {
|
|
39
|
+
resolve(childProcess);
|
|
40
|
+
});
|
|
41
|
+
childProcess.stderr.setEncoding('utf-8');
|
|
42
|
+
childProcess.stderr.on('data', (data) => {
|
|
43
|
+
consola_1.default.warn(data);
|
|
44
|
+
reject(data);
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
exports.executeUICommand = executeUICommand;
|
|
49
49
|
//# sourceMappingURL=module.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import type { ChildProcess } from 'child_process';
|
|
3
|
-
import type { CommandExecutionContext } from '../../type';
|
|
4
|
-
type Env = {
|
|
5
|
-
port?: number;
|
|
6
|
-
host?: string;
|
|
7
|
-
apiUrl?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function startUI(ctx?: CommandExecutionContext<Env>): Promise<ChildProcess>;
|
|
10
|
-
export {};
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { ChildProcess } from 'child_process';
|
|
3
|
+
import type { CommandExecutionContext } from '../../type';
|
|
4
|
+
type Env = {
|
|
5
|
+
port?: number;
|
|
6
|
+
host?: string;
|
|
7
|
+
apiUrl?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function startUI(ctx?: CommandExecutionContext<Env>): Promise<ChildProcess>;
|
|
10
|
+
export {};
|
|
11
11
|
//# sourceMappingURL=start.d.ts.map
|
|
@@ -1,47 +1,47 @@
|
|
|
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.startUI = void 0;
|
|
13
|
-
const consola_1 = __importDefault(require("consola"));
|
|
14
|
-
const utils_1 = require("../../../utils");
|
|
15
|
-
const constants_1 = require("../constants");
|
|
16
|
-
const module_1 = require("./module");
|
|
17
|
-
async function startUI(ctx) {
|
|
18
|
-
ctx = ctx || {};
|
|
19
|
-
ctx.env = ctx.env || {};
|
|
20
|
-
const env = {};
|
|
21
|
-
if (ctx.env.port) {
|
|
22
|
-
env.PORT = ctx.env.port;
|
|
23
|
-
}
|
|
24
|
-
if (ctx.env.host) {
|
|
25
|
-
env.HOST = ctx.env.host;
|
|
26
|
-
}
|
|
27
|
-
if (ctx.env.apiUrl) {
|
|
28
|
-
env.NUXT_PUBLIC_API_URL = ctx.env.apiUrl;
|
|
29
|
-
}
|
|
30
|
-
consola_1.default.info('UI: Starting...');
|
|
31
|
-
const childProcess = await (0, module_1.executeUICommand)(constants_1.UICommand.START, {
|
|
32
|
-
env,
|
|
33
|
-
});
|
|
34
|
-
consola_1.default.success('UI: Started');
|
|
35
|
-
childProcess.stdout.on('data', (data) => {
|
|
36
|
-
if (typeof data !== 'string' || data.length === 0) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
const lines = (0, utils_1.parseProcessOutputData)(data);
|
|
40
|
-
for (let i = 0; i < lines.length; i++) {
|
|
41
|
-
consola_1.default.info(`UI: ${lines[i]}`);
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
return childProcess;
|
|
45
|
-
}
|
|
46
|
-
exports.startUI = startUI;
|
|
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.startUI = void 0;
|
|
13
|
+
const consola_1 = __importDefault(require("consola"));
|
|
14
|
+
const utils_1 = require("../../../utils");
|
|
15
|
+
const constants_1 = require("../constants");
|
|
16
|
+
const module_1 = require("./module");
|
|
17
|
+
async function startUI(ctx) {
|
|
18
|
+
ctx = ctx || {};
|
|
19
|
+
ctx.env = ctx.env || {};
|
|
20
|
+
const env = {};
|
|
21
|
+
if (ctx.env.port) {
|
|
22
|
+
env.PORT = ctx.env.port;
|
|
23
|
+
}
|
|
24
|
+
if (ctx.env.host) {
|
|
25
|
+
env.HOST = ctx.env.host;
|
|
26
|
+
}
|
|
27
|
+
if (ctx.env.apiUrl) {
|
|
28
|
+
env.NUXT_PUBLIC_API_URL = ctx.env.apiUrl;
|
|
29
|
+
}
|
|
30
|
+
consola_1.default.info('UI: Starting...');
|
|
31
|
+
const childProcess = await (0, module_1.executeUICommand)(constants_1.UICommand.START, {
|
|
32
|
+
env,
|
|
33
|
+
});
|
|
34
|
+
consola_1.default.success('UI: Started');
|
|
35
|
+
childProcess.stdout.on('data', (data) => {
|
|
36
|
+
if (typeof data !== 'string' || data.length === 0) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const lines = (0, utils_1.parseProcessOutputData)(data);
|
|
40
|
+
for (let i = 0; i < lines.length; i++) {
|
|
41
|
+
consola_1.default.info(`UI: ${lines[i]}`);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
return childProcess;
|
|
45
|
+
}
|
|
46
|
+
exports.startUI = startUI;
|
|
47
47
|
//# sourceMappingURL=start.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './module';
|
|
2
|
-
export * from './validate';
|
|
1
|
+
export * from './module';
|
|
2
|
+
export * from './validate';
|
|
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("./module"), exports);
|
|
24
|
-
__exportStar(require("./validate"), 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("./validate"), exports);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UIOptions, UIOptionsInput } from '../type';
|
|
2
|
-
export declare function applyUiConfig(input: UIOptionsInput): UIOptions;
|
|
3
|
-
export declare function extendUiConfig(input: UIOptionsInput): UIOptions;
|
|
1
|
+
import type { UIOptions, UIOptionsInput } from '../type';
|
|
2
|
+
export declare function applyUiConfig(input: UIOptionsInput): UIOptions;
|
|
3
|
+
export declare function extendUiConfig(input: UIOptionsInput): UIOptions;
|
|
4
4
|
//# sourceMappingURL=module.d.ts.map
|
|
@@ -1,22 +1,22 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.extendUiConfig = exports.applyUiConfig = void 0;
|
|
10
|
-
const validate_1 = require("./validate");
|
|
11
|
-
function applyUiConfig(input) {
|
|
12
|
-
return extendUiConfig((0, validate_1.validateUiConfig)(input));
|
|
13
|
-
}
|
|
14
|
-
exports.applyUiConfig = applyUiConfig;
|
|
15
|
-
function extendUiConfig(input) {
|
|
16
|
-
return {
|
|
17
|
-
port: input.port || 3000,
|
|
18
|
-
host: input.host || '0.0.0.0',
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
exports.extendUiConfig = extendUiConfig;
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.extendUiConfig = exports.applyUiConfig = void 0;
|
|
10
|
+
const validate_1 = require("./validate");
|
|
11
|
+
function applyUiConfig(input) {
|
|
12
|
+
return extendUiConfig((0, validate_1.validateUiConfig)(input));
|
|
13
|
+
}
|
|
14
|
+
exports.applyUiConfig = applyUiConfig;
|
|
15
|
+
function extendUiConfig(input) {
|
|
16
|
+
return {
|
|
17
|
+
port: input.port || 3000,
|
|
18
|
+
host: input.host || '0.0.0.0',
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
exports.extendUiConfig = extendUiConfig;
|
|
22
22
|
//# sourceMappingURL=module.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { UIOptionsInput } from '../type';
|
|
2
|
-
export declare function validateUiConfig(input: UIOptionsInput): UIOptionsInput;
|
|
1
|
+
import type { UIOptionsInput } from '../type';
|
|
2
|
+
export declare function validateUiConfig(input: UIOptionsInput): UIOptionsInput;
|
|
3
3
|
//# sourceMappingURL=validate.d.ts.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.validateUiConfig = void 0;
|
|
7
|
-
/*
|
|
8
|
-
* Copyright (c) 2022.
|
|
9
|
-
* Author Peter Placzek (tada5hi)
|
|
10
|
-
* For the full copyright and license information,
|
|
11
|
-
* view the LICENSE file that was distributed with this source code.
|
|
12
|
-
*/
|
|
13
|
-
const zod_1 = __importDefault(require("zod"));
|
|
14
|
-
const configValidation = zod_1.default.object({
|
|
15
|
-
port: zod_1.default.number().nonnegative(),
|
|
16
|
-
host: zod_1.default.string(),
|
|
17
|
-
apiUrl: zod_1.default.string(),
|
|
18
|
-
});
|
|
19
|
-
function validateUiConfig(input) {
|
|
20
|
-
return configValidation.partial().parse(input);
|
|
21
|
-
}
|
|
22
|
-
exports.validateUiConfig = validateUiConfig;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.validateUiConfig = void 0;
|
|
7
|
+
/*
|
|
8
|
+
* Copyright (c) 2022.
|
|
9
|
+
* Author Peter Placzek (tada5hi)
|
|
10
|
+
* For the full copyright and license information,
|
|
11
|
+
* view the LICENSE file that was distributed with this source code.
|
|
12
|
+
*/
|
|
13
|
+
const zod_1 = __importDefault(require("zod"));
|
|
14
|
+
const configValidation = zod_1.default.object({
|
|
15
|
+
port: zod_1.default.number().nonnegative(),
|
|
16
|
+
host: zod_1.default.string(),
|
|
17
|
+
apiUrl: zod_1.default.string(),
|
|
18
|
+
});
|
|
19
|
+
function validateUiConfig(input) {
|
|
20
|
+
return configValidation.partial().parse(input);
|
|
21
|
+
}
|
|
22
|
+
exports.validateUiConfig = validateUiConfig;
|
|
23
23
|
//# sourceMappingURL=validate.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum UICommand {
|
|
2
|
-
START = "start"
|
|
3
|
-
}
|
|
1
|
+
export declare enum UICommand {
|
|
2
|
+
START = "start"
|
|
3
|
+
}
|
|
4
4
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
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.UICommand = void 0;
|
|
10
|
-
var UICommand;
|
|
11
|
-
(function (UICommand) {
|
|
12
|
-
UICommand["START"] = "start";
|
|
13
|
-
})(UICommand = exports.UICommand || (exports.UICommand = {}));
|
|
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.UICommand = void 0;
|
|
10
|
+
var UICommand;
|
|
11
|
+
(function (UICommand) {
|
|
12
|
+
UICommand["START"] = "start";
|
|
13
|
+
})(UICommand = exports.UICommand || (exports.UICommand = {}));
|
|
14
14
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './config';
|
|
2
|
-
export * from './commands';
|
|
3
|
-
export * from './constants';
|
|
4
|
-
export * from './type';
|
|
1
|
+
export * from './config';
|
|
2
|
+
export * from './commands';
|
|
3
|
+
export * from './constants';
|
|
4
|
+
export * from './type';
|
|
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("./config"), exports);
|
|
24
|
-
__exportStar(require("./commands"), exports);
|
|
25
|
-
__exportStar(require("./constants"), exports);
|
|
26
|
-
__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("./config"), exports);
|
|
24
|
+
__exportStar(require("./commands"), exports);
|
|
25
|
+
__exportStar(require("./constants"), exports);
|
|
26
|
+
__exportStar(require("./type"), exports);
|
|
27
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type UIOptions = {
|
|
2
|
-
port: number;
|
|
3
|
-
host: string;
|
|
4
|
-
apiUrl?: string;
|
|
5
|
-
};
|
|
6
|
-
export type UIOptionsInput = Partial<UIOptions>;
|
|
1
|
+
export type UIOptions = {
|
|
2
|
+
port: number;
|
|
3
|
+
host: string;
|
|
4
|
+
apiUrl?: string;
|
|
5
|
+
};
|
|
6
|
+
export type UIOptionsInput = Partial<UIOptions>;
|
|
7
7
|
//# sourceMappingURL=type.d.ts.map
|
package/dist/packages/ui/type.js
CHANGED
|
@@ -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/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './line-breaks';
|
|
2
|
-
export * from './process-output';
|
|
3
|
-
export * from './stringify-object-args';
|
|
4
|
-
export * from './path';
|
|
1
|
+
export * from './line-breaks';
|
|
2
|
+
export * from './process-output';
|
|
3
|
+
export * from './stringify-object-args';
|
|
4
|
+
export * from './path';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/utils/index.js
CHANGED
|
@@ -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("./line-breaks"), exports);
|
|
24
|
-
__exportStar(require("./process-output"), exports);
|
|
25
|
-
__exportStar(require("./stringify-object-args"), exports);
|
|
26
|
-
__exportStar(require("./path"), 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("./line-breaks"), exports);
|
|
24
|
+
__exportStar(require("./process-output"), exports);
|
|
25
|
+
__exportStar(require("./stringify-object-args"), exports);
|
|
26
|
+
__exportStar(require("./path"), exports);
|
|
27
27
|
//# sourceMappingURL=index.js.map
|