authup 0.45.10 → 1.0.0-beta.1
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/cleanup.d.ts +3 -0
- package/dist/commands/cleanup.d.ts.map +1 -0
- package/dist/commands/index.d.ts +1 -2
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/info.d.ts.map +1 -1
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/constants.d.ts +2 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/index.cjs +412 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +410 -0
- package/dist/index.mjs.map +1 -0
- package/dist/services/check.d.ts +3 -0
- package/dist/services/check.d.ts.map +1 -0
- package/dist/services/client-web/config.d.ts +4 -0
- package/dist/services/client-web/config.d.ts.map +1 -0
- package/dist/services/client-web/execute.d.ts +8 -0
- package/dist/services/client-web/execute.d.ts.map +1 -0
- package/dist/services/client-web/index.d.ts +3 -0
- package/dist/services/client-web/index.d.ts.map +1 -0
- package/dist/services/constants.d.ts +9 -0
- package/dist/services/constants.d.ts.map +1 -0
- package/dist/services/execute.d.ts +9 -0
- package/dist/services/execute.d.ts.map +1 -0
- package/dist/services/index.d.ts +5 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/server-core/config.d.ts +4 -0
- package/dist/services/server-core/config.d.ts.map +1 -0
- package/dist/services/server-core/execute.d.ts +3 -0
- package/dist/services/server-core/execute.d.ts.map +1 -0
- package/dist/services/server-core/index.d.ts +3 -0
- package/dist/services/server-core/index.d.ts.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/modules-path.d.ts +1 -1
- package/dist/utils/modules-path.d.ts.map +1 -1
- package/dist/utils/shell.d.ts +12 -0
- package/dist/utils/shell.d.ts.map +1 -0
- package/package.json +27 -14
- package/dist/commands/api.d.ts +0 -3
- package/dist/commands/api.d.ts.map +0 -1
- package/dist/commands/api.js +0 -54
- package/dist/commands/api.js.map +0 -1
- package/dist/commands/index.js +0 -27
- package/dist/commands/index.js.map +0 -1
- package/dist/commands/info.js +0 -32
- package/dist/commands/info.js.map +0 -1
- package/dist/commands/start.js +0 -56
- package/dist/commands/start.js.map +0 -1
- package/dist/commands/ui.d.ts +0 -3
- package/dist/commands/ui.d.ts.map +0 -1
- package/dist/commands/ui.js +0 -53
- package/dist/commands/ui.js.map +0 -1
- package/dist/config/index.d.ts +0 -3
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -25
- package/dist/config/index.js.map +0 -1
- package/dist/config/module.d.ts +0 -3
- package/dist/config/module.d.ts.map +0 -1
- package/dist/config/module.js +0 -34
- package/dist/config/module.js.map +0 -1
- package/dist/config/type.d.ts +0 -7
- package/dist/config/type.d.ts.map +0 -1
- package/dist/config/type.js +0 -9
- package/dist/config/type.js.map +0 -1
- package/dist/index.js +0 -22
- package/dist/index.js.map +0 -1
- package/dist/packages/api/commands/index.d.ts +0 -6
- package/dist/packages/api/commands/index.d.ts.map +0 -1
- package/dist/packages/api/commands/index.js +0 -28
- package/dist/packages/api/commands/index.js.map +0 -1
- package/dist/packages/api/commands/module.d.ts +0 -6
- package/dist/packages/api/commands/module.d.ts.map +0 -1
- package/dist/packages/api/commands/module.js +0 -50
- package/dist/packages/api/commands/module.js.map +0 -1
- package/dist/packages/api/commands/reset.d.ts +0 -5
- package/dist/packages/api/commands/reset.d.ts.map +0 -1
- package/dist/packages/api/commands/reset.js +0 -25
- package/dist/packages/api/commands/reset.js.map +0 -1
- package/dist/packages/api/commands/start.d.ts +0 -3
- package/dist/packages/api/commands/start.d.ts.map +0 -1
- package/dist/packages/api/commands/start.js +0 -25
- package/dist/packages/api/commands/start.js.map +0 -1
- package/dist/packages/api/commands/type.d.ts +0 -6
- package/dist/packages/api/commands/type.d.ts.map +0 -1
- package/dist/packages/api/commands/type.js +0 -9
- package/dist/packages/api/commands/type.js.map +0 -1
- package/dist/packages/api/commands/utils.d.ts +0 -4
- package/dist/packages/api/commands/utils.d.ts.map +0 -1
- package/dist/packages/api/commands/utils.js +0 -27
- package/dist/packages/api/commands/utils.js.map +0 -1
- package/dist/packages/api/constants.d.ts +0 -5
- package/dist/packages/api/constants.d.ts.map +0 -1
- package/dist/packages/api/constants.js +0 -15
- package/dist/packages/api/constants.js.map +0 -1
- package/dist/packages/api/env.d.ts +0 -3
- package/dist/packages/api/env.d.ts.map +0 -1
- package/dist/packages/api/env.js +0 -23
- package/dist/packages/api/env.js.map +0 -1
- package/dist/packages/api/index.d.ts +0 -4
- package/dist/packages/api/index.d.ts.map +0 -1
- package/dist/packages/api/index.js +0 -26
- package/dist/packages/api/index.js.map +0 -1
- package/dist/packages/constants.d.ts +0 -5
- package/dist/packages/constants.d.ts.map +0 -1
- package/dist/packages/constants.js +0 -15
- package/dist/packages/constants.js.map +0 -1
- package/dist/packages/index.d.ts +0 -5
- package/dist/packages/index.d.ts.map +0 -1
- package/dist/packages/index.js +0 -27
- package/dist/packages/index.js.map +0 -1
- package/dist/packages/type.d.ts +0 -6
- package/dist/packages/type.d.ts.map +0 -1
- package/dist/packages/type.js +0 -9
- package/dist/packages/type.js.map +0 -1
- package/dist/packages/ui/commands/index.d.ts +0 -4
- package/dist/packages/ui/commands/index.d.ts.map +0 -1
- package/dist/packages/ui/commands/index.js +0 -26
- package/dist/packages/ui/commands/index.js.map +0 -1
- package/dist/packages/ui/commands/module.d.ts +0 -6
- package/dist/packages/ui/commands/module.d.ts.map +0 -1
- package/dist/packages/ui/commands/module.js +0 -56
- package/dist/packages/ui/commands/module.js.map +0 -1
- package/dist/packages/ui/commands/start.d.ts +0 -5
- package/dist/packages/ui/commands/start.d.ts.map +0 -1
- package/dist/packages/ui/commands/start.js +0 -34
- package/dist/packages/ui/commands/start.js.map +0 -1
- package/dist/packages/ui/commands/type.d.ts +0 -8
- package/dist/packages/ui/commands/type.d.ts.map +0 -1
- package/dist/packages/ui/commands/type.js +0 -9
- package/dist/packages/ui/commands/type.js.map +0 -1
- package/dist/packages/ui/config/env.d.ts +0 -3
- package/dist/packages/ui/config/env.d.ts.map +0 -1
- package/dist/packages/ui/config/env.js +0 -51
- package/dist/packages/ui/config/env.js.map +0 -1
- package/dist/packages/ui/config/index.d.ts +0 -4
- package/dist/packages/ui/config/index.d.ts.map +0 -1
- package/dist/packages/ui/config/index.js +0 -26
- package/dist/packages/ui/config/index.js.map +0 -1
- package/dist/packages/ui/config/module.d.ts +0 -3
- package/dist/packages/ui/config/module.d.ts.map +0 -1
- package/dist/packages/ui/config/module.js +0 -35
- package/dist/packages/ui/config/module.js.map +0 -1
- package/dist/packages/ui/config/type.d.ts +0 -10
- package/dist/packages/ui/config/type.d.ts.map +0 -1
- package/dist/packages/ui/config/type.js +0 -9
- package/dist/packages/ui/config/type.js.map +0 -1
- package/dist/packages/ui/constants.d.ts +0 -4
- package/dist/packages/ui/constants.d.ts.map +0 -1
- package/dist/packages/ui/constants.js +0 -14
- package/dist/packages/ui/constants.js.map +0 -1
- package/dist/packages/ui/index.d.ts +0 -4
- package/dist/packages/ui/index.d.ts.map +0 -1
- package/dist/packages/ui/index.js +0 -26
- package/dist/packages/ui/index.js.map +0 -1
- package/dist/utils/index.js +0 -27
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/line-breaks.js +0 -14
- package/dist/utils/line-breaks.js.map +0 -1
- package/dist/utils/modules-path.js +0 -18
- package/dist/utils/modules-path.js.map +0 -1
- package/dist/utils/process-output.js +0 -42
- package/dist/utils/process-output.js.map +0 -1
- package/dist/utils/stringify-object-args.js +0 -19
- package/dist/utils/stringify-object-args.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../src/packages/ui/config/module.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAA6B,MAAM,QAAQ,CAAC;AAElE,wBAAgB,cAAc,IAAK,QAAQ,CAiB1C"}
|
|
@@ -1,35 +0,0 @@
|
|
|
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.createUIConfig = void 0;
|
|
13
|
-
const core_1 = require("@authup/core");
|
|
14
|
-
const continu_1 = require("continu");
|
|
15
|
-
const zod_1 = __importDefault(require("zod"));
|
|
16
|
-
function createUIConfig() {
|
|
17
|
-
return new continu_1.Continu({
|
|
18
|
-
defaults: {
|
|
19
|
-
port: 3000,
|
|
20
|
-
host: '0.0.0.0',
|
|
21
|
-
apiUrl: 'http://127.0.0.1:3001/',
|
|
22
|
-
},
|
|
23
|
-
getters: {
|
|
24
|
-
publicUrl: (context) => `http://${(0, core_1.makeURLPublicAccessible)(context.get('host'))}:${context.get('port')}/`,
|
|
25
|
-
},
|
|
26
|
-
validators: {
|
|
27
|
-
port: (value) => zod_1.default.number().nonnegative().safeParse(value),
|
|
28
|
-
host: (value) => zod_1.default.string().safeParse(value),
|
|
29
|
-
apiUrl: (value) => zod_1.default.string().url().safeParse(value),
|
|
30
|
-
publicUrl: (value) => zod_1.default.string().url().safeParse(value),
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
exports.createUIConfig = createUIConfig;
|
|
35
|
-
//# sourceMappingURL=module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../../src/packages/ui/config/module.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;AAEH,uCAAuD;AACvD,qCAAkC;AAClC,8CAAsB;AAGtB,SAAgB,cAAc;IAC1B,OAAO,IAAI,iBAAO,CAA4B;QAC1C,QAAQ,EAAE;YACN,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,SAAS;YACf,MAAM,EAAE,wBAAwB;SACnC;QACD,OAAO,EAAE;YACL,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,IAAA,8BAAuB,EAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG;SAC3G;QACD,UAAU,EAAE;YACR,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,aAAG,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC;YAC5D,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,aAAG,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC;YAC9C,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,aAAG,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC;YACtD,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,aAAG,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC;SAC5D;KACJ,CAAC,CAAC;AACP,CAAC;AAjBD,wCAiBC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Continu } from 'continu';
|
|
2
|
-
export type UIOptions = {
|
|
3
|
-
port: number;
|
|
4
|
-
host: string;
|
|
5
|
-
apiUrl?: string;
|
|
6
|
-
publicUrl?: string;
|
|
7
|
-
};
|
|
8
|
-
export type UIOptionsInput = Partial<UIOptions>;
|
|
9
|
-
export type UIConfig = Continu<UIOptions, UIOptionsInput>;
|
|
10
|
-
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/packages/ui/config/type.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,MAAM,SAAS,GAAG;IACpB,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,SAAS,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAEhD,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../src/packages/ui/config/type.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/packages/ui/constants.ts"],"names":[],"mappings":"AAOA,oBAAY,SAAS;IACjB,KAAK,UAAU;CAClB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
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 = UICommand = {}));
|
|
14
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/packages/ui/constants.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,IAAY,SAEX;AAFD,WAAY,SAAS;IACjB,4BAAe,CAAA;AACnB,CAAC,EAFW,SAAS,yBAAT,SAAS,QAEpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/ui/index.ts"],"names":[],"mappings":"AAOA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/packages/ui/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,2CAAyB;AACzB,6CAA2B;AAC3B,8CAA4B"}
|
package/dist/utils/index.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
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("./modules-path"), exports);
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,mDAAiC;AACjC,0DAAwC;AACxC,iDAA+B"}
|
|
@@ -1,14 +0,0 @@
|
|
|
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.removeLineBreaks = void 0;
|
|
10
|
-
function removeLineBreaks(input) {
|
|
11
|
-
return input.replace(/(\r\n|\n|\r)/gm, '');
|
|
12
|
-
}
|
|
13
|
-
exports.removeLineBreaks = removeLineBreaks;
|
|
14
|
-
//# sourceMappingURL=line-breaks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"line-breaks.js","sourceRoot":"","sources":["../../src/utils/line-breaks.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,SAAgB,gBAAgB,CAAC,KAAa;IAC1C,OAAO,KAAK,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;AAC/C,CAAC;AAFD,4CAEC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
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.getClosestNodeModulesPath = void 0;
|
|
13
|
-
const node_path_1 = __importDefault(require("node:path"));
|
|
14
|
-
function getClosestNodeModulesPath() {
|
|
15
|
-
return node_path_1.default.resolve(__dirname, '..', '..', 'node_modules');
|
|
16
|
-
}
|
|
17
|
-
exports.getClosestNodeModulesPath = getClosestNodeModulesPath;
|
|
18
|
-
//# sourceMappingURL=modules-path.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modules-path.js","sourceRoot":"","sources":["../../src/utils/modules-path.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;AAEH,0DAA6B;AAE7B,SAAgB,yBAAyB;IACrC,OAAO,mBAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;AAC/D,CAAC;AAFD,8DAEC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
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.parseProcessOutputData = void 0;
|
|
10
|
-
const smob_1 = require("smob");
|
|
11
|
-
const line_breaks_1 = require("./line-breaks");
|
|
12
|
-
function parseProcessOutputData(input) {
|
|
13
|
-
if (typeof input !== 'string') {
|
|
14
|
-
return [];
|
|
15
|
-
}
|
|
16
|
-
const lines = input
|
|
17
|
-
.split(/\r?\n/)
|
|
18
|
-
.filter((element) => element);
|
|
19
|
-
const items = [];
|
|
20
|
-
for (let i = 0; i < lines.length; i++) {
|
|
21
|
-
const line = (0, line_breaks_1.removeLineBreaks)(lines[i]).trim();
|
|
22
|
-
if (line.length === 0) {
|
|
23
|
-
continue;
|
|
24
|
-
}
|
|
25
|
-
try {
|
|
26
|
-
const parsed = JSON.parse(line);
|
|
27
|
-
if ((0, smob_1.isObject)(parsed) &&
|
|
28
|
-
(0, smob_1.hasOwnProperty)(parsed, 'message') &&
|
|
29
|
-
typeof parsed.message === 'string') {
|
|
30
|
-
items.push(parsed.message);
|
|
31
|
-
continue;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
catch (e) {
|
|
35
|
-
// no json :/
|
|
36
|
-
}
|
|
37
|
-
items.push(line);
|
|
38
|
-
}
|
|
39
|
-
return items;
|
|
40
|
-
}
|
|
41
|
-
exports.parseProcessOutputData = parseProcessOutputData;
|
|
42
|
-
//# sourceMappingURL=process-output.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"process-output.js","sourceRoot":"","sources":["../../src/utils/process-output.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,+BAAgD;AAChD,+CAAiD;AAEjD,SAAgB,sBAAsB,CAAC,KAAc;IACjD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC5B,OAAO,EAAE,CAAC;IACd,CAAC;IAED,MAAM,KAAK,GAAG,KAAK;SACd,KAAK,CAAC,OAAO,CAAC;SACd,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;IAElC,MAAM,KAAK,GAAc,EAAE,CAAC;IAE5B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACpC,MAAM,IAAI,GAAG,IAAA,8BAAgB,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QAC/C,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACpB,SAAS;QACb,CAAC;QAED,IAAI,CAAC;YACD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAEhC,IACI,IAAA,eAAQ,EAAC,MAAM,CAAC;gBAChB,IAAA,qBAAc,EAAC,MAAM,EAAE,SAAS,CAAC;gBACjC,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ,EACpC,CAAC;gBACC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;gBAC3B,SAAS;YACb,CAAC;QACL,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,aAAa;QACjB,CAAC;QAED,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC;IAED,OAAO,KAAK,CAAC;AACjB,CAAC;AApCD,wDAoCC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
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.stringifyObjectArgs = void 0;
|
|
10
|
-
function stringifyObjectArgs(ob) {
|
|
11
|
-
const parts = [];
|
|
12
|
-
const keys = Object.keys(ob);
|
|
13
|
-
for (let i = 0; i < keys.length; i++) {
|
|
14
|
-
parts.push(`--${keys[i]} ${ob[keys[i]]}`);
|
|
15
|
-
}
|
|
16
|
-
return parts.join(' ');
|
|
17
|
-
}
|
|
18
|
-
exports.stringifyObjectArgs = stringifyObjectArgs;
|
|
19
|
-
//# sourceMappingURL=stringify-object-args.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stringify-object-args.js","sourceRoot":"","sources":["../../src/utils/stringify-object-args.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,SAAgB,mBAAmB,CAAC,EAAuB;IACvD,MAAM,KAAK,GAAc,EAAE,CAAC;IAE5B,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACnC,KAAK,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B,CAAC;AATD,kDASC"}
|