@teambit/component-issues 0.0.101 → 0.0.103

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 (75) hide show
  1. package/dist/circular-dependencies.js +26 -12
  2. package/dist/circular-dependencies.js.map +1 -1
  3. package/dist/component-issue.d.ts +8 -6
  4. package/dist/component-issue.js +81 -56
  5. package/dist/component-issue.js.map +1 -1
  6. package/dist/duplicate-component-and-package.js +26 -12
  7. package/dist/duplicate-component-and-package.js.map +1 -1
  8. package/dist/external-env-without-version.js +29 -15
  9. package/dist/external-env-without-version.js.map +1 -1
  10. package/dist/import-non-main-files.js +23 -10
  11. package/dist/import-non-main-files.js.map +1 -1
  12. package/dist/index.js +81 -10
  13. package/dist/index.js.map +1 -1
  14. package/dist/issues-list.d.ts +9 -8
  15. package/dist/issues-list.js +266 -128
  16. package/dist/issues-list.js.map +1 -1
  17. package/dist/legacy-inside-harmony.js +26 -12
  18. package/dist/legacy-inside-harmony.js.map +1 -1
  19. package/dist/merge-config-has-conflict.js +26 -12
  20. package/dist/merge-config-has-conflict.js.map +1 -1
  21. package/dist/missing-components.js +25 -12
  22. package/dist/missing-components.js.map +1 -1
  23. package/dist/missing-dependencies-on-fs.js +22 -9
  24. package/dist/missing-dependencies-on-fs.js.map +1 -1
  25. package/dist/missing-dists.js +26 -12
  26. package/dist/missing-dists.js.map +1 -1
  27. package/dist/missing-links-from-nm-to-src.js +26 -12
  28. package/dist/missing-links-from-nm-to-src.js.map +1 -1
  29. package/dist/missing-manually-configured-packages.js +26 -12
  30. package/dist/missing-manually-configured-packages.js.map +1 -1
  31. package/dist/missing-packages-dependencies-on-fs.js +22 -9
  32. package/dist/missing-packages-dependencies-on-fs.js.map +1 -1
  33. package/dist/multiple-envs.js +27 -12
  34. package/dist/multiple-envs.js.map +1 -1
  35. package/dist/non-loaded-env.js +26 -12
  36. package/dist/non-loaded-env.js.map +1 -1
  37. package/dist/parse-errors.js +22 -9
  38. package/dist/parse-errors.js.map +1 -1
  39. package/dist/relative-components-authored.js +55 -36
  40. package/dist/relative-components-authored.js.map +1 -1
  41. package/dist/relative-components.js +26 -13
  42. package/dist/relative-components.js.map +1 -1
  43. package/dist/removed-dependencies.js +27 -12
  44. package/dist/removed-dependencies.js.map +1 -1
  45. package/dist/resolve-errors.js +22 -9
  46. package/dist/resolve-errors.js.map +1 -1
  47. package/dist/untracked-dependencies.js +48 -32
  48. package/dist/untracked-dependencies.js.map +1 -1
  49. package/package.json +14 -5
  50. package/tsconfig.json +10 -2
  51. package/circular-dependencies.ts +0 -11
  52. package/component-issue.ts +0 -66
  53. package/dist/tsconfig.json +0 -32
  54. package/duplicate-component-and-package.ts +0 -11
  55. package/external-env-without-version.ts +0 -19
  56. package/import-non-main-files.ts +0 -8
  57. package/index.ts +0 -4
  58. package/issues-list.ts +0 -155
  59. package/legacy-inside-harmony.ts +0 -11
  60. package/merge-config-has-conflict.ts +0 -11
  61. package/missing-components.ts +0 -11
  62. package/missing-dependencies-on-fs.ts +0 -7
  63. package/missing-dists.ts +0 -11
  64. package/missing-links-from-nm-to-src.ts +0 -11
  65. package/missing-manually-configured-packages.ts +0 -10
  66. package/missing-packages-dependencies-on-fs.ts +0 -7
  67. package/multiple-envs.ts +0 -12
  68. package/non-loaded-env.ts +0 -11
  69. package/parse-errors.ts +0 -7
  70. package/relative-components-authored.ts +0 -49
  71. package/relative-components.ts +0 -12
  72. package/removed-dependencies.ts +0 -12
  73. package/resolve-errors.ts +0 -7
  74. package/untracked-dependencies.ts +0 -41
  75. /package/dist/{preview-1698418523363.js → preview-1699067946955.js} +0 -0
@@ -1,14 +1,27 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.MissingDependenciesOnFs = void 0;
4
- const component_issue_1 = require("./component-issue");
5
- class MissingDependenciesOnFs extends component_issue_1.ComponentIssue {
6
- constructor() {
7
- super(...arguments);
8
- this.description = 'non-existing dependency files';
9
- this.solution = 'make sure all files exists on your workspace';
10
- this.data = {};
11
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
+ class MissingDependenciesOnFs extends _componentIssue().ComponentIssue {
18
+ constructor(...args) {
19
+ super(...args);
20
+ _defineProperty(this, "description", 'non-existing dependency files');
21
+ _defineProperty(this, "solution", 'make sure all files exists on your workspace');
22
+ _defineProperty(this, "data", {});
23
+ }
12
24
  }
13
25
  exports.MissingDependenciesOnFs = MissingDependenciesOnFs;
26
+
14
27
  //# sourceMappingURL=missing-dependencies-on-fs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"missing-dependencies-on-fs.js","sourceRoot":"","sources":["../missing-dependencies-on-fs.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,uBAAwB,SAAQ,gCAAc;IAA3D;;QACE,gBAAW,GAAG,+BAA+B,CAAC;QAC9C,aAAQ,GAAG,8CAA8C,CAAC;QAC1D,SAAI,GAAuB,EAAE,CAAC;IAChC,CAAC;CAAA;AAJD,0DAIC"}
1
+ {"version":3,"names":["_componentIssue","data","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","MissingDependenciesOnFs","ComponentIssue","constructor","args","exports"],"sources":["missing-dependencies-on-fs.ts"],"sourcesContent":["import { ComponentIssue, StringsPerFilePath } from './component-issue';\n\nexport class MissingDependenciesOnFs extends ComponentIssue {\n description = 'non-existing dependency files';\n solution = 'make sure all files exists on your workspace';\n data: StringsPerFilePath = {};\n}\n"],"mappings":";;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAuE,SAAAE,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GAAAJ,IAAA,CAAAK,IAAA,CAAAP,KAAA,EAAAC,IAAA,2BAAAK,GAAA,sBAAAA,GAAA,YAAAE,SAAA,4DAAAP,IAAA,gBAAAF,MAAA,GAAAU,MAAA,EAAAT,KAAA;AAEhE,MAAMU,uBAAuB,SAASC,gCAAc,CAAC;EAAAC,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAA1B,eAAA,sBAC5C,+BAA+B;IAAAA,eAAA,mBAClC,8CAA8C;IAAAA,eAAA,eAC9B,CAAC,CAAC;EAAA;AAC/B;AAAC2B,OAAA,CAAAJ,uBAAA,GAAAA,uBAAA"}
@@ -1,17 +1,31 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.MissingDists = void 0;
4
- const component_issue_1 = require("./component-issue");
5
- class MissingDists extends component_issue_1.ComponentIssue {
6
- constructor() {
7
- super(...arguments);
8
- this.description = 'missing dists';
9
- this.solution = 'run "bit compile"';
10
- this.isTagBlocker = false;
11
- }
12
- outputForCLI() {
13
- return (0, component_issue_1.formatTitle)(this.descriptionWithSolution, false);
14
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
+ class MissingDists extends _componentIssue().ComponentIssue {
18
+ constructor(...args) {
19
+ super(...args);
20
+ _defineProperty(this, "description", 'missing dists');
21
+ _defineProperty(this, "solution", 'run "bit compile"');
22
+ _defineProperty(this, "data", void 0);
23
+ _defineProperty(this, "isTagBlocker", false);
24
+ }
25
+ outputForCLI() {
26
+ return (0, _componentIssue().formatTitle)(this.descriptionWithSolution, false);
27
+ }
15
28
  }
16
29
  exports.MissingDists = MissingDists;
30
+
17
31
  //# sourceMappingURL=missing-dists.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"missing-dists.js","sourceRoot":"","sources":["../missing-dists.ts"],"names":[],"mappings":";;;AAAA,uDAAgE;AAEhE,MAAa,YAAa,SAAQ,gCAAc;IAAhD;;QACE,gBAAW,GAAG,eAAe,CAAC;QAC9B,aAAQ,GAAG,mBAAmB,CAAC;QAE/B,iBAAY,GAAG,KAAK,CAAC;IAIvB,CAAC;IAHC,YAAY;QACV,OAAO,IAAA,6BAAW,EAAC,IAAI,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;IAC1D,CAAC;CACF;AARD,oCAQC"}
1
+ {"version":3,"names":["_componentIssue","data","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","MissingDists","ComponentIssue","constructor","args","outputForCLI","formatTitle","descriptionWithSolution","exports"],"sources":["missing-dists.ts"],"sourcesContent":["import { ComponentIssue, formatTitle } from './component-issue';\n\nexport class MissingDists extends ComponentIssue {\n description = 'missing dists';\n solution = 'run \"bit compile\"';\n data: boolean;\n isTagBlocker = false;\n outputForCLI() {\n return formatTitle(this.descriptionWithSolution, false);\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAgE,SAAAE,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GAAAJ,IAAA,CAAAK,IAAA,CAAAP,KAAA,EAAAC,IAAA,2BAAAK,GAAA,sBAAAA,GAAA,YAAAE,SAAA,4DAAAP,IAAA,gBAAAF,MAAA,GAAAU,MAAA,EAAAT,KAAA;AAEzD,MAAMU,YAAY,SAASC,gCAAc,CAAC;EAAAC,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAA1B,eAAA,sBACjC,eAAe;IAAAA,eAAA,mBAClB,mBAAmB;IAAAA,eAAA;IAAAA,eAAA,uBAEf,KAAK;EAAA;EACpB2B,YAAYA,CAAA,EAAG;IACb,OAAO,IAAAC,6BAAW,EAAC,IAAI,CAACC,uBAAuB,EAAE,KAAK,CAAC;EACzD;AACF;AAACC,OAAA,CAAAP,YAAA,GAAAA,YAAA"}
@@ -1,17 +1,31 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.MissingLinksFromNodeModulesToSrc = void 0;
4
- const component_issue_1 = require("./component-issue");
5
- class MissingLinksFromNodeModulesToSrc extends component_issue_1.ComponentIssue {
6
- constructor() {
7
- super(...arguments);
8
- this.description = 'missing links from node_modules to source';
9
- this.solution = 'run "bit link"';
10
- this.isTagBlocker = false;
11
- }
12
- outputForCLI() {
13
- return (0, component_issue_1.formatTitle)(this.descriptionWithSolution, false);
14
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
+ class MissingLinksFromNodeModulesToSrc extends _componentIssue().ComponentIssue {
18
+ constructor(...args) {
19
+ super(...args);
20
+ _defineProperty(this, "description", 'missing links from node_modules to source');
21
+ _defineProperty(this, "solution", 'run "bit link"');
22
+ _defineProperty(this, "data", void 0);
23
+ _defineProperty(this, "isTagBlocker", false);
24
+ }
25
+ outputForCLI() {
26
+ return (0, _componentIssue().formatTitle)(this.descriptionWithSolution, false);
27
+ }
15
28
  }
16
29
  exports.MissingLinksFromNodeModulesToSrc = MissingLinksFromNodeModulesToSrc;
30
+
17
31
  //# sourceMappingURL=missing-links-from-nm-to-src.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"missing-links-from-nm-to-src.js","sourceRoot":"","sources":["../missing-links-from-nm-to-src.ts"],"names":[],"mappings":";;;AAAA,uDAAgE;AAEhE,MAAa,gCAAiC,SAAQ,gCAAc;IAApE;;QACE,gBAAW,GAAG,2CAA2C,CAAC;QAC1D,aAAQ,GAAG,gBAAgB,CAAC;QAE5B,iBAAY,GAAG,KAAK,CAAC;IAIvB,CAAC;IAHC,YAAY;QACV,OAAO,IAAA,6BAAW,EAAC,IAAI,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC;IAC1D,CAAC;CACF;AARD,4EAQC"}
1
+ {"version":3,"names":["_componentIssue","data","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","MissingLinksFromNodeModulesToSrc","ComponentIssue","constructor","args","outputForCLI","formatTitle","descriptionWithSolution","exports"],"sources":["missing-links-from-nm-to-src.ts"],"sourcesContent":["import { ComponentIssue, formatTitle } from './component-issue';\n\nexport class MissingLinksFromNodeModulesToSrc extends ComponentIssue {\n description = 'missing links from node_modules to source';\n solution = 'run \"bit link\"';\n data: boolean;\n isTagBlocker = false;\n outputForCLI() {\n return formatTitle(this.descriptionWithSolution, false);\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAgE,SAAAE,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GAAAJ,IAAA,CAAAK,IAAA,CAAAP,KAAA,EAAAC,IAAA,2BAAAK,GAAA,sBAAAA,GAAA,YAAAE,SAAA,4DAAAP,IAAA,gBAAAF,MAAA,GAAAU,MAAA,EAAAT,KAAA;AAEzD,MAAMU,gCAAgC,SAASC,gCAAc,CAAC;EAAAC,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAA1B,eAAA,sBACrD,2CAA2C;IAAAA,eAAA,mBAC9C,gBAAgB;IAAAA,eAAA;IAAAA,eAAA,uBAEZ,KAAK;EAAA;EACpB2B,YAAYA,CAAA,EAAG;IACb,OAAO,IAAAC,6BAAW,EAAC,IAAI,CAACC,uBAAuB,EAAE,KAAK,CAAC;EACzD;AACF;AAACC,OAAA,CAAAP,gCAAA,GAAAA,gCAAA"}
@@ -1,17 +1,31 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.MissingManuallyConfiguredPackages = void 0;
4
- const component_issue_1 = require("./component-issue");
5
- class MissingManuallyConfiguredPackages extends component_issue_1.ComponentIssue {
6
- constructor() {
7
- super(...arguments);
8
- this.description = `missing packages that were manually set`;
9
- this.solution = `run "bit install"`;
10
- this.data = []; // package names
11
- }
12
- dataToString() {
13
- return component_issue_1.ISSUE_FORMAT_SPACE + this.data.join(', ');
14
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
+ class MissingManuallyConfiguredPackages extends _componentIssue().ComponentIssue {
18
+ constructor(...args) {
19
+ super(...args);
20
+ _defineProperty(this, "description", `missing packages that were manually set`);
21
+ _defineProperty(this, "solution", `run "bit install"`);
22
+ _defineProperty(this, "data", []);
23
+ }
24
+ // package names
25
+ dataToString() {
26
+ return _componentIssue().ISSUE_FORMAT_SPACE + this.data.join(', ');
27
+ }
15
28
  }
16
29
  exports.MissingManuallyConfiguredPackages = MissingManuallyConfiguredPackages;
30
+
17
31
  //# sourceMappingURL=missing-manually-configured-packages.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"missing-manually-configured-packages.js","sourceRoot":"","sources":["../missing-manually-configured-packages.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,iCAAkC,SAAQ,gCAAc;IAArE;;QACE,gBAAW,GAAG,yCAAyC,CAAC;QACxD,aAAQ,GAAG,mBAAmB,CAAC;QAC/B,SAAI,GAAa,EAAE,CAAC,CAAC,gBAAgB;IAIvC,CAAC;IAHC,YAAY;QACV,OAAO,oCAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;CACF;AAPD,8EAOC"}
1
+ {"version":3,"names":["_componentIssue","data","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","MissingManuallyConfiguredPackages","ComponentIssue","constructor","args","dataToString","ISSUE_FORMAT_SPACE","join","exports"],"sources":["missing-manually-configured-packages.ts"],"sourcesContent":["import { ComponentIssue, ISSUE_FORMAT_SPACE } from './component-issue';\n\nexport class MissingManuallyConfiguredPackages extends ComponentIssue {\n description = `missing packages that were manually set`;\n solution = `run \"bit install\"`;\n data: string[] = []; // package names\n dataToString() {\n return ISSUE_FORMAT_SPACE + this.data.join(', ');\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;E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  exports.MissingPackagesDependenciesOnFs = void 0;
4
- const component_issue_1 = require("./component-issue");
5
- class MissingPackagesDependenciesOnFs extends component_issue_1.ComponentIssue {
6
- constructor() {
7
- super(...arguments);
8
- this.description = `missing packages or links from node_modules to the source`;
9
- this.solution = `run "bit install --add-missing-deps" to fix both issues`;
10
- this.data = {};
11
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
+ class MissingPackagesDependenciesOnFs extends _componentIssue().ComponentIssue {
18
+ constructor(...args) {
19
+ super(...args);
20
+ _defineProperty(this, "description", `missing packages or links from node_modules to the source`);
21
+ _defineProperty(this, "solution", `run "bit install --add-missing-deps" to fix both issues`);
22
+ _defineProperty(this, "data", {});
23
+ }
12
24
  }
13
25
  exports.MissingPackagesDependenciesOnFs = MissingPackagesDependenciesOnFs;
26
+
14
27
  //# sourceMappingURL=missing-packages-dependencies-on-fs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"missing-packages-dependencies-on-fs.js","sourceRoot":"","sources":["../missing-packages-dependencies-on-fs.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,+BAAgC,SAAQ,gCAAc;IAAnE;;QACE,gBAAW,GAAG,2DAA2D,CAAC;QAC1E,aAAQ,GAAG,yDAAyD,CAAC;QACrE,SAAI,GAAuB,EAAE,CAAC;IAChC,CAAC;CAAA;AAJD,0EAIC"}
1
+ {"version":3,"names":["_componentIssue","data","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","MissingPackagesDependenciesOnFs","ComponentIssue","constructor","args","exports"],"sources":["missing-packages-dependencies-on-fs.ts"],"sourcesContent":["import { ComponentIssue, StringsPerFilePath } from './component-issue';\n\nexport class MissingPackagesDependenciesOnFs extends ComponentIssue {\n description = `missing packages or links from node_modules to the source`;\n solution = `run \"bit install --add-missing-deps\" to fix both issues`;\n data: StringsPerFilePath = {};\n}\n"],"mappings":";;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAuE,SAAAE,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GAAAJ,IAAA,CAAAK,IAAA,CAAAP,KAAA,EAAAC,IAAA,2BAAAK,GAAA,sBAAAA,GAAA,YAAAE,SAAA,4DAAAP,IAAA,gBAAAF,MAAA,GAAAU,MAAA,EAAAT,KAAA;AAEhE,MAAMU,+BAA+B,SAASC,gCAAc,CAAC;EAAAC,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAA1B,eAAA,sBACnD,2DAA0D;IAAAA,eAAA,mBAC7D,yDAAwD;IAAAA,eAAA,eACzC,CAAC,CAAC;EAAA;AAC/B;AAAC2B,OAAA,CAAAJ,+BAAA,GAAAA,+BAAA"}
@@ -1,17 +1,32 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.MultipleEnvs = void 0;
4
- const component_issue_1 = require("./component-issue");
5
- class MultipleEnvs extends component_issue_1.ComponentIssue {
6
- constructor() {
7
- super(...arguments);
8
- this.description = 'multiple envs';
9
- this.solution = 'set the desired env by running "bit env set <component> <env>", if it doesn\'t work, run "bit aspect unset <component> <unwanted-env-id>". to keep troubleshooting run "bit aspect list <component-id>"';
10
- this.isTagBlocker = true;
11
- }
12
- dataToString() {
13
- return component_issue_1.ISSUE_FORMAT_SPACE + this.data.join(', ');
14
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
+ class MultipleEnvs extends _componentIssue().ComponentIssue {
18
+ constructor(...args) {
19
+ super(...args);
20
+ _defineProperty(this, "description", 'multiple envs');
21
+ _defineProperty(this, "solution", 'set the desired env by running "bit env set <component> <env>", if it doesn\'t work, run "bit aspect unset <component> <unwanted-env-id>". to keep troubleshooting run "bit aspect list <component-id>"');
22
+ _defineProperty(this, "data", void 0);
23
+ // env ids
24
+ _defineProperty(this, "isTagBlocker", true);
25
+ }
26
+ dataToString() {
27
+ return _componentIssue().ISSUE_FORMAT_SPACE + this.data.join(', ');
28
+ }
15
29
  }
16
30
  exports.MultipleEnvs = MultipleEnvs;
31
+
17
32
  //# sourceMappingURL=multiple-envs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"multiple-envs.js","sourceRoot":"","sources":["../multiple-envs.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,YAAa,SAAQ,gCAAc;IAAhD;;QACE,gBAAW,GAAG,eAAe,CAAC;QAC9B,aAAQ,GACN,yMAAyM,CAAC;QAE5M,iBAAY,GAAG,IAAI,CAAC;IAItB,CAAC;IAHC,YAAY;QACV,OAAO,oCAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;CACF;AATD,oCASC"}
1
+ {"version":3,"names":["_componentIssue","data","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","MultipleEnvs","ComponentIssue","constructor","args","dataToString","ISSUE_FORMAT_SPACE","join","exports"],"sources":["multiple-envs.ts"],"sourcesContent":["import { ComponentIssue, ISSUE_FORMAT_SPACE } from './component-issue';\n\nexport class MultipleEnvs extends ComponentIssue {\n description = 'multiple envs';\n solution =\n 'set the desired env by running \"bit env set <component> <env>\", if it doesn\\'t work, run \"bit aspect unset <component> <unwanted-env-id>\". to keep troubleshooting run \"bit aspect list <component-id>\"';\n data: string[]; // env ids\n isTagBlocker = true;\n data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,CAAC;EAClD;AACF;AAACC,OAAA,CAAAP,YAAA,GAAAA,YAAA"}
@@ -1,17 +1,31 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.NonLoadedEnv = void 0;
4
- const component_issue_1 = require("./component-issue");
5
- class NonLoadedEnv extends component_issue_1.ComponentIssue {
6
- constructor() {
7
- super(...arguments);
8
- this.description = 'failed loading env';
9
- this.solution = `run "bit install"`;
10
- this.isTagBlocker = true;
11
- }
12
- dataToString() {
13
- return component_issue_1.ISSUE_FORMAT_SPACE + this.data;
14
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
+ class NonLoadedEnv extends _componentIssue().ComponentIssue {
18
+ constructor(...args) {
19
+ super(...args);
20
+ _defineProperty(this, "description", 'failed loading env');
21
+ _defineProperty(this, "solution", `run "bit install"`);
22
+ _defineProperty(this, "data", void 0);
23
+ _defineProperty(this, "isTagBlocker", true);
24
+ }
25
+ dataToString() {
26
+ return _componentIssue().ISSUE_FORMAT_SPACE + this.data;
27
+ }
15
28
  }
16
29
  exports.NonLoadedEnv = NonLoadedEnv;
30
+
17
31
  //# sourceMappingURL=non-loaded-env.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"non-loaded-env.js","sourceRoot":"","sources":["../non-loaded-env.ts"],"names":[],"mappings":";;;AAAA,uDAAuE;AAEvE,MAAa,YAAa,SAAQ,gCAAc;IAAhD;;QACE,gBAAW,GAAG,oBAAoB,CAAC;QACnC,aAAQ,GAAG,mBAAmB,CAAC;QAE/B,iBAAY,GAAG,IAAI,CAAC;IAItB,CAAC;IAHC,YAAY;QACV,OAAO,oCAAkB,GAAG,IAAI,CAAC,IAAI,CAAC;IACxC,CAAC;CACF;AARD,oCAQC"}
1
+ {"version":3,"names":["_componentIssue","data","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","NonLoadedEnv","ComponentIssue","constructor","args","dataToString","ISSUE_FORMAT_SPACE","exports"],"sources":["non-loaded-env.ts"],"sourcesContent":["import { ComponentIssue, ISSUE_FORMAT_SPACE } from './component-issue';\n\nexport class NonLoadedEnv extends ComponentIssue {\n description = 'failed loading env';\n solution = `run \"bit install\"`;\n data: string;\n isTagBlocker = true;\n dataToString() {\n return ISSUE_FORMAT_SPACE + this.data;\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAuE,SAAAE,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GAAAJ,IAAA,CAAAK,IAAA,CAAAP,KAAA,EAAAC,IAAA,2BAAAK,GAAA,sBAAAA,GAAA,YAAAE,SAAA,4DAAAP,IAAA,gBAAAF,MAAA,GAAAU,MAAA,EAAAT,KAAA;AAEhE,MAAMU,YAAY,SAASC,gCAAc,CAAC;EAAAC,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAA1B,eAAA,sBACjC,oBAAoB;IAAAA,eAAA,mBACtB,mBAAkB;IAAAA,eAAA;IAAAA,eAAA,uBAEf,IAAI;EAAA;EACnB2B,YAAYA,CAAA,EAAG;IACb,OAAOC,oCAAkB,GAAG,IAAI,CAAC9B,IAAI;EACvC;AACF;AAAC+B,OAAA,CAAAN,YAAA,GAAAA,YAAA"}
@@ -1,14 +1,27 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.ParseErrors = void 0;
4
- const component_issue_1 = require("./component-issue");
5
- class ParseErrors extends component_issue_1.ComponentIssue {
6
- constructor() {
7
- super(...arguments);
8
- this.description = 'error found while parsing the file';
9
- this.solution = 'edit the file and fix the parsing error';
10
- this.data = {};
11
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
+ class ParseErrors extends _componentIssue().ComponentIssue {
18
+ constructor(...args) {
19
+ super(...args);
20
+ _defineProperty(this, "description", 'error found while parsing the file');
21
+ _defineProperty(this, "solution", 'edit the file and fix the parsing error');
22
+ _defineProperty(this, "data", {});
23
+ }
12
24
  }
13
25
  exports.ParseErrors = ParseErrors;
26
+
14
27
  //# sourceMappingURL=parse-errors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parse-errors.js","sourceRoot":"","sources":["../parse-errors.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAEnD,MAAa,WAAY,SAAQ,gCAAc;IAA/C;;QACE,gBAAW,GAAG,oCAAoC,CAAC;QACnD,aAAQ,GAAG,yCAAyC,CAAC;QACrD,SAAI,GAAmC,EAAE,CAAC;IAC5C,CAAC;CAAA;AAJD,kCAIC"}
1
+ {"version":3,"names":["_componentIssue","data","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","ParseErrors","ComponentIssue","constructor","args","exports"],"sources":["parse-errors.ts"],"sourcesContent":["import { ComponentIssue } from './component-issue';\n\nexport class ParseErrors extends ComponentIssue {\n description = 'error found while parsing the file';\n solution = 'edit the file and fix the parsing error';\n data: { [filePath: string]: string } = {};\n}\n"],"mappings":";;;;;;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAmD,SAAAE,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GAAAJ,IAAA,CAAAK,IAAA,CAAAP,KAAA,EAAAC,IAAA,2BAAAK,GAAA,sBAAAA,GAAA,YAAAE,SAAA,4DAAAP,IAAA,gBAAAF,MAAA,GAAAU,MAAA,EAAAT,KAAA;AAE5C,MAAMU,WAAW,SAASC,gCAAc,CAAC;EAAAC,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAA1B,eAAA,sBAChC,oCAAoC;IAAAA,eAAA,mBACvC,yCAAyC;IAAAA,eAAA,eACb,CAAC,CAAC;EAAA;AAC3C;AAAC2B,OAAA,CAAAJ,WAAA,GAAAA,WAAA"}
@@ -1,43 +1,62 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.RelativeComponentsAuthored = void 0;
4
- const component_id_1 = require("@teambit/component-id");
5
- const component_issue_1 = require("./component-issue");
6
- class RelativeComponentsAuthored extends component_issue_1.ComponentIssue {
7
- constructor() {
8
- super(...arguments);
9
- this.description = 'components with relative import statements found';
10
- this.solution = 'replace to module paths or use "bit link --rewire" to replace';
11
- this.data = {};
12
- this.isCacheBlocker = false;
13
- this.formatDataFunction = relativeComponentsAuthoredIssuesToString;
14
- }
15
- serialize() {
16
- const obj = Object.keys(this.data).reduce((acc, fileName) => {
17
- acc[fileName] = this.data[fileName].map((record) => ({
18
- importSource: record.importSource,
19
- componentId: record.componentId.serialize(),
20
- relativePath: record.relativePath,
21
- }));
22
- return acc;
23
- }, {});
24
- return JSON.stringify(obj);
25
- }
26
- deserialize(dataStr) {
27
- const data = JSON.parse(dataStr);
28
- Object.keys(data).forEach((fileName) => {
29
- data[fileName] = data[fileName].map((record) => ({
30
- importSource: record.importSource,
31
- componentId: component_id_1.ComponentID.deserialize(record.componentId),
32
- relativePath: record.relativePath,
33
- }));
34
- });
35
- return data;
36
- }
7
+ function _componentId() {
8
+ const data = require("@teambit/component-id");
9
+ _componentId = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ function _componentIssue() {
15
+ const data = require("./component-issue");
16
+ _componentIssue = function () {
17
+ return data;
18
+ };
19
+ return data;
20
+ }
21
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
22
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
23
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
24
+ class RelativeComponentsAuthored extends _componentIssue().ComponentIssue {
25
+ constructor(...args) {
26
+ super(...args);
27
+ _defineProperty(this, "description", 'components with relative import statements found');
28
+ _defineProperty(this, "solution", 'replace to module paths or use "bit link --rewire" to replace');
29
+ _defineProperty(this, "data", {});
30
+ _defineProperty(this, "isCacheBlocker", false);
31
+ _defineProperty(this, "formatDataFunction", relativeComponentsAuthoredIssuesToString);
32
+ }
33
+ serialize() {
34
+ const obj = Object.keys(this.data).reduce((acc, fileName) => {
35
+ acc[fileName] = this.data[fileName].map(record => ({
36
+ importSource: record.importSource,
37
+ componentId: record.componentId.serialize(),
38
+ relativePath: record.relativePath
39
+ }));
40
+ return acc;
41
+ }, {});
42
+ return JSON.stringify(obj);
43
+ }
44
+ deserialize(dataStr) {
45
+ const data = JSON.parse(dataStr);
46
+ Object.keys(data).forEach(fileName => {
47
+ data[fileName] = data[fileName].map(record => ({
48
+ importSource: record.importSource,
49
+ componentId: _componentId().ComponentID.deserialize(record.componentId),
50
+ relativePath: record.relativePath
51
+ }));
52
+ });
53
+ return data;
54
+ }
37
55
  }
38
56
  exports.RelativeComponentsAuthored = RelativeComponentsAuthored;
39
57
  function relativeComponentsAuthoredIssuesToString(relativeEntries) {
40
- const stringifyEntry = (entry) => `"${entry.importSource}" (${entry.componentId.toString()})`;
41
- return relativeEntries.map(stringifyEntry).join(', ');
58
+ const stringifyEntry = entry => `"${entry.importSource}" (${entry.componentId.toString()})`;
59
+ return relativeEntries.map(stringifyEntry).join(', ');
42
60
  }
61
+
43
62
  //# sourceMappingURL=relative-components-authored.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"relative-components-authored.js","sourceRoot":"","sources":["../relative-components-authored.ts"],"names":[],"mappings":";;;AAAA,wDAAoD;AACpD,uDAAmD;AAWnD,MAAa,0BAA2B,SAAQ,gCAAc;IAA9D;;QACE,gBAAW,GAAG,kDAAkD,CAAC;QACjE,aAAQ,GAAG,+DAA+D,CAAC;QAC3E,SAAI,GAA8D,EAAE,CAAC;QACrE,mBAAc,GAAG,KAAK,CAAC;QACvB,uBAAkB,GAAG,wCAAwC,CAAC;IAyBhE,CAAC;IAvBC,SAAS;QACP,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,QAA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+ {"version":3,"names":["_componentId","data","require","_componentIssue","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","RelativeComponentsAuthored","ComponentIssue","constructor","args","relativeComponentsAuthoredIssuesToString","serialize","keys","reduce","acc","fileName","map","record","importSource","componentId","relativePath","JSON","stringify","deserialize","dataStr","parse","forEach","ComponentID","exports","relativeEntries","stringifyEntry","entry","toString","join"],"sources":["relative-components-authored.ts"],"sourcesContent":["import { ComponentID } from '@teambit/component-id';\nimport { ComponentIssue } from './component-issue';\n\nexport type RelativeComponentsAuthoredEntry = {\n importSource: string;\n componentId: ComponentID;\n relativePath: {\n sourceRelativePath: string;\n importSpecifiers?: any[];\n };\n};\n\nexport class RelativeComponentsAuthored extends ComponentIssue {\n description = 'components with relative import statements found';\n solution = 'replace to module paths or use \"bit link --rewire\" to replace';\n data: { [fileName: string]: RelativeComponentsAuthoredEntry[] } = {};\n isCacheBlocker = false;\n formatDataFunction = relativeComponentsAuthoredIssuesToString;\n\n serialize(): string {\n const obj = Object.keys(this.data).reduce((acc, fileName) => {\n acc[fileName] = this.data[fileName].map((record) => ({\n importSource: record.importSource,\n componentId: record.componentId.serialize(),\n relativePath: record.relativePath,\n }));\n return acc;\n }, {});\n return JSON.stringify(obj);\n }\n\n deserialize(dataStr: string) {\n const data = JSON.parse(dataStr);\n Object.keys(data).forEach((fileName) => {\n data[fileName] = data[fileName].map((record) => ({\n importSource: record.importSource,\n componentId: ComponentID.deserialize(record.componentId),\n relativePath: record.relativePath,\n }));\n });\n return data;\n }\n}\n\nfunction relativeComponentsAuthoredIssuesToString(relativeEntries: RelativeComponentsAuthoredEntry[]) {\n const stringifyEntry = (entry: RelativeComponentsAuthoredEntry) =>\n `\"${entry.importSource}\" (${entry.componentId.toString()})`;\n return relativeEntries.map(stringifyEntry).join(', ');\n}\n"],"mappings":";;;;;;AAAA,SAAAA,aAAA;EA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OAAOH,eAAe,CAACb,GAAG,CAACc,cAAc,CAAC,CAACG,IAAI,CAAC,IAAI,CAAC;AACvD"}
@@ -1,18 +1,31 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.RelativeComponents = void 0;
4
- const component_issue_1 = require("./component-issue");
5
- class RelativeComponents extends component_issue_1.ComponentIssue {
6
- constructor() {
7
- super(...arguments);
8
- this.description = 'components with relative import statements found';
9
- this.solution = 'use module paths for imported components';
10
- this.data = {};
11
- this.isCacheBlocker = false;
12
- }
13
- deserialize(data) {
14
- return (0, component_issue_1.deserializeWithBitId)(data);
15
- }
7
+ function _componentIssue() {
8
+ const data = require("./component-issue");
9
+ _componentIssue = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
+ class RelativeComponents extends _componentIssue().ComponentIssue {
18
+ constructor(...args) {
19
+ super(...args);
20
+ _defineProperty(this, "description", 'components with relative import statements found');
21
+ _defineProperty(this, "solution", 'use module paths for imported components');
22
+ _defineProperty(this, "data", {});
23
+ _defineProperty(this, "isCacheBlocker", false);
24
+ }
25
+ deserialize(data) {
26
+ return (0, _componentIssue().deserializeWithBitId)(data);
27
+ }
16
28
  }
17
29
  exports.RelativeComponents = RelativeComponents;
30
+
18
31
  //# sourceMappingURL=relative-components.js.map