authup 0.17.0 → 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.
Files changed (67) hide show
  1. package/dist/commands/index.d.ts +4 -4
  2. package/dist/commands/index.js +26 -26
  3. package/dist/commands/info.d.ts +2 -2
  4. package/dist/commands/info.js +31 -31
  5. package/dist/commands/server.d.ts +2 -2
  6. package/dist/commands/server.js +45 -45
  7. package/dist/commands/start.d.ts +2 -2
  8. package/dist/commands/start.js +43 -43
  9. package/dist/commands/ui.d.ts +2 -2
  10. package/dist/commands/ui.js +41 -41
  11. package/dist/config/index.d.ts +2 -2
  12. package/dist/config/index.js +24 -24
  13. package/dist/config/module.d.ts +2 -2
  14. package/dist/config/module.js +27 -27
  15. package/dist/config/read.d.ts +2 -2
  16. package/dist/config/read.js +28 -28
  17. package/dist/config/type.d.ts +10 -10
  18. package/dist/config/type.js +8 -8
  19. package/dist/index.d.ts +2 -2
  20. package/dist/index.js +21 -21
  21. package/dist/packages/index.d.ts +3 -3
  22. package/dist/packages/index.js +25 -25
  23. package/dist/packages/server/commands/index.d.ts +4 -4
  24. package/dist/packages/server/commands/index.js +26 -26
  25. package/dist/packages/server/commands/module.d.ts +5 -5
  26. package/dist/packages/server/commands/module.js +45 -45
  27. package/dist/packages/server/commands/reset.d.ts +4 -4
  28. package/dist/packages/server/commands/reset.js +24 -24
  29. package/dist/packages/server/commands/start.d.ts +2 -2
  30. package/dist/packages/server/commands/start.js +23 -23
  31. package/dist/packages/server/commands/utils.d.ts +3 -3
  32. package/dist/packages/server/commands/utils.js +26 -26
  33. package/dist/packages/server/constants.d.ts +4 -4
  34. package/dist/packages/server/constants.js +14 -14
  35. package/dist/packages/server/index.d.ts +2 -2
  36. package/dist/packages/server/index.js +24 -24
  37. package/dist/packages/type.d.ts +4 -4
  38. package/dist/packages/type.js +8 -8
  39. package/dist/packages/ui/commands/index.d.ts +2 -2
  40. package/dist/packages/ui/commands/index.js +24 -24
  41. package/dist/packages/ui/commands/module.d.ts +5 -5
  42. package/dist/packages/ui/commands/module.js +48 -48
  43. package/dist/packages/ui/commands/start.d.ts +10 -10
  44. package/dist/packages/ui/commands/start.js +46 -46
  45. package/dist/packages/ui/config/index.d.ts +2 -2
  46. package/dist/packages/ui/config/index.js +24 -24
  47. package/dist/packages/ui/config/module.d.ts +3 -3
  48. package/dist/packages/ui/config/module.js +21 -21
  49. package/dist/packages/ui/config/validate.d.ts +2 -2
  50. package/dist/packages/ui/config/validate.js +22 -22
  51. package/dist/packages/ui/constants.d.ts +3 -3
  52. package/dist/packages/ui/constants.js +13 -13
  53. package/dist/packages/ui/index.d.ts +4 -4
  54. package/dist/packages/ui/index.js +26 -26
  55. package/dist/packages/ui/type.d.ts +6 -6
  56. package/dist/packages/ui/type.js +8 -8
  57. package/dist/utils/index.d.ts +4 -4
  58. package/dist/utils/index.js +26 -26
  59. package/dist/utils/line-breaks.d.ts +1 -1
  60. package/dist/utils/line-breaks.js +13 -13
  61. package/dist/utils/path.d.ts +1 -1
  62. package/dist/utils/path.js +17 -17
  63. package/dist/utils/process-output.d.ts +1 -1
  64. package/dist/utils/process-output.js +41 -41
  65. package/dist/utils/stringify-object-args.d.ts +1 -1
  66. package/dist/utils/stringify-object-args.js +18 -18
  67. package/package.json +5 -5
@@ -1,2 +1,2 @@
1
- export declare function removeLineBreaks(input: string): string;
1
+ export declare function removeLineBreaks(input: string): string;
2
2
  //# sourceMappingURL=line-breaks.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.removeLineBreaks = void 0;
10
- function removeLineBreaks(input) {
11
- return input.replace(/(\r\n|\n|\r)/gm, '');
12
- }
13
- exports.removeLineBreaks = removeLineBreaks;
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
14
  //# sourceMappingURL=line-breaks.js.map
@@ -1,2 +1,2 @@
1
- export declare function getClosestNodeModulesPath(): string;
1
+ export declare function getClosestNodeModulesPath(): string;
2
2
  //# sourceMappingURL=path.d.ts.map
@@ -1,18 +1,18 @@
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 path_1 = __importDefault(require("path"));
14
- function getClosestNodeModulesPath() {
15
- return path_1.default.resolve(__dirname, '..', '..', 'node_modules');
16
- }
17
- exports.getClosestNodeModulesPath = getClosestNodeModulesPath;
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 path_1 = __importDefault(require("path"));
14
+ function getClosestNodeModulesPath() {
15
+ return path_1.default.resolve(__dirname, '..', '..', 'node_modules');
16
+ }
17
+ exports.getClosestNodeModulesPath = getClosestNodeModulesPath;
18
18
  //# sourceMappingURL=path.js.map
@@ -1,2 +1,2 @@
1
- export declare function parseProcessOutputData(input: unknown): string[];
1
+ export declare function parseProcessOutputData(input: unknown): string[];
2
2
  //# sourceMappingURL=process-output.d.ts.map
@@ -1,42 +1,42 @@
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;
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
42
  //# sourceMappingURL=process-output.js.map
@@ -1,2 +1,2 @@
1
- export declare function stringifyObjectArgs(ob: Record<string, any>): string;
1
+ export declare function stringifyObjectArgs(ob: Record<string, any>): string;
2
2
  //# sourceMappingURL=stringify-object-args.d.ts.map
@@ -1,19 +1,19 @@
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;
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
19
  //# sourceMappingURL=stringify-object-args.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authup",
3
- "version": "0.17.0",
3
+ "version": "0.17.2",
4
4
  "description": "This is the CLI for the authup framework.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "homepage": "https://github.com/Tada5hi/authup#readme",
32
32
  "dependencies": {
33
- "@authup/common": "^0.17.0",
34
- "@authup/server": "^0.17.0",
35
- "@authup/ui": "^0.17.0",
33
+ "@authup/common": "^0.17.2",
34
+ "@authup/server": "^0.17.2",
35
+ "@authup/ui": "^0.17.2",
36
36
  "cac": "^6.7.14",
37
37
  "chalk": "^4.1.2",
38
38
  "consola": "^2.15.3",
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "9a779ff80df774ccbd85a01517b43c0faeafc5d2"
47
+ "gitHead": "71e412b1ba435a8a72a7f431d3e4ba6bc2cf655c"
48
48
  }