authup 0.45.10 → 1.0.0-beta.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 (165) hide show
  1. package/dist/commands/cleanup.d.ts +3 -0
  2. package/dist/commands/cleanup.d.ts.map +1 -0
  3. package/dist/commands/index.d.ts +1 -2
  4. package/dist/commands/index.d.ts.map +1 -1
  5. package/dist/commands/info.d.ts.map +1 -1
  6. package/dist/commands/start.d.ts.map +1 -1
  7. package/dist/constants.d.ts +2 -0
  8. package/dist/constants.d.ts.map +1 -0
  9. package/dist/index.cjs +412 -0
  10. package/dist/index.cjs.map +1 -0
  11. package/dist/index.mjs +410 -0
  12. package/dist/index.mjs.map +1 -0
  13. package/dist/services/check.d.ts +3 -0
  14. package/dist/services/check.d.ts.map +1 -0
  15. package/dist/services/client-web/config.d.ts +4 -0
  16. package/dist/services/client-web/config.d.ts.map +1 -0
  17. package/dist/services/client-web/execute.d.ts +8 -0
  18. package/dist/services/client-web/execute.d.ts.map +1 -0
  19. package/dist/services/client-web/index.d.ts +3 -0
  20. package/dist/services/client-web/index.d.ts.map +1 -0
  21. package/dist/services/constants.d.ts +9 -0
  22. package/dist/services/constants.d.ts.map +1 -0
  23. package/dist/services/execute.d.ts +9 -0
  24. package/dist/services/execute.d.ts.map +1 -0
  25. package/dist/services/index.d.ts +5 -0
  26. package/dist/services/index.d.ts.map +1 -0
  27. package/dist/services/server-core/config.d.ts +4 -0
  28. package/dist/services/server-core/config.d.ts.map +1 -0
  29. package/dist/services/server-core/execute.d.ts +3 -0
  30. package/dist/services/server-core/execute.d.ts.map +1 -0
  31. package/dist/services/server-core/index.d.ts +3 -0
  32. package/dist/services/server-core/index.d.ts.map +1 -0
  33. package/dist/utils/index.d.ts +1 -0
  34. package/dist/utils/index.d.ts.map +1 -1
  35. package/dist/utils/modules-path.d.ts +1 -1
  36. package/dist/utils/modules-path.d.ts.map +1 -1
  37. package/dist/utils/shell.d.ts +12 -0
  38. package/dist/utils/shell.d.ts.map +1 -0
  39. package/package.json +27 -14
  40. package/dist/commands/api.d.ts +0 -3
  41. package/dist/commands/api.d.ts.map +0 -1
  42. package/dist/commands/api.js +0 -54
  43. package/dist/commands/api.js.map +0 -1
  44. package/dist/commands/index.js +0 -27
  45. package/dist/commands/index.js.map +0 -1
  46. package/dist/commands/info.js +0 -32
  47. package/dist/commands/info.js.map +0 -1
  48. package/dist/commands/start.js +0 -56
  49. package/dist/commands/start.js.map +0 -1
  50. package/dist/commands/ui.d.ts +0 -3
  51. package/dist/commands/ui.d.ts.map +0 -1
  52. package/dist/commands/ui.js +0 -53
  53. package/dist/commands/ui.js.map +0 -1
  54. package/dist/config/index.d.ts +0 -3
  55. package/dist/config/index.d.ts.map +0 -1
  56. package/dist/config/index.js +0 -25
  57. package/dist/config/index.js.map +0 -1
  58. package/dist/config/module.d.ts +0 -3
  59. package/dist/config/module.d.ts.map +0 -1
  60. package/dist/config/module.js +0 -34
  61. package/dist/config/module.js.map +0 -1
  62. package/dist/config/type.d.ts +0 -7
  63. package/dist/config/type.d.ts.map +0 -1
  64. package/dist/config/type.js +0 -9
  65. package/dist/config/type.js.map +0 -1
  66. package/dist/index.js +0 -22
  67. package/dist/index.js.map +0 -1
  68. package/dist/packages/api/commands/index.d.ts +0 -6
  69. package/dist/packages/api/commands/index.d.ts.map +0 -1
  70. package/dist/packages/api/commands/index.js +0 -28
  71. package/dist/packages/api/commands/index.js.map +0 -1
  72. package/dist/packages/api/commands/module.d.ts +0 -6
  73. package/dist/packages/api/commands/module.d.ts.map +0 -1
  74. package/dist/packages/api/commands/module.js +0 -50
  75. package/dist/packages/api/commands/module.js.map +0 -1
  76. package/dist/packages/api/commands/reset.d.ts +0 -5
  77. package/dist/packages/api/commands/reset.d.ts.map +0 -1
  78. package/dist/packages/api/commands/reset.js +0 -25
  79. package/dist/packages/api/commands/reset.js.map +0 -1
  80. package/dist/packages/api/commands/start.d.ts +0 -3
  81. package/dist/packages/api/commands/start.d.ts.map +0 -1
  82. package/dist/packages/api/commands/start.js +0 -25
  83. package/dist/packages/api/commands/start.js.map +0 -1
  84. package/dist/packages/api/commands/type.d.ts +0 -6
  85. package/dist/packages/api/commands/type.d.ts.map +0 -1
  86. package/dist/packages/api/commands/type.js +0 -9
  87. package/dist/packages/api/commands/type.js.map +0 -1
  88. package/dist/packages/api/commands/utils.d.ts +0 -4
  89. package/dist/packages/api/commands/utils.d.ts.map +0 -1
  90. package/dist/packages/api/commands/utils.js +0 -27
  91. package/dist/packages/api/commands/utils.js.map +0 -1
  92. package/dist/packages/api/constants.d.ts +0 -5
  93. package/dist/packages/api/constants.d.ts.map +0 -1
  94. package/dist/packages/api/constants.js +0 -15
  95. package/dist/packages/api/constants.js.map +0 -1
  96. package/dist/packages/api/env.d.ts +0 -3
  97. package/dist/packages/api/env.d.ts.map +0 -1
  98. package/dist/packages/api/env.js +0 -23
  99. package/dist/packages/api/env.js.map +0 -1
  100. package/dist/packages/api/index.d.ts +0 -4
  101. package/dist/packages/api/index.d.ts.map +0 -1
  102. package/dist/packages/api/index.js +0 -26
  103. package/dist/packages/api/index.js.map +0 -1
  104. package/dist/packages/constants.d.ts +0 -5
  105. package/dist/packages/constants.d.ts.map +0 -1
  106. package/dist/packages/constants.js +0 -15
  107. package/dist/packages/constants.js.map +0 -1
  108. package/dist/packages/index.d.ts +0 -5
  109. package/dist/packages/index.d.ts.map +0 -1
  110. package/dist/packages/index.js +0 -27
  111. package/dist/packages/index.js.map +0 -1
  112. package/dist/packages/type.d.ts +0 -6
  113. package/dist/packages/type.d.ts.map +0 -1
  114. package/dist/packages/type.js +0 -9
  115. package/dist/packages/type.js.map +0 -1
  116. package/dist/packages/ui/commands/index.d.ts +0 -4
  117. package/dist/packages/ui/commands/index.d.ts.map +0 -1
  118. package/dist/packages/ui/commands/index.js +0 -26
  119. package/dist/packages/ui/commands/index.js.map +0 -1
  120. package/dist/packages/ui/commands/module.d.ts +0 -6
  121. package/dist/packages/ui/commands/module.d.ts.map +0 -1
  122. package/dist/packages/ui/commands/module.js +0 -56
  123. package/dist/packages/ui/commands/module.js.map +0 -1
  124. package/dist/packages/ui/commands/start.d.ts +0 -5
  125. package/dist/packages/ui/commands/start.d.ts.map +0 -1
  126. package/dist/packages/ui/commands/start.js +0 -34
  127. package/dist/packages/ui/commands/start.js.map +0 -1
  128. package/dist/packages/ui/commands/type.d.ts +0 -8
  129. package/dist/packages/ui/commands/type.d.ts.map +0 -1
  130. package/dist/packages/ui/commands/type.js +0 -9
  131. package/dist/packages/ui/commands/type.js.map +0 -1
  132. package/dist/packages/ui/config/env.d.ts +0 -3
  133. package/dist/packages/ui/config/env.d.ts.map +0 -1
  134. package/dist/packages/ui/config/env.js +0 -51
  135. package/dist/packages/ui/config/env.js.map +0 -1
  136. package/dist/packages/ui/config/index.d.ts +0 -4
  137. package/dist/packages/ui/config/index.d.ts.map +0 -1
  138. package/dist/packages/ui/config/index.js +0 -26
  139. package/dist/packages/ui/config/index.js.map +0 -1
  140. package/dist/packages/ui/config/module.d.ts +0 -3
  141. package/dist/packages/ui/config/module.d.ts.map +0 -1
  142. package/dist/packages/ui/config/module.js +0 -35
  143. package/dist/packages/ui/config/module.js.map +0 -1
  144. package/dist/packages/ui/config/type.d.ts +0 -10
  145. package/dist/packages/ui/config/type.d.ts.map +0 -1
  146. package/dist/packages/ui/config/type.js +0 -9
  147. package/dist/packages/ui/config/type.js.map +0 -1
  148. package/dist/packages/ui/constants.d.ts +0 -4
  149. package/dist/packages/ui/constants.d.ts.map +0 -1
  150. package/dist/packages/ui/constants.js +0 -14
  151. package/dist/packages/ui/constants.js.map +0 -1
  152. package/dist/packages/ui/index.d.ts +0 -4
  153. package/dist/packages/ui/index.d.ts.map +0 -1
  154. package/dist/packages/ui/index.js +0 -26
  155. package/dist/packages/ui/index.js.map +0 -1
  156. package/dist/utils/index.js +0 -27
  157. package/dist/utils/index.js.map +0 -1
  158. package/dist/utils/line-breaks.js +0 -14
  159. package/dist/utils/line-breaks.js.map +0 -1
  160. package/dist/utils/modules-path.js +0 -18
  161. package/dist/utils/modules-path.js.map +0 -1
  162. package/dist/utils/process-output.js +0 -42
  163. package/dist/utils/process-output.js.map +0 -1
  164. package/dist/utils/stringify-object-args.js +0 -19
  165. package/dist/utils/stringify-object-args.js.map +0 -1
@@ -1,3 +0,0 @@
1
- import type { ApiStartCommandContext } from './type';
2
- export declare function startServer(ctx: ApiStartCommandContext): Promise<void>;
3
- //# sourceMappingURL=start.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../../../src/packages/api/commands/start.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAC;AAGrD,wBAAsB,WAAW,CAAC,GAAG,EAAE,sBAAsB,iBAQ5D"}
@@ -1,25 +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.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
- consola_1.default.info(`Server: Port ${ctx.env.PORT}`);
20
- const childProcess = await (0, module_1.executeServerCommand)(constants_1.ServerCommand.START, ctx);
21
- consola_1.default.success('Server: Started');
22
- (0, utils_1.handleServerCommandOutput)(childProcess);
23
- }
24
- exports.startServer = startServer;
25
- //# sourceMappingURL=start.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"start.js","sourceRoot":"","sources":["../../../../src/packages/api/commands/start.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;AAEH,sDAA8B;AAC9B,4CAA6C;AAC7C,qCAAgD;AAEhD,mCAAoD;AAE7C,KAAK,UAAU,WAAW,CAAC,GAA2B;IACzD,iBAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IACpC,iBAAO,CAAC,IAAI,CAAC,gBAAgB,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IAE7C,MAAM,YAAY,GAAG,MAAM,IAAA,6BAAoB,EAAC,yBAAa,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC1E,iBAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAEnC,IAAA,iCAAyB,EAAC,YAAY,CAAC,CAAC;AAC5C,CAAC;AARD,kCAQC"}
@@ -1,6 +0,0 @@
1
- import type { CommandExecutionContext } from '../../type';
2
- export type ApiStartCommandContext = CommandExecutionContext<{
3
- PORT: number;
4
- WRITABLE_DIRECTORY_PATH: string;
5
- }>;
6
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/packages/api/commands/type.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1D,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,CAAC;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB,EAAE,MAAM,CAAA;CAClC,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023.
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/api/commands/type.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -1,4 +0,0 @@
1
- /// <reference types="node" />
2
- import type { ChildProcess } from 'node:child_process';
3
- export declare function handleServerCommandOutput(childProcess: ChildProcess): void;
4
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/packages/api/commands/utils.ts"],"names":[],"mappings":";AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIvD,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,YAAY,QAWnE"}
@@ -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 __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
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/packages/api/commands/utils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;AAGH,sDAA8B;AAC9B,0CAAwD;AAExD,SAAgB,yBAAyB,CAAC,YAA0B;IAChE,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACpC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAChD,OAAO;QACX,CAAC;QAED,MAAM,KAAK,GAAG,IAAA,8BAAsB,EAAC,IAAI,CAAC,CAAC;QAC3C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACpC,iBAAO,CAAC,IAAI,CAAC,WAAW,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACxC,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC;AAXD,8DAWC"}
@@ -1,5 +0,0 @@
1
- export declare enum ServerCommand {
2
- START = "start",
3
- RESET = "reset"
4
- }
5
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/packages/api/constants.ts"],"names":[],"mappings":"AAOA,oBAAY,aAAa;IACrB,KAAK,UAAU;IACf,KAAK,UAAU;CAClB"}
@@ -1,15 +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.ServerCommand = void 0;
10
- var ServerCommand;
11
- (function (ServerCommand) {
12
- ServerCommand["START"] = "start";
13
- ServerCommand["RESET"] = "reset";
14
- })(ServerCommand || (exports.ServerCommand = ServerCommand = {}));
15
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/packages/api/constants.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,gCAAe,CAAA;IACf,gCAAe,CAAA;AACnB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB"}
@@ -1,3 +0,0 @@
1
- import type { Config } from '@authup/server-api';
2
- export declare function extendServerConfigWithEnv(config: Config): void;
3
- //# sourceMappingURL=env.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../src/packages/api/env.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAGjD,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,MAAM,QAYvD"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023.
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.extendServerConfigWithEnv = void 0;
10
- const server_core_1 = require("@authup/server-core");
11
- function extendServerConfigWithEnv(config) {
12
- if ((0, server_core_1.hasProcessEnv)('PORT')) {
13
- config.set('port', (0, server_core_1.readIntFromProcessEnv)('PORT'));
14
- }
15
- if ((0, server_core_1.hasProcessEnv)('API_PORT')) {
16
- config.set('port', (0, server_core_1.readIntFromProcessEnv)('API_PORT'));
17
- }
18
- if ((0, server_core_1.hasProcessEnv)('WRITABLE_DIRECTORY_PATH')) {
19
- config.set('writableDirectoryPath', (0, server_core_1.readFromProcessEnv)('WRITABLE_DIRECTORY_PATH'));
20
- }
21
- }
22
- exports.extendServerConfigWithEnv = extendServerConfigWithEnv;
23
- //# sourceMappingURL=env.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../../../src/packages/api/env.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAGH,qDAA+F;AAE/F,SAAgB,yBAAyB,CAAC,MAAc;IACpD,IAAI,IAAA,2BAAa,EAAC,MAAM,CAAC,EAAE,CAAC;QACxB,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAA,mCAAqB,EAAC,MAAM,CAAC,CAAC,CAAC;IACtD,CAAC;IAED,IAAI,IAAA,2BAAa,EAAC,UAAU,CAAC,EAAE,CAAC;QAC5B,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAA,mCAAqB,EAAC,UAAU,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED,IAAI,IAAA,2BAAa,EAAC,yBAAyB,CAAC,EAAE,CAAC;QAC3C,MAAM,CAAC,GAAG,CAAC,uBAAuB,EAAE,IAAA,gCAAkB,EAAC,yBAAyB,CAAC,CAAC,CAAC;IACvF,CAAC;AACL,CAAC;AAZD,8DAYC"}
@@ -1,4 +0,0 @@
1
- export * from './commands';
2
- export * from './constants';
3
- export * from './env';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/api/index.ts"],"names":[],"mappings":"AAOA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,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("./commands"), exports);
24
- __exportStar(require("./constants"), exports);
25
- __exportStar(require("./env"), exports);
26
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/packages/api/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,6CAA2B;AAC3B,8CAA4B;AAC5B,wCAAsB"}
@@ -1,5 +0,0 @@
1
- export declare enum ServiceName {
2
- API = "api",
3
- UI = "ui"
4
- }
5
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/packages/constants.ts"],"names":[],"mappings":"AAOA,oBAAY,WAAW;IACnB,GAAG,QAAQ;IACX,EAAE,OAAO;CACZ"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023.
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.ServiceName = void 0;
10
- var ServiceName;
11
- (function (ServiceName) {
12
- ServiceName["API"] = "api";
13
- ServiceName["UI"] = "ui";
14
- })(ServiceName || (exports.ServiceName = ServiceName = {}));
15
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/packages/constants.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,0BAAW,CAAA;IACX,wBAAS,CAAA;AACb,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB"}
@@ -1,5 +0,0 @@
1
- export * from './constants';
2
- export * from './ui';
3
- export * from './api';
4
- export * from './type';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/packages/index.ts"],"names":[],"mappings":"AAOA,cAAc,aAAa,CAAC;AAC5B,cAAc,MAAM,CAAC;AACrB,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC"}
@@ -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("./constants"), exports);
24
- __exportStar(require("./ui"), exports);
25
- __exportStar(require("./api"), exports);
26
- __exportStar(require("./type"), exports);
27
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/packages/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,8CAA4B;AAC5B,uCAAqB;AACrB,wCAAsB;AACtB,yCAAuB"}
@@ -1,6 +0,0 @@
1
- export type CommandExecutionContext<ENV extends Record<string, any> = Record<string, any>, ARGS extends Record<string, any> = Record<string, any>> = {
2
- env?: ENV;
3
- envFromProcess?: boolean;
4
- args?: ARGS;
5
- };
6
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/packages/type.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,uBAAuB,CAC/B,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACrD,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IACtD;IACA,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,IAAI,CAAA;CACd,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/type.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -1,4 +0,0 @@
1
- export * from './module';
2
- export * from './start';
3
- export * from './type';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/packages/ui/commands/index.ts"],"names":[],"mappings":"AAOA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,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("./module"), exports);
24
- __exportStar(require("./start"), exports);
25
- __exportStar(require("./type"), exports);
26
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/packages/ui/commands/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,2CAAyB;AACzB,0CAAwB;AACxB,yCAAuB"}
@@ -1,6 +0,0 @@
1
- /// <reference types="node" />
2
- import type { ChildProcess } from 'node: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
- //# sourceMappingURL=module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../src/packages/ui/commands/module.ts"],"names":[],"mappings":";AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAOvD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,wBAAgB,gBAAgB,CAC5B,OAAO,EAAE,GAAG,SAAS,EAAE,EACvB,GAAG,GAAE,uBAA4B,GACjC,OAAO,CAAC,YAAY,CAAC,CA0CxB"}
@@ -1,56 +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.executeUICommand = void 0;
13
- const node_child_process_1 = require("node:child_process");
14
- const node_path_1 = __importDefault(require("node:path"));
15
- const node_process_1 = __importDefault(require("node:process"));
16
- const consola_1 = __importDefault(require("consola"));
17
- const resolve_package_path_1 = __importDefault(require("resolve-package-path"));
18
- const utils_1 = require("../../../utils");
19
- function executeUICommand(command, ctx = {}) {
20
- ctx.env = ctx.env || {};
21
- ctx.args = ctx.args || {};
22
- return new Promise((resolve, reject) => {
23
- let base = 'npx @authup/client-ui';
24
- const modulePath = (0, resolve_package_path_1.default)('@authup/client-ui', node_process_1.default.cwd()) ||
25
- (0, resolve_package_path_1.default)('@authup/client-ui', (0, utils_1.getClosestNodeModulesPath)());
26
- if (typeof modulePath === 'string') {
27
- const directory = node_path_1.default.dirname(modulePath);
28
- const outputPath = node_path_1.default.join(directory, '.output', 'server', 'index.mjs');
29
- base = `node ${outputPath}`;
30
- }
31
- const env = {
32
- PATH: node_process_1.default.env.PATH,
33
- ...(ctx.envFromProcess ? node_process_1.default.env : {}),
34
- };
35
- const keys = Object.keys(ctx.env);
36
- for (let i = 0; i < keys.length; i++) {
37
- env[keys[i]] = ctx.env[keys[i]];
38
- if (!keys[i].match(/^(?:NUXT|NITRO)_.*$/)) {
39
- env[`NUXT_PUBLIC_${keys[i]}`] = ctx.env[keys[i]];
40
- }
41
- }
42
- const childProcess = (0, node_child_process_1.exec)(`${base} ${(0, utils_1.stringifyObjectArgs)(ctx.args)}`, {
43
- env,
44
- });
45
- childProcess.on('spawn', () => {
46
- resolve(childProcess);
47
- });
48
- childProcess.stderr.setEncoding('utf-8');
49
- childProcess.stderr.on('data', (data) => {
50
- consola_1.default.warn(data);
51
- reject(data);
52
- });
53
- });
54
- }
55
- exports.executeUICommand = executeUICommand;
56
- //# sourceMappingURL=module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.js","sourceRoot":"","sources":["../../../../src/packages/ui/commands/module.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;AAGH,2DAA0C;AAC1C,0DAA6B;AAC7B,gEAAmC;AACnC,sDAA8B;AAC9B,gFAAqD;AACrD,0CAAgF;AAIhF,SAAgB,gBAAgB,CAC5B,OAAuB,EACvB,MAA+B,EAAE;IAEjC,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC;IACxB,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;IAE1B,OAAO,IAAI,OAAO,CAAe,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACjD,IAAI,IAAI,GAAG,uBAAuB,CAAC;QACnC,MAAM,UAAU,GAAG,IAAA,8BAAiB,EAAC,mBAAmB,EAAE,sBAAO,CAAC,GAAG,EAAE,CAAC;YACpE,IAAA,8BAAiB,EAAC,mBAAmB,EAAE,IAAA,iCAAyB,GAAE,CAAC,CAAC;QAExE,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;YACjC,MAAM,SAAS,GAAG,mBAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;YAC3C,MAAM,UAAU,GAAG,mBAAI,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;YAC1E,IAAI,GAAG,QAAQ,UAAU,EAAE,CAAC;QAChC,CAAC;QAED,MAAM,GAAG,GAAG;YACR,IAAI,EAAE,sBAAO,CAAC,GAAG,CAAC,IAAI;YACtB,GAAG,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,sBAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;SACtB,CAAC;QAEzB,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAClC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACnC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;YAEhC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,EAAE,CAAC;gBACxC,GAAG,CAAC,eAAe,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;YACrD,CAAC;QACL,CAAC;QAED,MAAM,YAAY,GAAG,IAAA,yBAAI,EAAC,GAAG,IAAI,IAAI,IAAA,2BAAmB,EAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE;YAClE,GAAG;SACN,CAAC,CAAC;QACH,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;YAC1B,OAAO,CAAC,YAAY,CAAC,CAAC;QAC1B,CAAC,CAAC,CAAC;QAEH,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QACzC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;YACpC,iBAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACnB,MAAM,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC;AA7CD,4CA6CC"}
@@ -1,5 +0,0 @@
1
- /// <reference types="node" />
2
- import type { ChildProcess } from 'node:child_process';
3
- import type { UIStartCommandContext } from './type';
4
- export declare function startUI(ctx: UIStartCommandContext): Promise<ChildProcess>;
5
- //# sourceMappingURL=start.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../../../src/packages/ui/commands/start.ts"],"names":[],"mappings":";AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAKvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,QAAQ,CAAC;AAEpD,wBAAsB,OAAO,CAAC,GAAG,EAAE,qBAAqB,GAAI,OAAO,CAAC,YAAY,CAAC,CAkBhF"}
@@ -1,34 +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.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
- consola_1.default.info('UI: Starting...');
19
- consola_1.default.info(`UI: Port ${ctx.env.PORT}`);
20
- const childProcess = await (0, module_1.executeUICommand)(constants_1.UICommand.START, ctx);
21
- consola_1.default.success('UI: Started');
22
- childProcess.stdout.on('data', (data) => {
23
- if (typeof data !== 'string' || data.length === 0) {
24
- return;
25
- }
26
- const lines = (0, utils_1.parseProcessOutputData)(data);
27
- for (let i = 0; i < lines.length; i++) {
28
- consola_1.default.info(`UI: ${lines[i]}`);
29
- }
30
- });
31
- return childProcess;
32
- }
33
- exports.startUI = startUI;
34
- //# sourceMappingURL=start.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"start.js","sourceRoot":"","sources":["../../../../src/packages/ui/commands/start.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;AAGH,sDAA8B;AAC9B,0CAAwD;AACxD,4CAAyC;AACzC,qCAA4C;AAGrC,KAAK,UAAU,OAAO,CAAC,GAA0B;IACpD,iBAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAChC,iBAAO,CAAC,IAAI,CAAC,YAAY,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IAEzC,MAAM,YAAY,GAAG,MAAM,IAAA,yBAAgB,EAAC,qBAAS,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAClE,iBAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAC/B,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACpC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAChD,OAAO;QACX,CAAC;QAED,MAAM,KAAK,GAAG,IAAA,8BAAsB,EAAC,IAAI,CAAC,CAAC;QAC3C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACpC,iBAAO,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACpC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,YAAY,CAAC;AACxB,CAAC;AAlBD,0BAkBC"}
@@ -1,8 +0,0 @@
1
- import type { CommandExecutionContext } from '../../type';
2
- export type UIStartCommandContext = CommandExecutionContext<{
3
- PORT: number;
4
- HOST: string;
5
- API_URL: string;
6
- PUBLIC_URL: string;
7
- }>;
8
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/packages/ui/commands/type.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1D,MAAM,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;IAExD,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;IAEhB,UAAU,EAAE,MAAM,CAAA;CACrB,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023.
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/commands/type.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -1,3 +0,0 @@
1
- import type { UIConfig } from './type';
2
- export declare function extendUIConfigWithEnv(config: UIConfig): void;
3
- //# sourceMappingURL=env.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../../src/packages/ui/config/env.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEvC,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,QAAQ,QA2CrD"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023-2023.
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.extendUIConfigWithEnv = void 0;
10
- const server_core_1 = require("@authup/server-core");
11
- function extendUIConfigWithEnv(config) {
12
- let keys = [
13
- 'UI_PORT',
14
- 'NITRO_UI_PORT',
15
- 'NUXT_UI_PORT',
16
- 'NUXT_PUBLIC_UI_PORT',
17
- 'PORT',
18
- 'NITRO_PORT',
19
- 'NUXT_PORT',
20
- 'NUXT_PUBLIC_PORT',
21
- ];
22
- if ((0, server_core_1.hasProcessEnv)(keys)) {
23
- config.setRaw('port', (0, server_core_1.readIntFromProcessEnv)(keys));
24
- }
25
- keys = [
26
- 'HOST',
27
- 'NITRO_HOST',
28
- 'NUXT_HOST',
29
- ];
30
- if ((0, server_core_1.hasProcessEnv)(keys)) {
31
- config.setRaw('host', (0, server_core_1.readFromProcessEnv)(keys));
32
- }
33
- keys = [
34
- 'API_URL',
35
- 'NUXT_API_URL',
36
- 'NUXT_PUBLIC_API_URL',
37
- ];
38
- if ((0, server_core_1.hasProcessEnv)(keys)) {
39
- config.setRaw('apiUrl', (0, server_core_1.readFromProcessEnv)(keys));
40
- }
41
- keys = [
42
- 'PUBLIC_URL',
43
- 'NUXT_PUBLIC_URL',
44
- 'NUXT_PUBLIC_PUBLIC_URL',
45
- ];
46
- if ((0, server_core_1.hasProcessEnv)([])) {
47
- config.setRaw('publicUrl', (0, server_core_1.readFromProcessEnv)(keys));
48
- }
49
- }
50
- exports.extendUIConfigWithEnv = extendUIConfigWithEnv;
51
- //# sourceMappingURL=env.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../../../../src/packages/ui/config/env.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,qDAA+F;AAG/F,SAAgB,qBAAqB,CAAC,MAAgB;IAClD,IAAI,IAAI,GAAG;QACP,SAAS;QACT,eAAe;QACf,cAAc;QACd,qBAAqB;QACrB,MAAM;QACN,YAAY;QACZ,WAAW;QACX,kBAAkB;KACrB,CAAC;IACF,IAAI,IAAA,2BAAa,EAAC,IAAI,CAAC,EAAE,CAAC;QACtB,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,IAAA,mCAAqB,EAAC,IAAI,CAAC,CAAC,CAAC;IACvD,CAAC;IAED,IAAI,GAAG;QACH,MAAM;QACN,YAAY;QACZ,WAAW;KACd,CAAC;IAEF,IAAI,IAAA,2BAAa,EAAC,IAAI,CAAC,EAAE,CAAC;QACtB,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,IAAA,gCAAkB,EAAC,IAAI,CAAC,CAAC,CAAC;IACpD,CAAC;IAED,IAAI,GAAG;QACH,SAAS;QACT,cAAc;QACd,qBAAqB;KACxB,CAAC;IAEF,IAAI,IAAA,2BAAa,EAAC,IAAI,CAAC,EAAE,CAAC;QACtB,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAA,gCAAkB,EAAC,IAAI,CAAC,CAAC,CAAC;IACtD,CAAC;IAED,IAAI,GAAG;QACH,YAAY;QACZ,iBAAiB;QACjB,wBAAwB;KAC3B,CAAC;IACF,IAAI,IAAA,2BAAa,EAAC,EAAE,CAAC,EAAE,CAAC;QACpB,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,IAAA,gCAAkB,EAAC,IAAI,CAAC,CAAC,CAAC;IACzD,CAAC;AACL,CAAC;AA3CD,sDA2CC"}
@@ -1,4 +0,0 @@
1
- export * from './env';
2
- export * from './module';
3
- export * from './type';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/packages/ui/config/index.ts"],"names":[],"mappings":"AAOA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,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("./env"), exports);
24
- __exportStar(require("./module"), exports);
25
- __exportStar(require("./type"), exports);
26
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/packages/ui/config/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,wCAAsB;AACtB,2CAAyB;AACzB,yCAAuB"}