@dittowords/cli 3.10.1 → 4.0.0-alpha.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 (131) hide show
  1. package/bin/add-project.js +101 -33
  2. package/bin/add-project.js.map +1 -1
  3. package/bin/api.js +49 -15
  4. package/bin/api.js.map +1 -1
  5. package/bin/component-folders.js +56 -7
  6. package/bin/component-folders.js.map +1 -1
  7. package/bin/config.js +204 -170
  8. package/bin/config.js.map +1 -1
  9. package/bin/config.test.js +92 -0
  10. package/bin/config.test.js.map +1 -0
  11. package/bin/consts.js +64 -18
  12. package/bin/consts.js.map +1 -1
  13. package/bin/ditto.js +250 -200
  14. package/bin/ditto.js.map +1 -1
  15. package/bin/generate-suggestions.js +155 -78
  16. package/bin/generate-suggestions.js.map +1 -1
  17. package/bin/generate-suggestions.test.js +189 -0
  18. package/bin/generate-suggestions.test.js.map +1 -0
  19. package/bin/http/fetchComponentFolders.js +60 -8
  20. package/bin/http/fetchComponentFolders.js.map +1 -1
  21. package/bin/http/fetchComponents.js +65 -18
  22. package/bin/http/fetchComponents.js.map +1 -1
  23. package/bin/http/fetchVariants.js +74 -14
  24. package/bin/http/fetchVariants.js.map +1 -1
  25. package/bin/http/importComponents.js +100 -49
  26. package/bin/http/importComponents.js.map +1 -1
  27. package/bin/importComponents.js +61 -10
  28. package/bin/importComponents.js.map +1 -1
  29. package/bin/init/init.js +120 -44
  30. package/bin/init/init.js.map +1 -1
  31. package/bin/init/project.js +160 -83
  32. package/bin/init/project.js.map +1 -1
  33. package/bin/init/project.test.js +49 -0
  34. package/bin/init/project.test.js.map +1 -0
  35. package/bin/init/token.js +134 -74
  36. package/bin/init/token.js.map +1 -1
  37. package/bin/init/token.test.js +69 -0
  38. package/bin/init/token.test.js.map +1 -0
  39. package/bin/output.js +72 -30
  40. package/bin/output.js.map +1 -1
  41. package/bin/pull.js +362 -221
  42. package/bin/pull.js.map +1 -1
  43. package/bin/pull.test.js +410 -0
  44. package/bin/pull.test.js.map +1 -0
  45. package/bin/remove-project.js +91 -27
  46. package/bin/remove-project.js.map +1 -1
  47. package/bin/replace.js +140 -100
  48. package/bin/replace.js.map +1 -1
  49. package/bin/replace.test.js +155 -0
  50. package/bin/replace.test.js.map +1 -0
  51. package/bin/sentry-test.js.map +1 -0
  52. package/bin/types.js +20 -2
  53. package/bin/types.js.map +1 -1
  54. package/bin/utils/cleanFileName.js +32 -8
  55. package/bin/utils/cleanFileName.js.map +1 -1
  56. package/bin/utils/createSentryContext.js +43 -0
  57. package/bin/utils/createSentryContext.js.map +1 -0
  58. package/bin/utils/generateJsDriver.js +90 -51
  59. package/bin/utils/generateJsDriver.js.map +1 -1
  60. package/bin/utils/getSelectedProjects.js +58 -52
  61. package/bin/utils/getSelectedProjects.js.map +1 -1
  62. package/bin/utils/processMetaOption.js +36 -11
  63. package/bin/utils/processMetaOption.js.map +1 -1
  64. package/bin/utils/processMetaOption.test.js +45 -0
  65. package/bin/utils/processMetaOption.test.js.map +1 -0
  66. package/bin/utils/projectsToText.js +52 -19
  67. package/bin/utils/projectsToText.js.map +1 -1
  68. package/bin/utils/promptForProject.js +89 -36
  69. package/bin/utils/promptForProject.js.map +1 -1
  70. package/bin/utils/quit.js +36 -7
  71. package/bin/utils/quit.js.map +1 -1
  72. package/bin/utils/sourcesToText.js +51 -19
  73. package/bin/utils/sourcesToText.js.map +1 -1
  74. package/etsc.config.js +13 -0
  75. package/lib/config.ts +8 -2
  76. package/lib/ditto.ts +6 -0
  77. package/lib/init/project.ts +2 -2
  78. package/lib/pull.ts +22 -2
  79. package/lib/utils/createSentryContext.ts +20 -0
  80. package/lib/utils/quit.ts +2 -3
  81. package/package.json +10 -6
  82. package/tsconfig.json +4 -1
  83. package/bin/lib/add-project.js +0 -36
  84. package/bin/lib/add-project.js.map +0 -1
  85. package/bin/lib/api.js +0 -20
  86. package/bin/lib/api.js.map +0 -1
  87. package/bin/lib/config.js +0 -202
  88. package/bin/lib/config.js.map +0 -1
  89. package/bin/lib/consts.js +0 -21
  90. package/bin/lib/consts.js.map +0 -1
  91. package/bin/lib/ditto.js +0 -121
  92. package/bin/lib/ditto.js.map +0 -1
  93. package/bin/lib/generate-suggestions.js +0 -71
  94. package/bin/lib/generate-suggestions.js.map +0 -1
  95. package/bin/lib/http/fetchComponents.js +0 -13
  96. package/bin/lib/http/fetchComponents.js.map +0 -1
  97. package/bin/lib/http/fetchVariants.js +0 -26
  98. package/bin/lib/http/fetchVariants.js.map +0 -1
  99. package/bin/lib/init/init.js +0 -50
  100. package/bin/lib/init/init.js.map +0 -1
  101. package/bin/lib/init/project.js +0 -108
  102. package/bin/lib/init/project.js.map +0 -1
  103. package/bin/lib/init/token.js +0 -91
  104. package/bin/lib/init/token.js.map +0 -1
  105. package/bin/lib/output.js +0 -34
  106. package/bin/lib/output.js.map +0 -1
  107. package/bin/lib/pull.js +0 -264
  108. package/bin/lib/pull.js.map +0 -1
  109. package/bin/lib/remove-project.js +0 -35
  110. package/bin/lib/remove-project.js.map +0 -1
  111. package/bin/lib/replace.js +0 -107
  112. package/bin/lib/replace.js.map +0 -1
  113. package/bin/lib/types.js +0 -3
  114. package/bin/lib/types.js.map +0 -1
  115. package/bin/lib/utils/cleanFileName.js +0 -11
  116. package/bin/lib/utils/cleanFileName.js.map +0 -1
  117. package/bin/lib/utils/generateJsDriver.js +0 -56
  118. package/bin/lib/utils/generateJsDriver.js.map +0 -1
  119. package/bin/lib/utils/getSelectedProjects.js +0 -61
  120. package/bin/lib/utils/getSelectedProjects.js.map +0 -1
  121. package/bin/lib/utils/processMetaOption.js +0 -15
  122. package/bin/lib/utils/processMetaOption.js.map +0 -1
  123. package/bin/lib/utils/projectsToText.js +0 -25
  124. package/bin/lib/utils/projectsToText.js.map +0 -1
  125. package/bin/lib/utils/promptForProject.js +0 -43
  126. package/bin/lib/utils/promptForProject.js.map +0 -1
  127. package/bin/lib/utils/quit.js +0 -10
  128. package/bin/lib/utils/quit.js.map +0 -1
  129. package/bin/lib/utils/sourcesToText.js +0 -25
  130. package/bin/lib/utils/sourcesToText.js.map +0 -1
  131. package/bin/package.json +0 -76
@@ -1,36 +1,104 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="341fbe24-4d10-55cb-81ec-4b58e4cf2348")}catch(e){}}();
3
+
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __export = (target, all) => {
11
+ for (var name in all)
12
+ __defProp(target, name, { get: all[name], enumerable: true });
4
13
  };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const project_1 = require("./init/project");
7
- const projectsToText_1 = __importDefault(require("./utils/projectsToText"));
8
- const getSelectedProjects_1 = require("./utils/getSelectedProjects");
9
- const output_1 = __importDefault(require("./output"));
10
- const quit_1 = require("./utils/quit");
11
- const addProject = async () => {
12
- const projects = (0, getSelectedProjects_1.getSelectedProjects)();
13
- const usingComponents = (0, getSelectedProjects_1.getIsUsingComponents)();
14
- try {
15
- if (usingComponents) {
16
- if (projects.length) {
17
- console.log(`\nYou're currently syncing text from the ${output_1.default.info("Component Library")} and from the following projects: ${(0, projectsToText_1.default)(projects)}`);
18
- }
19
- else {
20
- console.log(`\nYou're currently only syncing text from the ${output_1.default.info("Component Library")}`);
21
- }
22
- }
23
- else if (projects.length) {
24
- console.log(`\nYou're currently set up to sync text from the following projects: ${(0, projectsToText_1.default)(projects)}`);
25
- }
26
- await (0, project_1.collectAndSaveSource)({
27
- components: false,
28
- });
29
- }
30
- catch (error) {
31
- console.log(`\nSorry, there was an error adding a project to your workspace: `, error);
32
- (0, quit_1.quit)("Project selection was not updated.");
33
- }
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from))
17
+ if (!__hasOwnProp.call(to, key) && key !== except)
18
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
+ }
20
+ return to;
34
21
  };
35
- exports.default = addProject;
36
- //# sourceMappingURL=add-project.js.map
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
+ mod
29
+ ));
30
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
+ var __async = (__this, __arguments, generator) => {
32
+ return new Promise((resolve, reject) => {
33
+ var fulfilled = (value) => {
34
+ try {
35
+ step(generator.next(value));
36
+ } catch (e) {
37
+ reject(e);
38
+ }
39
+ };
40
+ var rejected = (value) => {
41
+ try {
42
+ step(generator.throw(value));
43
+ } catch (e) {
44
+ reject(e);
45
+ }
46
+ };
47
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
48
+ step((generator = generator.apply(__this, __arguments)).next());
49
+ });
50
+ };
51
+ var add_project_exports = {};
52
+ __export(add_project_exports, {
53
+ default: () => add_project_default
54
+ });
55
+ module.exports = __toCommonJS(add_project_exports);
56
+ var import_project = require("./init/project");
57
+ var import_projectsToText = __toESM(require("./utils/projectsToText"));
58
+ var import_getSelectedProjects = require("./utils/getSelectedProjects");
59
+ var import_output = __toESM(require("./output"));
60
+ var import_quit = require("./utils/quit");
61
+ const addProject = () => __async(void 0, null, function* () {
62
+ const projects = (0, import_getSelectedProjects.getSelectedProjects)();
63
+ const usingComponents = (0, import_getSelectedProjects.getIsUsingComponents)();
64
+ try {
65
+ if (usingComponents) {
66
+ if (projects.length) {
67
+ console.log(
68
+ `
69
+ You're currently syncing text from the ${import_output.default.info(
70
+ "Component Library"
71
+ )} and from the following projects: ${(0, import_projectsToText.default)(projects)}`
72
+ );
73
+ } else {
74
+ console.log(
75
+ `
76
+ You're currently only syncing text from the ${import_output.default.info(
77
+ "Component Library"
78
+ )}`
79
+ );
80
+ }
81
+ } else if (projects.length) {
82
+ console.log(
83
+ `
84
+ You're currently set up to sync text from the following projects: ${(0, import_projectsToText.default)(
85
+ projects
86
+ )}`
87
+ );
88
+ }
89
+ yield (0, import_project.collectAndSaveSource)({
90
+ components: false
91
+ });
92
+ } catch (error) {
93
+ console.log(
94
+ `
95
+ Sorry, there was an error adding a project to your workspace: `,
96
+ error
97
+ );
98
+ (0, import_quit.quit)("Project selection was not updated.");
99
+ }
100
+ });
101
+ var add_project_default = addProject;
102
+ //# sourceMappingURL=add-project.js.map
103
+
104
+ //# debugId=341fbe24-4d10-55cb-81ec-4b58e4cf2348
@@ -1 +1 @@
1
- {"version":3,"file":"add-project.js","sourceRoot":"","sources":["../lib/add-project.ts"],"names":[],"mappings":";;;;;AAAA,4CAAsD;AACtD,4EAAoD;AACpD,qEAGqC;AACrC,sDAA8B;AAC9B,uCAAoC;AAEpC,MAAM,UAAU,GAAG,KAAK,IAAI,EAAE;IAC5B,MAAM,QAAQ,GAAG,IAAA,yCAAmB,GAAE,CAAC;IACvC,MAAM,eAAe,GAAG,IAAA,0CAAoB,GAAE,CAAC;IAE/C,IAAI;QACF,IAAI,eAAe,EAAE;YACnB,IAAI,QAAQ,CAAC,MAAM,EAAE;gBACnB,OAAO,CAAC,GAAG,CACT,4CAA4C,gBAAM,CAAC,IAAI,CACrD,mBAAmB,CACpB,qCAAqC,IAAA,wBAAc,EAAC,QAAQ,CAAC,EAAE,CACjE,CAAC;aACH;iBAAM;gBACL,OAAO,CAAC,GAAG,CACT,iDAAiD,gBAAM,CAAC,IAAI,CAC1D,mBAAmB,CACpB,EAAE,CACJ,CAAC;aACH;SACF;aAAM,IAAI,QAAQ,CAAC,MAAM,EAAE;YAC1B,OAAO,CAAC,GAAG,CACT,uEAAuE,IAAA,wBAAc,EACnF,QAAQ,CACT,EAAE,CACJ,CAAC;SACH;QACD,MAAM,IAAA,8BAAoB,EAAC;YACzB,UAAU,EAAE,KAAK;SAClB,CAAC,CAAC;KACJ;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,GAAG,CACT,kEAAkE,EAClE,KAAK,CACN,CAAC;QACF,IAAA,WAAI,EAAC,oCAAoC,CAAC,CAAC;KAC5C;AACH,CAAC,CAAC;AAEF,kBAAe,UAAU,CAAC"}
1
+ {"version":3,"sources":["../lib/add-project.ts"],"sourcesContent":["import { collectAndSaveSource } from \"./init/project\";\nimport projectsToText from \"./utils/projectsToText\";\nimport {\n getSelectedProjects,\n getIsUsingComponents,\n} from \"./utils/getSelectedProjects\";\nimport output from \"./output\";\nimport { quit } from \"./utils/quit\";\n\nconst addProject = async () => {\n const projects = getSelectedProjects();\n const usingComponents = getIsUsingComponents();\n\n try {\n if (usingComponents) {\n if (projects.length) {\n console.log(\n `\\nYou're currently syncing text from the ${output.info(\n \"Component Library\"\n )} and from the following projects: ${projectsToText(projects)}`\n );\n } else {\n console.log(\n `\\nYou're currently only syncing text from the ${output.info(\n \"Component Library\"\n )}`\n );\n }\n } else if (projects.length) {\n console.log(\n `\\nYou're currently set up to sync text from the following projects: ${projectsToText(\n projects\n )}`\n );\n }\n await collectAndSaveSource({\n components: false,\n });\n } catch (error) {\n console.log(\n `\\nSorry, there was an error adding a project to your workspace: `,\n error\n );\n quit(\"Project selection was not updated.\");\n }\n};\n\nexport default addProject;\n"],"names":["output","projectsToText"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAqC;AACrC,4BAA2B;AAC3B,iCAGO;AACP,oBAAmB;AACnB,kBAAqB;AAErB,MAAM,aAAa,MAAY;AAC7B,QAAM,eAAW,gDAAoB;AACrC,QAAM,sBAAkB,iDAAqB;AAE7C,MAAI;AACF,QAAI,iBAAiB;AACnB,UAAI,SAAS,QAAQ;AACnB,gBAAQ;AAAA,UACN;AAAA,yCAA4C,cAAAA,QAAO;AAAA,YACjD;AAAA,UACF,CAAC,yCAAqC,sBAAAC,SAAe,QAAQ,CAAC;AAAA,QAChE;AAAA,MACF,OAAO;AACL,gBAAQ;AAAA,UACN;AAAA,8CAAiD,cAAAD,QAAO;AAAA,YACtD;AAAA,UACF,CAAC;AAAA,QACH;AAAA,MACF;AAAA,IACF,WAAW,SAAS,QAAQ;AAC1B,cAAQ;AAAA,QACN;AAAA,wEAAuE,sBAAAC;AAAA,UACrE;AAAA,QACF,CAAC;AAAA,MACH;AAAA,IACF;AACA,cAAM,qCAAqB;AAAA,MACzB,YAAY;AAAA,IACd,CAAC;AAAA,EACH,SAAS,OAAO;AACd,YAAQ;AAAA,MACN;AAAA;AAAA,MACA;AAAA,IACF;AACA,0BAAK,oCAAoC;AAAA,EAC3C;AACF;AAEA,IAAO,sBAAQ","debug_id":"341fbe24-4d10-55cb-81ec-4b58e4cf2348"}
package/bin/api.js CHANGED
@@ -1,19 +1,53 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="60c0c8b2-1610-5e22-a814-c819798eb831")}catch(e){}}();
3
+
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __export = (target, all) => {
11
+ for (var name in all)
12
+ __defProp(target, name, { get: all[name], enumerable: true });
4
13
  };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.createApiClient = void 0;
7
- const axios_1 = __importDefault(require("axios"));
8
- const config_1 = __importDefault(require("./config"));
9
- const consts_1 = __importDefault(require("./consts"));
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from))
17
+ if (!__hasOwnProp.call(to, key) && key !== except)
18
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
+ mod
29
+ ));
30
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
+ var api_exports = {};
32
+ __export(api_exports, {
33
+ createApiClient: () => createApiClient
34
+ });
35
+ module.exports = __toCommonJS(api_exports);
36
+ var import_axios = __toESM(require("axios"));
37
+ var import_config = __toESM(require("./config"));
38
+ var import_consts = __toESM(require("./consts"));
10
39
  function createApiClient(token) {
11
- return axios_1.default.create({
12
- baseURL: consts_1.default.API_HOST,
13
- headers: {
14
- Authorization: `token ${token || config_1.default.getToken(consts_1.default.CONFIG_FILE, consts_1.default.API_HOST)}`,
15
- },
16
- });
40
+ return import_axios.default.create({
41
+ baseURL: import_consts.default.API_HOST,
42
+ headers: {
43
+ Authorization: `token ${token || import_config.default.getToken(import_consts.default.CONFIG_FILE, import_consts.default.API_HOST)}`
44
+ }
45
+ });
17
46
  }
18
- exports.createApiClient = createApiClient;
19
- //# sourceMappingURL=api.js.map
47
+ // Annotate the CommonJS export names for ESM import in node:
48
+ 0 && (module.exports = {
49
+ createApiClient
50
+ });
51
+ //# sourceMappingURL=api.js.map
52
+
53
+ //# debugId=60c0c8b2-1610-5e22-a814-c819798eb831
package/bin/api.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../lib/api.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,sDAA8B;AAC9B,sDAA8B;AAE9B,SAAgB,eAAe,CAAC,KAAc;IAC5C,OAAO,eAAK,CAAC,MAAM,CAAC;QAClB,OAAO,EAAE,gBAAM,CAAC,QAAQ;QACxB,OAAO,EAAE;YACP,aAAa,EAAE,SACb,KAAK,IAAI,gBAAM,CAAC,QAAQ,CAAC,gBAAM,CAAC,WAAW,EAAE,gBAAM,CAAC,QAAQ,CAC9D,EAAE;SACH;KACF,CAAC,CAAC;AACL,CAAC;AATD,0CASC"}
1
+ {"version":3,"sources":["../lib/api.ts"],"sourcesContent":["import axios from \"axios\";\n\nimport config from \"./config\";\nimport consts from \"./consts\";\n\nexport function createApiClient(token?: string) {\n return axios.create({\n baseURL: consts.API_HOST,\n headers: {\n Authorization: `token ${\n token || config.getToken(consts.CONFIG_FILE, consts.API_HOST)\n }`,\n },\n });\n}\n"],"names":["axios","consts","config"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAElB,oBAAmB;AACnB,oBAAmB;AAEZ,SAAS,gBAAgB,OAAgB;AAC9C,SAAO,aAAAA,QAAM,OAAO;AAAA,IAClB,SAAS,cAAAC,QAAO;AAAA,IAChB,SAAS;AAAA,MACP,eAAe,SACb,SAAS,cAAAC,QAAO,SAAS,cAAAD,QAAO,aAAa,cAAAA,QAAO,QAAQ,CAC9D;AAAA,IACF;AAAA,EACF,CAAC;AACH","debug_id":"60c0c8b2-1610-5e22-a814-c819798eb831"}
@@ -1,10 +1,59 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.showComponentFolders = void 0;
4
- const fetchComponentFolders_1 = require("./http/fetchComponentFolders");
5
- async function showComponentFolders() {
6
- const folders = await (0, fetchComponentFolders_1.fetchComponentFolders)();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8df60202-713f-56b5-a6d5-8b65d7194665")}catch(e){}}();
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+ var __async = (__this, __arguments, generator) => {
22
+ return new Promise((resolve, reject) => {
23
+ var fulfilled = (value) => {
24
+ try {
25
+ step(generator.next(value));
26
+ } catch (e) {
27
+ reject(e);
28
+ }
29
+ };
30
+ var rejected = (value) => {
31
+ try {
32
+ step(generator.throw(value));
33
+ } catch (e) {
34
+ reject(e);
35
+ }
36
+ };
37
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
38
+ step((generator = generator.apply(__this, __arguments)).next());
39
+ });
40
+ };
41
+ var component_folders_exports = {};
42
+ __export(component_folders_exports, {
43
+ showComponentFolders: () => showComponentFolders
44
+ });
45
+ module.exports = __toCommonJS(component_folders_exports);
46
+ var import_fetchComponentFolders = require("./http/fetchComponentFolders");
47
+ function showComponentFolders() {
48
+ return __async(this, null, function* () {
49
+ const folders = yield (0, import_fetchComponentFolders.fetchComponentFolders)();
7
50
  console.log(JSON.stringify(folders));
51
+ });
8
52
  }
9
- exports.showComponentFolders = showComponentFolders;
10
- //# sourceMappingURL=component-folders.js.map
53
+ // Annotate the CommonJS export names for ESM import in node:
54
+ 0 && (module.exports = {
55
+ showComponentFolders
56
+ });
57
+ //# sourceMappingURL=component-folders.js.map
58
+
59
+ //# debugId=8df60202-713f-56b5-a6d5-8b65d7194665
@@ -1 +1 @@
1
- {"version":3,"file":"component-folders.js","sourceRoot":"","sources":["../lib/component-folders.ts"],"names":[],"mappings":";;;AAAA,wEAAqE;AAErE,KAAK,UAAU,oBAAoB;IACjC,MAAM,OAAO,GAAG,MAAM,IAAA,6CAAqB,GAAE,CAAC;IAE9C,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;AACvC,CAAC;AAEQ,oDAAoB"}
1
+ {"version":3,"sources":["../lib/component-folders.ts"],"sourcesContent":["import { fetchComponentFolders } from \"./http/fetchComponentFolders\";\n\nasync function showComponentFolders() {\n const folders = await fetchComponentFolders();\n\n console.log(JSON.stringify(folders));\n}\n\nexport { showComponentFolders };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mCAAsC;AAEtC,SAAe,uBAAuB;AAAA;AACpC,UAAM,UAAU,UAAM,oDAAsB;AAE5C,YAAQ,IAAI,KAAK,UAAU,OAAO,CAAC;AAAA,EACrC;AAAA","debug_id":"8df60202-713f-56b5-a6d5-8b65d7194665"}