@teambit/component-issues 0.0.100 → 0.0.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/circular-dependencies.js +26 -12
- package/dist/circular-dependencies.js.map +1 -1
- package/dist/component-issue.d.ts +8 -6
- package/dist/component-issue.js +81 -56
- package/dist/component-issue.js.map +1 -1
- package/dist/duplicate-component-and-package.js +26 -12
- package/dist/duplicate-component-and-package.js.map +1 -1
- package/dist/external-env-without-version.js +29 -15
- package/dist/external-env-without-version.js.map +1 -1
- package/dist/import-non-main-files.js +23 -10
- package/dist/import-non-main-files.js.map +1 -1
- package/dist/index.js +81 -10
- package/dist/index.js.map +1 -1
- package/dist/issues-list.d.ts +9 -8
- package/dist/issues-list.js +266 -128
- package/dist/issues-list.js.map +1 -1
- package/dist/legacy-inside-harmony.js +26 -12
- package/dist/legacy-inside-harmony.js.map +1 -1
- package/dist/merge-config-has-conflict.js +26 -12
- package/dist/merge-config-has-conflict.js.map +1 -1
- package/dist/missing-components.js +25 -12
- package/dist/missing-components.js.map +1 -1
- package/dist/missing-dependencies-on-fs.js +22 -9
- package/dist/missing-dependencies-on-fs.js.map +1 -1
- package/dist/missing-dists.js +26 -12
- package/dist/missing-dists.js.map +1 -1
- package/dist/missing-links-from-nm-to-src.js +26 -12
- package/dist/missing-links-from-nm-to-src.js.map +1 -1
- package/dist/missing-manually-configured-packages.js +26 -12
- package/dist/missing-manually-configured-packages.js.map +1 -1
- package/dist/missing-packages-dependencies-on-fs.js +22 -9
- package/dist/missing-packages-dependencies-on-fs.js.map +1 -1
- package/dist/multiple-envs.js +27 -12
- package/dist/multiple-envs.js.map +1 -1
- package/dist/non-loaded-env.js +26 -12
- package/dist/non-loaded-env.js.map +1 -1
- package/dist/parse-errors.js +22 -9
- package/dist/parse-errors.js.map +1 -1
- package/dist/relative-components-authored.js +55 -36
- package/dist/relative-components-authored.js.map +1 -1
- package/dist/relative-components.js +26 -13
- package/dist/relative-components.js.map +1 -1
- package/dist/removed-dependencies.js +27 -12
- package/dist/removed-dependencies.js.map +1 -1
- package/dist/resolve-errors.js +22 -9
- package/dist/resolve-errors.js.map +1 -1
- package/dist/untracked-dependencies.js +48 -32
- package/dist/untracked-dependencies.js.map +1 -1
- package/package.json +15 -6
- package/tsconfig.json +10 -2
- package/circular-dependencies.ts +0 -11
- package/component-issue.ts +0 -66
- package/dist/tsconfig.json +0 -32
- package/duplicate-component-and-package.ts +0 -11
- package/external-env-without-version.ts +0 -19
- package/import-non-main-files.ts +0 -8
- package/index.ts +0 -4
- package/issues-list.ts +0 -155
- package/legacy-inside-harmony.ts +0 -11
- package/merge-config-has-conflict.ts +0 -11
- package/missing-components.ts +0 -11
- package/missing-dependencies-on-fs.ts +0 -7
- package/missing-dists.ts +0 -11
- package/missing-links-from-nm-to-src.ts +0 -11
- package/missing-manually-configured-packages.ts +0 -10
- package/missing-packages-dependencies-on-fs.ts +0 -7
- package/multiple-envs.ts +0 -12
- package/non-loaded-env.ts +0 -11
- package/parse-errors.ts +0 -7
- package/relative-components-authored.ts +0 -49
- package/relative-components.ts +0 -12
- package/removed-dependencies.ts +0 -12
- package/resolve-errors.ts +0 -7
- package/untracked-dependencies.ts +0 -41
- /package/dist/{preview-1697824694360.js → preview-1698895126768.js} +0 -0
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.MissingDependenciesOnFs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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,"
|
|
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;EAA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|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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,"
|
|
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
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.MissingLinksFromNodeModulesToSrc = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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,"
|
|
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
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.MissingManuallyConfiguredPackages = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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,"
|
|
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;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,iCAAiC,SAASC,gCAAc,CAAC;EAAAC,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAA1B,eAAA,sBACrD,yCAAwC;IAAAA,eAAA,mBAC3C,mBAAkB;IAAAA,eAAA,eACb,EAAE;EAAA;EAAE;EACrB2B,YAAYA,CAAA,EAAG;IACb,OAAOC,oCAAkB,GAAG,IAAI,CAAC9B,IAAI,CAAC+B,IAAI,CAAC,IAAI,CAAC;EAClD;AACF;AAACC,OAAA,CAAAP,iCAAA,GAAAA,iCAAA"}
|
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.MissingPackagesDependenciesOnFs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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,"
|
|
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"}
|
package/dist/multiple-envs.js
CHANGED
|
@@ -1,17 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.MultipleEnvs = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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,"
|
|
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 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,IAA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|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.NonLoadedEnv = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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,"
|
|
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"}
|
package/dist/parse-errors.js
CHANGED
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.ParseErrors = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
package/dist/parse-errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.RelativeComponentsAuthored = void 0;
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
41
|
-
|
|
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,"
|
|
1
|
+
{"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;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,YAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,gBAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,eAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAmD,SAAAG,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,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AI,CAAC,CAAC8C,OAAO,CAAEX,QAAQ,IAAK;MACtCnC,IAAI,CAACmC,QAAQ,CAAC,GAAGnC,IAAI,CAACmC,QAAQ,CAAC,CAACC,GAAG,CAAEC,MAAM,KAAM;QAC/CC,YAAY,EAAED,MAAM,CAACC,YAAY;QACjCC,WAAW,EAAEQ,0BAAW,CAACJ,WAAW,CAACN,MAAM,CAACE,WAAW,CAAC;QACxDC,YAAY,EAAEH,MAAM,CAACG;MACvB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IACF,OAAOxC,IAAI;EACb;AACF;AAACgD,OAAA,CAAAtB,0BAAA,GAAAA,0BAAA;AAED,SAASI,wCAAwCA,CAACmB,eAAkD,EAAE;EACpG,MAAMC,cAAc,GAAIC,KAAsC,IAC3D,IAAGA,KAAK,CAACb,YAAa,MAAKa,KAAK,CAACZ,WAAW,CAACa,QAAQ,CAAC,CAAE,GAAE;EAC7D,OAAOH,eAAe,CAACb,GAAG,CAACc,cAAc,CAAC,CAACG,IAAI,CAAC,IAAI,CAAC;AACvD"}
|
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
3
6
|
exports.RelativeComponents = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|