@teambit/issues 1.0.225 → 1.0.227

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.
@@ -1,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.component/issues@1.0.225" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/issues@1.0.227" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -48,8 +48,7 @@
48
48
  "line": 19,
49
49
  "character": 31
50
50
  },
51
- "name": "IssuesConfig",
52
- "internalFilePath": "issues.main.runtime.ts"
51
+ "name": "IssuesConfig"
53
52
  },
54
53
  "isOptional": false,
55
54
  "isSpread": false
@@ -69,8 +68,7 @@
69
68
  "line": 19,
70
69
  "character": 78
71
70
  },
72
- "name": "AddComponentsIssuesSlot",
73
- "internalFilePath": "issues.main.runtime.ts"
71
+ "name": "AddComponentsIssuesSlot"
74
72
  },
75
73
  "isOptional": false,
76
74
  "isSpread": false
@@ -141,11 +139,7 @@
141
139
  "line": 27,
142
140
  "character": 44
143
141
  },
144
- "name": "Component",
145
- "componentId": {
146
- "scope": "teambit.component",
147
- "name": "component"
148
- }
142
+ "name": "Component"
149
143
  },
150
144
  "isOptional": false,
151
145
  "isSpread": false
@@ -223,11 +217,7 @@
223
217
  "line": 57,
224
218
  "character": 49
225
219
  },
226
- "name": "Component",
227
- "componentId": {
228
- "scope": "teambit.component",
229
- "name": "component"
230
- }
220
+ "name": "Component"
231
221
  }
232
222
  },
233
223
  "isOptional": false,
@@ -309,8 +299,7 @@
309
299
  "line": 74,
310
300
  "character": 52
311
301
  },
312
- "name": "AddComponentsIssues",
313
- "internalFilePath": "issues.main.runtime.ts"
302
+ "name": "AddComponentsIssues"
314
303
  },
315
304
  "isOptional": false,
316
305
  "isSpread": false
@@ -359,11 +348,7 @@
359
348
  "line": 78,
360
349
  "character": 47
361
350
  },
362
- "name": "Component",
363
- "componentId": {
364
- "scope": "teambit.component",
365
- "name": "component"
366
- }
351
+ "name": "Component"
367
352
  }
368
353
  },
369
354
  "isOptional": false,
@@ -528,11 +513,7 @@
528
513
  "line": 89,
529
514
  "character": 33
530
515
  },
531
- "name": "CLIMain",
532
- "componentId": {
533
- "scope": "teambit.harmony",
534
- "name": "cli"
535
- }
516
+ "name": "CLIMain"
536
517
  }
537
518
  ]
538
519
  },
@@ -554,8 +535,7 @@
554
535
  "line": 89,
555
536
  "character": 51
556
537
  },
557
- "name": "IssuesConfig",
558
- "internalFilePath": "issues.main.runtime.ts"
538
+ "name": "IssuesConfig"
559
539
  },
560
540
  "isOptional": false,
561
541
  "isSpread": false
@@ -583,8 +563,7 @@
583
563
  "line": 89,
584
564
  "character": 93
585
565
  },
586
- "name": "AddComponentsIssuesSlot",
587
- "internalFilePath": "issues.main.runtime.ts"
566
+ "name": "AddComponentsIssuesSlot"
588
567
  }
589
568
  ]
590
569
  },
@@ -722,7 +701,7 @@
722
701
  "line": 14,
723
702
  "character": 35
724
703
  },
725
- "signature": "(components: \u001b[2m(component: teambit.component/component)\u001b[22m Component[], issuesToIgnore: string[]): Promise<void>",
704
+ "signature": "(components: Component[], issuesToIgnore: string[]): Promise<void>",
726
705
  "name": "",
727
706
  "params": [
728
707
  {
@@ -747,11 +726,7 @@
747
726
  "line": 14,
748
727
  "character": 48
749
728
  },
750
- "name": "Component",
751
- "componentId": {
752
- "scope": "teambit.component",
753
- "name": "component"
754
- }
729
+ "name": "Component"
755
730
  }
756
731
  },
757
732
  "isOptional": false,
@@ -826,11 +801,6 @@
826
801
  "character": 39
827
802
  },
828
803
  "name": "SlotRegistry",
829
- "componentId": {
830
- "scope": "teambit.harmony",
831
- "name": "harmony",
832
- "version": "0.4.6"
833
- },
834
804
  "typeArgs": [
835
805
  {
836
806
  "__schema": "TypeRefSchema",
@@ -839,8 +809,7 @@
839
809
  "line": 16,
840
810
  "character": 52
841
811
  },
842
- "name": "AddComponentsIssues",
843
- "internalFilePath": "issues.main.runtime.ts"
812
+ "name": "AddComponentsIssues"
844
813
  }
845
814
  ]
846
815
  }
@@ -880,8 +849,7 @@
880
849
  "line": 19,
881
850
  "character": 31
882
851
  },
883
- "name": "IssuesConfig",
884
- "internalFilePath": "issues.main.runtime.ts"
852
+ "name": "IssuesConfig"
885
853
  },
886
854
  "isOptional": false,
887
855
  "isSpread": false
@@ -901,8 +869,7 @@
901
869
  "line": 19,
902
870
  "character": 78
903
871
  },
904
- "name": "AddComponentsIssuesSlot",
905
- "internalFilePath": "issues.main.runtime.ts"
872
+ "name": "AddComponentsIssuesSlot"
906
873
  },
907
874
  "isOptional": false,
908
875
  "isSpread": false
@@ -973,11 +940,7 @@
973
940
  "line": 27,
974
941
  "character": 44
975
942
  },
976
- "name": "Component",
977
- "componentId": {
978
- "scope": "teambit.component",
979
- "name": "component"
980
- }
943
+ "name": "Component"
981
944
  },
982
945
  "isOptional": false,
983
946
  "isSpread": false
@@ -1055,11 +1018,7 @@
1055
1018
  "line": 57,
1056
1019
  "character": 49
1057
1020
  },
1058
- "name": "Component",
1059
- "componentId": {
1060
- "scope": "teambit.component",
1061
- "name": "component"
1062
- }
1021
+ "name": "Component"
1063
1022
  }
1064
1023
  },
1065
1024
  "isOptional": false,
@@ -1141,8 +1100,7 @@
1141
1100
  "line": 74,
1142
1101
  "character": 52
1143
1102
  },
1144
- "name": "AddComponentsIssues",
1145
- "internalFilePath": "issues.main.runtime.ts"
1103
+ "name": "AddComponentsIssues"
1146
1104
  },
1147
1105
  "isOptional": false,
1148
1106
  "isSpread": false
@@ -1191,11 +1149,7 @@
1191
1149
  "line": 78,
1192
1150
  "character": 47
1193
1151
  },
1194
- "name": "Component",
1195
- "componentId": {
1196
- "scope": "teambit.component",
1197
- "name": "component"
1198
- }
1152
+ "name": "Component"
1199
1153
  }
1200
1154
  },
1201
1155
  "isOptional": false,
@@ -1360,11 +1314,7 @@
1360
1314
  "line": 89,
1361
1315
  "character": 33
1362
1316
  },
1363
- "name": "CLIMain",
1364
- "componentId": {
1365
- "scope": "teambit.harmony",
1366
- "name": "cli"
1367
- }
1317
+ "name": "CLIMain"
1368
1318
  }
1369
1319
  ]
1370
1320
  },
@@ -1386,8 +1336,7 @@
1386
1336
  "line": 89,
1387
1337
  "character": 51
1388
1338
  },
1389
- "name": "IssuesConfig",
1390
- "internalFilePath": "issues.main.runtime.ts"
1339
+ "name": "IssuesConfig"
1391
1340
  },
1392
1341
  "isOptional": false,
1393
1342
  "isSpread": false
@@ -1415,8 +1364,7 @@
1415
1364
  "line": 89,
1416
1365
  "character": 93
1417
1366
  },
1418
- "name": "AddComponentsIssuesSlot",
1419
- "internalFilePath": "issues.main.runtime.ts"
1367
+ "name": "AddComponentsIssuesSlot"
1420
1368
  }
1421
1369
  ]
1422
1370
  },
@@ -1497,7 +1445,7 @@
1497
1445
  "componentId": {
1498
1446
  "scope": "teambit.component",
1499
1447
  "name": "issues",
1500
- "version": "1.0.225"
1448
+ "version": "1.0.227"
1501
1449
  },
1502
1450
  "taggedModuleExports": []
1503
1451
  }
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "name": "@teambit/issues",
3
- "version": "1.0.225",
3
+ "version": "1.0.227",
4
4
  "homepage": "https://bit.cloud/teambit/component/issues",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "issues",
9
- "version": "1.0.225"
9
+ "version": "1.0.227"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
13
13
  "p-map-series": "2.1.0",
14
14
  "@teambit/harmony": "0.4.6",
15
15
  "@teambit/bit-error": "0.0.404",
16
- "@teambit/cli": "0.0.859",
17
- "@teambit/component-issues": "0.0.142",
18
- "@teambit/component": "1.0.225"
16
+ "@teambit/cli": "0.0.860",
17
+ "@teambit/component-issues": "0.0.143",
18
+ "@teambit/component": "1.0.227"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/mocha": "9.1.0",
22
22
  "chai": "4.3.0",
23
- "@teambit/harmony.envs.core-aspect-env": "0.0.27"
23
+ "@teambit/harmony.envs.core-aspect-env": "0.0.30"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "@teambit/legacy": "1.0.624"
package/tsconfig.json CHANGED
@@ -20,7 +20,8 @@
20
20
  "emitDeclarationOnly": true,
21
21
  "strict": true,
22
22
  "strictPropertyInitialization": false,
23
- "noImplicitAny": false
23
+ "noImplicitAny": false,
24
+ "composite": true
24
25
  },
25
26
  "exclude": [
26
27
  "artifacts",
@@ -35,5 +36,13 @@
35
36
  "include": [
36
37
  "**/*",
37
38
  "**/*.json"
39
+ ],
40
+ "references": [
41
+ {
42
+ "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.860"
43
+ },
44
+ {
45
+ "path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.227"
46
+ }
38
47
  ]
39
48
  }
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import { IssuesAspect } from './issues.aspect';
2
- export type { IssuesMain } from './issues.main.runtime';
3
- export default IssuesAspect;
4
- export { IssuesAspect };
@@ -1,20 +0,0 @@
1
- import { Command, CommandOptions } from '@teambit/cli';
2
- import { IssuesMain } from './issues.main.runtime';
3
- export declare class ComponentIssuesCmd implements Command {
4
- private issues;
5
- name: string;
6
- description: string;
7
- alias: string;
8
- group: string;
9
- options: CommandOptions;
10
- loader: boolean;
11
- private: boolean;
12
- constructor(issues: IssuesMain);
13
- report(): Promise<string>;
14
- json(): Promise<{
15
- name: string;
16
- description: string;
17
- solution: string;
18
- isTagBlocker: boolean;
19
- }[]>;
20
- }
@@ -1,2 +0,0 @@
1
- import { Aspect } from '@teambit/harmony';
2
- export declare const IssuesAspect: Aspect;
@@ -1,38 +0,0 @@
1
- import { CLIMain } from '@teambit/cli';
2
- import { Component } from '@teambit/component';
3
- import { SlotRegistry } from '@teambit/harmony';
4
- export type IssuesConfig = {
5
- ignoreIssues: string[];
6
- };
7
- export type AddComponentsIssues = (components: Component[], issuesToIgnore: string[]) => Promise<void>;
8
- export type AddComponentsIssuesSlot = SlotRegistry<AddComponentsIssues>;
9
- export declare class IssuesMain {
10
- private config;
11
- private addComponentsIssuesSlot;
12
- constructor(config: IssuesConfig, addComponentsIssuesSlot: AddComponentsIssuesSlot);
13
- getIssuesToIgnoreGlobally(): string[];
14
- getIssuesToIgnorePerComponent(component: Component): string[];
15
- private validateIssueNames;
16
- listIssues(): {
17
- name: string;
18
- description: string;
19
- solution: string;
20
- isTagBlocker: boolean;
21
- }[];
22
- removeIgnoredIssuesFromComponents(components: Component[], extraIssuesToIgnore?: string[]): void;
23
- /**
24
- * register to this slot in order to add a component-issue in bit-status and bit-snap/tag.
25
- * your function gets all components in one param and the issuesToIgnore as a second param, you don't need to check
26
- * for issuesToIgnore. if the issue you added is configured to be ignored, it'll be ignored later in the process.
27
- * this is useful for optimization, if you don't want to calculate the component issue when it's ignored.
28
- */
29
- registerAddComponentsIssues(addComponentsIssues: AddComponentsIssues): void;
30
- triggerAddComponentIssues(components: Component[], issuesToIgnore: string[]): Promise<void>;
31
- static slots: ((registerFn: () => string) => SlotRegistry<AddComponentsIssues>)[];
32
- static dependencies: import("@teambit/harmony").Aspect[];
33
- static defaultConfig: {
34
- ignoreIssues: never[];
35
- };
36
- static runtime: import("@teambit/harmony").RuntimeDefinition;
37
- static provider([cli]: [CLIMain], config: IssuesConfig, [addComponentsIssuesSlot]: [AddComponentsIssuesSlot]): Promise<IssuesMain>;
38
- }
@@ -1,4 +0,0 @@
1
- import { BitError } from '@teambit/bit-error';
2
- export declare class NonExistIssueError extends BitError {
3
- constructor(issueToIgnore: string);
4
- }