@teambit/checkout 1.0.330 → 1.0.331
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,8 +1,8 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites tests="3" failures="0" errors="0" skipped="0">
|
|
3
|
-
<testsuite name="teambit.component/checkout@1.0.
|
|
4
|
-
<testcase classname="dist/checkout.spec.js" name="should bring the files back"/>
|
|
5
|
-
<testcase classname="dist/checkout.spec.js" name="the workspace should get the component as a valid component" time="0.
|
|
3
|
+
<testsuite name="teambit.component/checkout@1.0.331" tests="3" failures="0" errors="0" skipped="0">
|
|
4
|
+
<testcase classname="dist/checkout.spec.js" name="should bring the files back" time="0.001"/>
|
|
5
|
+
<testcase classname="dist/checkout.spec.js" name="the workspace should get the component as a valid component" time="0.063"/>
|
|
6
6
|
<testcase classname="dist/checkout.spec.js" name="should checkout according to the number of generations specified" time="0.002"/>
|
|
7
7
|
</testsuite>
|
|
8
8
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
|
@@ -56,11 +56,7 @@
|
|
|
56
56
|
"line": 64,
|
|
57
57
|
"character": 24
|
|
58
58
|
},
|
|
59
|
-
"name": "Workspace"
|
|
60
|
-
"componentId": {
|
|
61
|
-
"scope": "teambit.workspace",
|
|
62
|
-
"name": "workspace"
|
|
63
|
-
}
|
|
59
|
+
"name": "Workspace"
|
|
64
60
|
},
|
|
65
61
|
"isOptional": false,
|
|
66
62
|
"isSpread": false
|
|
@@ -80,11 +76,7 @@
|
|
|
80
76
|
"line": 65,
|
|
81
77
|
"character": 21
|
|
82
78
|
},
|
|
83
|
-
"name": "Logger"
|
|
84
|
-
"componentId": {
|
|
85
|
-
"scope": "teambit.harmony",
|
|
86
|
-
"name": "logger"
|
|
87
|
-
}
|
|
79
|
+
"name": "Logger"
|
|
88
80
|
},
|
|
89
81
|
"isOptional": false,
|
|
90
82
|
"isSpread": false
|
|
@@ -104,11 +96,7 @@
|
|
|
104
96
|
"line": 66,
|
|
105
97
|
"character": 30
|
|
106
98
|
},
|
|
107
|
-
"name": "ComponentWriterMain"
|
|
108
|
-
"componentId": {
|
|
109
|
-
"scope": "teambit.component",
|
|
110
|
-
"name": "component-writer"
|
|
111
|
-
}
|
|
99
|
+
"name": "ComponentWriterMain"
|
|
112
100
|
},
|
|
113
101
|
"isOptional": false,
|
|
114
102
|
"isSpread": false
|
|
@@ -128,11 +116,7 @@
|
|
|
128
116
|
"line": 67,
|
|
129
117
|
"character": 23
|
|
130
118
|
},
|
|
131
|
-
"name": "ImporterMain"
|
|
132
|
-
"componentId": {
|
|
133
|
-
"scope": "teambit.scope",
|
|
134
|
-
"name": "importer"
|
|
135
|
-
}
|
|
119
|
+
"name": "ImporterMain"
|
|
136
120
|
},
|
|
137
121
|
"isOptional": false,
|
|
138
122
|
"isSpread": false
|
|
@@ -152,11 +136,7 @@
|
|
|
152
136
|
"line": 68,
|
|
153
137
|
"character": 21
|
|
154
138
|
},
|
|
155
|
-
"name": "RemoveMain"
|
|
156
|
-
"componentId": {
|
|
157
|
-
"scope": "teambit.component",
|
|
158
|
-
"name": "remove"
|
|
159
|
-
}
|
|
139
|
+
"name": "RemoveMain"
|
|
160
140
|
},
|
|
161
141
|
"isOptional": false,
|
|
162
142
|
"isSpread": false
|
|
@@ -220,11 +200,7 @@
|
|
|
220
200
|
"line": 71,
|
|
221
201
|
"character": 57
|
|
222
202
|
},
|
|
223
|
-
"name": "ApplyVersionResults"
|
|
224
|
-
"componentId": {
|
|
225
|
-
"scope": "teambit.component",
|
|
226
|
-
"name": "merging"
|
|
227
|
-
}
|
|
203
|
+
"name": "ApplyVersionResults"
|
|
228
204
|
}
|
|
229
205
|
]
|
|
230
206
|
},
|
|
@@ -305,12 +281,7 @@
|
|
|
305
281
|
"line": 206,
|
|
306
282
|
"character": 73
|
|
307
283
|
},
|
|
308
|
-
"name": "ComponentID"
|
|
309
|
-
"componentId": {
|
|
310
|
-
"scope": "teambit.component",
|
|
311
|
-
"name": "component-id",
|
|
312
|
-
"version": "1.2.0"
|
|
313
|
-
}
|
|
284
|
+
"name": "ComponentID"
|
|
314
285
|
}
|
|
315
286
|
},
|
|
316
287
|
{
|
|
@@ -397,11 +368,7 @@
|
|
|
397
368
|
"line": 233,
|
|
398
369
|
"character": 94
|
|
399
370
|
},
|
|
400
|
-
"name": "ApplyVersionResults"
|
|
401
|
-
"componentId": {
|
|
402
|
-
"scope": "teambit.component",
|
|
403
|
-
"name": "merging"
|
|
404
|
-
}
|
|
371
|
+
"name": "ApplyVersionResults"
|
|
405
372
|
}
|
|
406
373
|
]
|
|
407
374
|
},
|
|
@@ -505,11 +472,7 @@
|
|
|
505
472
|
"line": 525,
|
|
506
473
|
"character": 5
|
|
507
474
|
},
|
|
508
|
-
"name": "CLIMain"
|
|
509
|
-
"componentId": {
|
|
510
|
-
"scope": "teambit.harmony",
|
|
511
|
-
"name": "cli"
|
|
512
|
-
}
|
|
475
|
+
"name": "CLIMain"
|
|
513
476
|
},
|
|
514
477
|
{
|
|
515
478
|
"__schema": "TypeRefSchema",
|
|
@@ -518,11 +481,7 @@
|
|
|
518
481
|
"line": 526,
|
|
519
482
|
"character": 5
|
|
520
483
|
},
|
|
521
|
-
"name": "Workspace"
|
|
522
|
-
"componentId": {
|
|
523
|
-
"scope": "teambit.workspace",
|
|
524
|
-
"name": "workspace"
|
|
525
|
-
}
|
|
484
|
+
"name": "Workspace"
|
|
526
485
|
},
|
|
527
486
|
{
|
|
528
487
|
"__schema": "TypeRefSchema",
|
|
@@ -531,11 +490,7 @@
|
|
|
531
490
|
"line": 527,
|
|
532
491
|
"character": 5
|
|
533
492
|
},
|
|
534
|
-
"name": "LoggerMain"
|
|
535
|
-
"componentId": {
|
|
536
|
-
"scope": "teambit.harmony",
|
|
537
|
-
"name": "logger"
|
|
538
|
-
}
|
|
493
|
+
"name": "LoggerMain"
|
|
539
494
|
},
|
|
540
495
|
{
|
|
541
496
|
"__schema": "TypeRefSchema",
|
|
@@ -544,11 +499,7 @@
|
|
|
544
499
|
"line": 528,
|
|
545
500
|
"character": 5
|
|
546
501
|
},
|
|
547
|
-
"name": "ComponentWriterMain"
|
|
548
|
-
"componentId": {
|
|
549
|
-
"scope": "teambit.component",
|
|
550
|
-
"name": "component-writer"
|
|
551
|
-
}
|
|
502
|
+
"name": "ComponentWriterMain"
|
|
552
503
|
},
|
|
553
504
|
{
|
|
554
505
|
"__schema": "TypeRefSchema",
|
|
@@ -557,11 +508,7 @@
|
|
|
557
508
|
"line": 529,
|
|
558
509
|
"character": 5
|
|
559
510
|
},
|
|
560
|
-
"name": "ImporterMain"
|
|
561
|
-
"componentId": {
|
|
562
|
-
"scope": "teambit.scope",
|
|
563
|
-
"name": "importer"
|
|
564
|
-
}
|
|
511
|
+
"name": "ImporterMain"
|
|
565
512
|
},
|
|
566
513
|
{
|
|
567
514
|
"__schema": "TypeRefSchema",
|
|
@@ -570,11 +517,7 @@
|
|
|
570
517
|
"line": 530,
|
|
571
518
|
"character": 5
|
|
572
519
|
},
|
|
573
|
-
"name": "RemoveMain"
|
|
574
|
-
"componentId": {
|
|
575
|
-
"scope": "teambit.component",
|
|
576
|
-
"name": "remove"
|
|
577
|
-
}
|
|
520
|
+
"name": "RemoveMain"
|
|
578
521
|
}
|
|
579
522
|
]
|
|
580
523
|
},
|
|
@@ -669,12 +612,7 @@
|
|
|
669
612
|
"line": 30,
|
|
670
613
|
"character": 9
|
|
671
614
|
},
|
|
672
|
-
"name": "ComponentID"
|
|
673
|
-
"componentId": {
|
|
674
|
-
"scope": "teambit.component",
|
|
675
|
-
"name": "component-id",
|
|
676
|
-
"version": "1.2.0"
|
|
677
|
-
}
|
|
615
|
+
"name": "ComponentID"
|
|
678
616
|
}
|
|
679
617
|
},
|
|
680
618
|
"isOptional": true
|
|
@@ -795,11 +733,7 @@
|
|
|
795
733
|
"line": 36,
|
|
796
734
|
"character": 19
|
|
797
735
|
},
|
|
798
|
-
"name": "MergeStrategy"
|
|
799
|
-
"componentId": {
|
|
800
|
-
"scope": "teambit.component",
|
|
801
|
-
"name": "merging"
|
|
802
|
-
}
|
|
736
|
+
"name": "MergeStrategy"
|
|
803
737
|
},
|
|
804
738
|
"isOptional": true
|
|
805
739
|
},
|
|
@@ -979,8 +913,7 @@
|
|
|
979
913
|
"line": 45,
|
|
980
914
|
"character": 10
|
|
981
915
|
},
|
|
982
|
-
"name": "Lane"
|
|
983
|
-
"packageName": "@teambit/legacy/dist/scope/models"
|
|
916
|
+
"name": "Lane"
|
|
984
917
|
},
|
|
985
918
|
"isOptional": true
|
|
986
919
|
},
|
|
@@ -1027,12 +960,7 @@
|
|
|
1027
960
|
"line": 47,
|
|
1028
961
|
"character": 18
|
|
1029
962
|
},
|
|
1030
|
-
"name": "ComponentID"
|
|
1031
|
-
"componentId": {
|
|
1032
|
-
"scope": "teambit.component",
|
|
1033
|
-
"name": "component-id",
|
|
1034
|
-
"version": "1.2.0"
|
|
1035
|
-
}
|
|
963
|
+
"name": "ComponentID"
|
|
1036
964
|
}
|
|
1037
965
|
},
|
|
1038
966
|
"isOptional": true
|
|
@@ -1237,8 +1165,7 @@
|
|
|
1237
1165
|
"line": 157,
|
|
1238
1166
|
"character": 19
|
|
1239
1167
|
},
|
|
1240
|
-
"name": "SourceFile"
|
|
1241
|
-
"packageName": "@teambit/legacy/dist/consumer/component/sources"
|
|
1168
|
+
"name": "SourceFile"
|
|
1242
1169
|
}
|
|
1243
1170
|
},
|
|
1244
1171
|
"isOptional": false,
|
|
@@ -1259,11 +1186,7 @@
|
|
|
1259
1186
|
"line": 158,
|
|
1260
1187
|
"character": 17
|
|
1261
1188
|
},
|
|
1262
|
-
"name": "MergeResultsThreeWay"
|
|
1263
|
-
"componentId": {
|
|
1264
|
-
"scope": "teambit.component",
|
|
1265
|
-
"name": "merging"
|
|
1266
|
-
}
|
|
1189
|
+
"name": "MergeResultsThreeWay"
|
|
1267
1190
|
},
|
|
1268
1191
|
"isOptional": false,
|
|
1269
1192
|
"isSpread": false
|
|
@@ -1291,11 +1214,7 @@
|
|
|
1291
1214
|
"line": 159,
|
|
1292
1215
|
"character": 18
|
|
1293
1216
|
},
|
|
1294
|
-
"name": "MergeStrategy"
|
|
1295
|
-
"componentId": {
|
|
1296
|
-
"scope": "teambit.component",
|
|
1297
|
-
"name": "merging"
|
|
1298
|
-
}
|
|
1217
|
+
"name": "MergeStrategy"
|
|
1299
1218
|
},
|
|
1300
1219
|
{
|
|
1301
1220
|
"__schema": "LiteralTypeSchema",
|
|
@@ -1392,8 +1311,7 @@
|
|
|
1392
1311
|
"line": 160,
|
|
1393
1312
|
"character": 55
|
|
1394
1313
|
},
|
|
1395
|
-
"name": "SourceFile"
|
|
1396
|
-
"packageName": "@teambit/legacy/dist/consumer/component/sources"
|
|
1314
|
+
"name": "SourceFile"
|
|
1397
1315
|
}
|
|
1398
1316
|
},
|
|
1399
1317
|
"isOptional": false
|
|
@@ -1449,8 +1367,7 @@
|
|
|
1449
1367
|
"line": 64,
|
|
1450
1368
|
"character": 13
|
|
1451
1369
|
},
|
|
1452
|
-
"name": "Consumer"
|
|
1453
|
-
"packageName": "@teambit/legacy/dist/consumer"
|
|
1370
|
+
"name": "Consumer"
|
|
1454
1371
|
},
|
|
1455
1372
|
"isOptional": false,
|
|
1456
1373
|
"isSpread": false
|
|
@@ -1470,12 +1387,7 @@
|
|
|
1470
1387
|
"line": 65,
|
|
1471
1388
|
"character": 7
|
|
1472
1389
|
},
|
|
1473
|
-
"name": "ComponentID"
|
|
1474
|
-
"componentId": {
|
|
1475
|
-
"scope": "teambit.component",
|
|
1476
|
-
"name": "component-id",
|
|
1477
|
-
"version": "1.2.0"
|
|
1478
|
-
}
|
|
1390
|
+
"name": "ComponentID"
|
|
1479
1391
|
},
|
|
1480
1392
|
"isOptional": false,
|
|
1481
1393
|
"isSpread": false
|
|
@@ -1503,8 +1415,7 @@
|
|
|
1503
1415
|
"line": 66,
|
|
1504
1416
|
"character": 20
|
|
1505
1417
|
},
|
|
1506
|
-
"name": "ConsumerComponent"
|
|
1507
|
-
"packageName": "@teambit/legacy/dist/consumer/component"
|
|
1418
|
+
"name": "ConsumerComponent"
|
|
1508
1419
|
},
|
|
1509
1420
|
{
|
|
1510
1421
|
"__schema": "LiteralTypeSchema",
|
|
@@ -1552,11 +1463,7 @@
|
|
|
1552
1463
|
"line": 67,
|
|
1553
1464
|
"character": 17
|
|
1554
1465
|
},
|
|
1555
|
-
"name": "MergeResultsThreeWay"
|
|
1556
|
-
"componentId": {
|
|
1557
|
-
"scope": "teambit.component",
|
|
1558
|
-
"name": "merging"
|
|
1559
|
-
}
|
|
1466
|
+
"name": "MergeResultsThreeWay"
|
|
1560
1467
|
},
|
|
1561
1468
|
{
|
|
1562
1469
|
"__schema": "LiteralTypeSchema",
|
|
@@ -1672,11 +1579,7 @@
|
|
|
1672
1579
|
"line": 125,
|
|
1673
1580
|
"character": 16
|
|
1674
1581
|
},
|
|
1675
|
-
"name": "FilesStatus"
|
|
1676
|
-
"componentId": {
|
|
1677
|
-
"scope": "teambit.component",
|
|
1678
|
-
"name": "merging"
|
|
1679
|
-
}
|
|
1582
|
+
"name": "FilesStatus"
|
|
1680
1583
|
},
|
|
1681
1584
|
"isOptional": false,
|
|
1682
1585
|
"isSpread": false
|
|
@@ -1696,8 +1599,7 @@
|
|
|
1696
1599
|
"line": 126,
|
|
1697
1600
|
"character": 13
|
|
1698
1601
|
},
|
|
1699
|
-
"name": "Consumer"
|
|
1700
|
-
"packageName": "@teambit/legacy/dist/consumer"
|
|
1602
|
+
"name": "Consumer"
|
|
1701
1603
|
},
|
|
1702
1604
|
"isOptional": false,
|
|
1703
1605
|
"isSpread": false
|
|
@@ -1717,8 +1619,7 @@
|
|
|
1717
1619
|
"line": 127,
|
|
1718
1620
|
"character": 21
|
|
1719
1621
|
},
|
|
1720
|
-
"name": "ConsumerComponent"
|
|
1721
|
-
"packageName": "@teambit/legacy/dist/consumer/component"
|
|
1622
|
+
"name": "ConsumerComponent"
|
|
1722
1623
|
},
|
|
1723
1624
|
"isOptional": true,
|
|
1724
1625
|
"isSpread": false
|
|
@@ -1779,8 +1680,7 @@
|
|
|
1779
1680
|
"line": 109,
|
|
1780
1681
|
"character": 41
|
|
1781
1682
|
},
|
|
1782
|
-
"name": "SourceFile"
|
|
1783
|
-
"packageName": "@teambit/legacy/dist/consumer/component/sources"
|
|
1683
|
+
"name": "SourceFile"
|
|
1784
1684
|
}
|
|
1785
1685
|
},
|
|
1786
1686
|
"isOptional": false,
|
|
@@ -1801,11 +1701,7 @@
|
|
|
1801
1701
|
"line": 109,
|
|
1802
1702
|
"character": 68
|
|
1803
1703
|
},
|
|
1804
|
-
"name": "FilesStatus"
|
|
1805
|
-
"componentId": {
|
|
1806
|
-
"scope": "teambit.component",
|
|
1807
|
-
"name": "merging"
|
|
1808
|
-
}
|
|
1704
|
+
"name": "FilesStatus"
|
|
1809
1705
|
},
|
|
1810
1706
|
"isOptional": false,
|
|
1811
1707
|
"isSpread": false
|
|
@@ -1825,8 +1721,7 @@
|
|
|
1825
1721
|
"line": 109,
|
|
1826
1722
|
"character": 99
|
|
1827
1723
|
},
|
|
1828
|
-
"name": "ConsumerComponent"
|
|
1829
|
-
"packageName": "@teambit/legacy/dist/consumer/component"
|
|
1724
|
+
"name": "ConsumerComponent"
|
|
1830
1725
|
},
|
|
1831
1726
|
"isOptional": true,
|
|
1832
1727
|
"isSpread": false
|
|
@@ -1973,11 +1868,7 @@
|
|
|
1973
1868
|
"line": 32,
|
|
1974
1869
|
"character": 18
|
|
1975
1870
|
},
|
|
1976
|
-
"name": "MergeResultsThreeWay"
|
|
1977
|
-
"componentId": {
|
|
1978
|
-
"scope": "teambit.component",
|
|
1979
|
-
"name": "merging"
|
|
1980
|
-
}
|
|
1871
|
+
"name": "MergeResultsThreeWay"
|
|
1981
1872
|
},
|
|
1982
1873
|
{
|
|
1983
1874
|
"__schema": "LiteralTypeSchema",
|
|
@@ -2048,8 +1939,7 @@
|
|
|
2048
1939
|
"line": 23,
|
|
2049
1940
|
"character": 22
|
|
2050
1941
|
},
|
|
2051
|
-
"name": "ConsumerComponent"
|
|
2052
|
-
"packageName": "@teambit/legacy/dist/consumer/component"
|
|
1942
|
+
"name": "ConsumerComponent"
|
|
2053
1943
|
},
|
|
2054
1944
|
"isOptional": true
|
|
2055
1945
|
},
|
|
@@ -2069,8 +1959,7 @@
|
|
|
2069
1959
|
"line": 24,
|
|
2070
1960
|
"character": 24
|
|
2071
1961
|
},
|
|
2072
|
-
"name": "Version"
|
|
2073
|
-
"packageName": "@teambit/legacy/dist/scope/models/version"
|
|
1962
|
+
"name": "Version"
|
|
2074
1963
|
},
|
|
2075
1964
|
"isOptional": true
|
|
2076
1965
|
},
|
|
@@ -2228,8 +2117,7 @@
|
|
|
2228
2117
|
"line": 37,
|
|
2229
2118
|
"character": 15
|
|
2230
2119
|
},
|
|
2231
|
-
"name": "ConsumerComponent"
|
|
2232
|
-
"packageName": "@teambit/legacy/dist/consumer/component"
|
|
2120
|
+
"name": "ConsumerComponent"
|
|
2233
2121
|
},
|
|
2234
2122
|
"isOptional": true
|
|
2235
2123
|
},
|
|
@@ -2249,8 +2137,7 @@
|
|
|
2249
2137
|
"line": 39,
|
|
2250
2138
|
"character": 23
|
|
2251
2139
|
},
|
|
2252
|
-
"name": "ConsumerComponent"
|
|
2253
|
-
"packageName": "@teambit/legacy/dist/consumer/component"
|
|
2140
|
+
"name": "ConsumerComponent"
|
|
2254
2141
|
},
|
|
2255
2142
|
"isOptional": true
|
|
2256
2143
|
}
|
|
@@ -2291,11 +2178,7 @@
|
|
|
2291
2178
|
"line": 148,
|
|
2292
2179
|
"character": 20
|
|
2293
2180
|
},
|
|
2294
|
-
"name": "ApplyVersionResults"
|
|
2295
|
-
"componentId": {
|
|
2296
|
-
"scope": "teambit.component",
|
|
2297
|
-
"name": "merging"
|
|
2298
|
-
}
|
|
2181
|
+
"name": "ApplyVersionResults"
|
|
2299
2182
|
},
|
|
2300
2183
|
"isOptional": false,
|
|
2301
2184
|
"isSpread": false
|
|
@@ -2427,12 +2310,7 @@
|
|
|
2427
2310
|
"line": 30,
|
|
2428
2311
|
"character": 9
|
|
2429
2312
|
},
|
|
2430
|
-
"name": "ComponentID"
|
|
2431
|
-
"componentId": {
|
|
2432
|
-
"scope": "teambit.component",
|
|
2433
|
-
"name": "component-id",
|
|
2434
|
-
"version": "1.2.0"
|
|
2435
|
-
}
|
|
2313
|
+
"name": "ComponentID"
|
|
2436
2314
|
}
|
|
2437
2315
|
},
|
|
2438
2316
|
"isOptional": true
|
|
@@ -2553,11 +2431,7 @@
|
|
|
2553
2431
|
"line": 36,
|
|
2554
2432
|
"character": 19
|
|
2555
2433
|
},
|
|
2556
|
-
"name": "MergeStrategy"
|
|
2557
|
-
"componentId": {
|
|
2558
|
-
"scope": "teambit.component",
|
|
2559
|
-
"name": "merging"
|
|
2560
|
-
}
|
|
2434
|
+
"name": "MergeStrategy"
|
|
2561
2435
|
},
|
|
2562
2436
|
"isOptional": true
|
|
2563
2437
|
},
|
|
@@ -2737,8 +2611,7 @@
|
|
|
2737
2611
|
"line": 45,
|
|
2738
2612
|
"character": 10
|
|
2739
2613
|
},
|
|
2740
|
-
"name": "Lane"
|
|
2741
|
-
"packageName": "@teambit/legacy/dist/scope/models"
|
|
2614
|
+
"name": "Lane"
|
|
2742
2615
|
},
|
|
2743
2616
|
"isOptional": true
|
|
2744
2617
|
},
|
|
@@ -2785,12 +2658,7 @@
|
|
|
2785
2658
|
"line": 47,
|
|
2786
2659
|
"character": 18
|
|
2787
2660
|
},
|
|
2788
|
-
"name": "ComponentID"
|
|
2789
|
-
"componentId": {
|
|
2790
|
-
"scope": "teambit.component",
|
|
2791
|
-
"name": "component-id",
|
|
2792
|
-
"version": "1.2.0"
|
|
2793
|
-
}
|
|
2661
|
+
"name": "ComponentID"
|
|
2794
2662
|
}
|
|
2795
2663
|
},
|
|
2796
2664
|
"isOptional": true
|
|
@@ -3034,11 +2902,7 @@
|
|
|
3034
2902
|
"line": 64,
|
|
3035
2903
|
"character": 24
|
|
3036
2904
|
},
|
|
3037
|
-
"name": "Workspace"
|
|
3038
|
-
"componentId": {
|
|
3039
|
-
"scope": "teambit.workspace",
|
|
3040
|
-
"name": "workspace"
|
|
3041
|
-
}
|
|
2905
|
+
"name": "Workspace"
|
|
3042
2906
|
},
|
|
3043
2907
|
"isOptional": false,
|
|
3044
2908
|
"isSpread": false
|
|
@@ -3058,11 +2922,7 @@
|
|
|
3058
2922
|
"line": 65,
|
|
3059
2923
|
"character": 21
|
|
3060
2924
|
},
|
|
3061
|
-
"name": "Logger"
|
|
3062
|
-
"componentId": {
|
|
3063
|
-
"scope": "teambit.harmony",
|
|
3064
|
-
"name": "logger"
|
|
3065
|
-
}
|
|
2925
|
+
"name": "Logger"
|
|
3066
2926
|
},
|
|
3067
2927
|
"isOptional": false,
|
|
3068
2928
|
"isSpread": false
|
|
@@ -3082,11 +2942,7 @@
|
|
|
3082
2942
|
"line": 66,
|
|
3083
2943
|
"character": 30
|
|
3084
2944
|
},
|
|
3085
|
-
"name": "ComponentWriterMain"
|
|
3086
|
-
"componentId": {
|
|
3087
|
-
"scope": "teambit.component",
|
|
3088
|
-
"name": "component-writer"
|
|
3089
|
-
}
|
|
2945
|
+
"name": "ComponentWriterMain"
|
|
3090
2946
|
},
|
|
3091
2947
|
"isOptional": false,
|
|
3092
2948
|
"isSpread": false
|
|
@@ -3106,11 +2962,7 @@
|
|
|
3106
2962
|
"line": 67,
|
|
3107
2963
|
"character": 23
|
|
3108
2964
|
},
|
|
3109
|
-
"name": "ImporterMain"
|
|
3110
|
-
"componentId": {
|
|
3111
|
-
"scope": "teambit.scope",
|
|
3112
|
-
"name": "importer"
|
|
3113
|
-
}
|
|
2965
|
+
"name": "ImporterMain"
|
|
3114
2966
|
},
|
|
3115
2967
|
"isOptional": false,
|
|
3116
2968
|
"isSpread": false
|
|
@@ -3130,11 +2982,7 @@
|
|
|
3130
2982
|
"line": 68,
|
|
3131
2983
|
"character": 21
|
|
3132
2984
|
},
|
|
3133
|
-
"name": "RemoveMain"
|
|
3134
|
-
"componentId": {
|
|
3135
|
-
"scope": "teambit.component",
|
|
3136
|
-
"name": "remove"
|
|
3137
|
-
}
|
|
2985
|
+
"name": "RemoveMain"
|
|
3138
2986
|
},
|
|
3139
2987
|
"isOptional": false,
|
|
3140
2988
|
"isSpread": false
|
|
@@ -3198,11 +3046,7 @@
|
|
|
3198
3046
|
"line": 71,
|
|
3199
3047
|
"character": 57
|
|
3200
3048
|
},
|
|
3201
|
-
"name": "ApplyVersionResults"
|
|
3202
|
-
"componentId": {
|
|
3203
|
-
"scope": "teambit.component",
|
|
3204
|
-
"name": "merging"
|
|
3205
|
-
}
|
|
3049
|
+
"name": "ApplyVersionResults"
|
|
3206
3050
|
}
|
|
3207
3051
|
]
|
|
3208
3052
|
},
|
|
@@ -3283,12 +3127,7 @@
|
|
|
3283
3127
|
"line": 206,
|
|
3284
3128
|
"character": 73
|
|
3285
3129
|
},
|
|
3286
|
-
"name": "ComponentID"
|
|
3287
|
-
"componentId": {
|
|
3288
|
-
"scope": "teambit.component",
|
|
3289
|
-
"name": "component-id",
|
|
3290
|
-
"version": "1.2.0"
|
|
3291
|
-
}
|
|
3130
|
+
"name": "ComponentID"
|
|
3292
3131
|
}
|
|
3293
3132
|
},
|
|
3294
3133
|
{
|
|
@@ -3375,11 +3214,7 @@
|
|
|
3375
3214
|
"line": 233,
|
|
3376
3215
|
"character": 94
|
|
3377
3216
|
},
|
|
3378
|
-
"name": "ApplyVersionResults"
|
|
3379
|
-
"componentId": {
|
|
3380
|
-
"scope": "teambit.component",
|
|
3381
|
-
"name": "merging"
|
|
3382
|
-
}
|
|
3217
|
+
"name": "ApplyVersionResults"
|
|
3383
3218
|
}
|
|
3384
3219
|
]
|
|
3385
3220
|
},
|
|
@@ -3483,11 +3318,7 @@
|
|
|
3483
3318
|
"line": 525,
|
|
3484
3319
|
"character": 5
|
|
3485
3320
|
},
|
|
3486
|
-
"name": "CLIMain"
|
|
3487
|
-
"componentId": {
|
|
3488
|
-
"scope": "teambit.harmony",
|
|
3489
|
-
"name": "cli"
|
|
3490
|
-
}
|
|
3321
|
+
"name": "CLIMain"
|
|
3491
3322
|
},
|
|
3492
3323
|
{
|
|
3493
3324
|
"__schema": "TypeRefSchema",
|
|
@@ -3496,11 +3327,7 @@
|
|
|
3496
3327
|
"line": 526,
|
|
3497
3328
|
"character": 5
|
|
3498
3329
|
},
|
|
3499
|
-
"name": "Workspace"
|
|
3500
|
-
"componentId": {
|
|
3501
|
-
"scope": "teambit.workspace",
|
|
3502
|
-
"name": "workspace"
|
|
3503
|
-
}
|
|
3330
|
+
"name": "Workspace"
|
|
3504
3331
|
},
|
|
3505
3332
|
{
|
|
3506
3333
|
"__schema": "TypeRefSchema",
|
|
@@ -3509,11 +3336,7 @@
|
|
|
3509
3336
|
"line": 527,
|
|
3510
3337
|
"character": 5
|
|
3511
3338
|
},
|
|
3512
|
-
"name": "LoggerMain"
|
|
3513
|
-
"componentId": {
|
|
3514
|
-
"scope": "teambit.harmony",
|
|
3515
|
-
"name": "logger"
|
|
3516
|
-
}
|
|
3339
|
+
"name": "LoggerMain"
|
|
3517
3340
|
},
|
|
3518
3341
|
{
|
|
3519
3342
|
"__schema": "TypeRefSchema",
|
|
@@ -3522,11 +3345,7 @@
|
|
|
3522
3345
|
"line": 528,
|
|
3523
3346
|
"character": 5
|
|
3524
3347
|
},
|
|
3525
|
-
"name": "ComponentWriterMain"
|
|
3526
|
-
"componentId": {
|
|
3527
|
-
"scope": "teambit.component",
|
|
3528
|
-
"name": "component-writer"
|
|
3529
|
-
}
|
|
3348
|
+
"name": "ComponentWriterMain"
|
|
3530
3349
|
},
|
|
3531
3350
|
{
|
|
3532
3351
|
"__schema": "TypeRefSchema",
|
|
@@ -3535,11 +3354,7 @@
|
|
|
3535
3354
|
"line": 529,
|
|
3536
3355
|
"character": 5
|
|
3537
3356
|
},
|
|
3538
|
-
"name": "ImporterMain"
|
|
3539
|
-
"componentId": {
|
|
3540
|
-
"scope": "teambit.scope",
|
|
3541
|
-
"name": "importer"
|
|
3542
|
-
}
|
|
3357
|
+
"name": "ImporterMain"
|
|
3543
3358
|
},
|
|
3544
3359
|
{
|
|
3545
3360
|
"__schema": "TypeRefSchema",
|
|
@@ -3548,11 +3363,7 @@
|
|
|
3548
3363
|
"line": 530,
|
|
3549
3364
|
"character": 5
|
|
3550
3365
|
},
|
|
3551
|
-
"name": "RemoveMain"
|
|
3552
|
-
"componentId": {
|
|
3553
|
-
"scope": "teambit.component",
|
|
3554
|
-
"name": "remove"
|
|
3555
|
-
}
|
|
3366
|
+
"name": "RemoveMain"
|
|
3556
3367
|
}
|
|
3557
3368
|
]
|
|
3558
3369
|
},
|
|
@@ -3680,8 +3491,7 @@
|
|
|
3680
3491
|
"line": 23,
|
|
3681
3492
|
"character": 22
|
|
3682
3493
|
},
|
|
3683
|
-
"name": "ConsumerComponent"
|
|
3684
|
-
"packageName": "@teambit/legacy/dist/consumer/component"
|
|
3494
|
+
"name": "ConsumerComponent"
|
|
3685
3495
|
},
|
|
3686
3496
|
"isOptional": true
|
|
3687
3497
|
},
|
|
@@ -3701,8 +3511,7 @@
|
|
|
3701
3511
|
"line": 24,
|
|
3702
3512
|
"character": 24
|
|
3703
3513
|
},
|
|
3704
|
-
"name": "Version"
|
|
3705
|
-
"packageName": "@teambit/legacy/dist/scope/models/version"
|
|
3514
|
+
"name": "Version"
|
|
3706
3515
|
},
|
|
3707
3516
|
"isOptional": true
|
|
3708
3517
|
},
|
|
@@ -3852,11 +3661,7 @@
|
|
|
3852
3661
|
"line": 32,
|
|
3853
3662
|
"character": 18
|
|
3854
3663
|
},
|
|
3855
|
-
"name": "MergeResultsThreeWay"
|
|
3856
|
-
"componentId": {
|
|
3857
|
-
"scope": "teambit.component",
|
|
3858
|
-
"name": "merging"
|
|
3859
|
-
}
|
|
3664
|
+
"name": "MergeResultsThreeWay"
|
|
3860
3665
|
},
|
|
3861
3666
|
{
|
|
3862
3667
|
"__schema": "LiteralTypeSchema",
|
|
@@ -3942,8 +3747,7 @@
|
|
|
3942
3747
|
"line": 37,
|
|
3943
3748
|
"character": 15
|
|
3944
3749
|
},
|
|
3945
|
-
"name": "ConsumerComponent"
|
|
3946
|
-
"packageName": "@teambit/legacy/dist/consumer/component"
|
|
3750
|
+
"name": "ConsumerComponent"
|
|
3947
3751
|
},
|
|
3948
3752
|
"isOptional": true
|
|
3949
3753
|
},
|
|
@@ -3963,8 +3767,7 @@
|
|
|
3963
3767
|
"line": 39,
|
|
3964
3768
|
"character": 23
|
|
3965
3769
|
},
|
|
3966
|
-
"name": "ConsumerComponent"
|
|
3967
|
-
"packageName": "@teambit/legacy/dist/consumer/component"
|
|
3770
|
+
"name": "ConsumerComponent"
|
|
3968
3771
|
},
|
|
3969
3772
|
"isOptional": true
|
|
3970
3773
|
}
|
|
@@ -4007,8 +3810,7 @@
|
|
|
4007
3810
|
"line": 64,
|
|
4008
3811
|
"character": 13
|
|
4009
3812
|
},
|
|
4010
|
-
"name": "Consumer"
|
|
4011
|
-
"packageName": "@teambit/legacy/dist/consumer"
|
|
3813
|
+
"name": "Consumer"
|
|
4012
3814
|
},
|
|
4013
3815
|
"isOptional": false,
|
|
4014
3816
|
"isSpread": false
|
|
@@ -4028,12 +3830,7 @@
|
|
|
4028
3830
|
"line": 65,
|
|
4029
3831
|
"character": 7
|
|
4030
3832
|
},
|
|
4031
|
-
"name": "ComponentID"
|
|
4032
|
-
"componentId": {
|
|
4033
|
-
"scope": "teambit.component",
|
|
4034
|
-
"name": "component-id",
|
|
4035
|
-
"version": "1.2.0"
|
|
4036
|
-
}
|
|
3833
|
+
"name": "ComponentID"
|
|
4037
3834
|
},
|
|
4038
3835
|
"isOptional": false,
|
|
4039
3836
|
"isSpread": false
|
|
@@ -4061,8 +3858,7 @@
|
|
|
4061
3858
|
"line": 66,
|
|
4062
3859
|
"character": 20
|
|
4063
3860
|
},
|
|
4064
|
-
"name": "ConsumerComponent"
|
|
4065
|
-
"packageName": "@teambit/legacy/dist/consumer/component"
|
|
3861
|
+
"name": "ConsumerComponent"
|
|
4066
3862
|
},
|
|
4067
3863
|
{
|
|
4068
3864
|
"__schema": "LiteralTypeSchema",
|
|
@@ -4110,11 +3906,7 @@
|
|
|
4110
3906
|
"line": 67,
|
|
4111
3907
|
"character": 17
|
|
4112
3908
|
},
|
|
4113
|
-
"name": "MergeResultsThreeWay"
|
|
4114
|
-
"componentId": {
|
|
4115
|
-
"scope": "teambit.component",
|
|
4116
|
-
"name": "merging"
|
|
4117
|
-
}
|
|
3909
|
+
"name": "MergeResultsThreeWay"
|
|
4118
3910
|
},
|
|
4119
3911
|
{
|
|
4120
3912
|
"__schema": "LiteralTypeSchema",
|
|
@@ -4217,8 +4009,7 @@
|
|
|
4217
4009
|
"line": 109,
|
|
4218
4010
|
"character": 41
|
|
4219
4011
|
},
|
|
4220
|
-
"name": "SourceFile"
|
|
4221
|
-
"packageName": "@teambit/legacy/dist/consumer/component/sources"
|
|
4012
|
+
"name": "SourceFile"
|
|
4222
4013
|
}
|
|
4223
4014
|
},
|
|
4224
4015
|
"isOptional": false,
|
|
@@ -4239,11 +4030,7 @@
|
|
|
4239
4030
|
"line": 109,
|
|
4240
4031
|
"character": 68
|
|
4241
4032
|
},
|
|
4242
|
-
"name": "FilesStatus"
|
|
4243
|
-
"componentId": {
|
|
4244
|
-
"scope": "teambit.component",
|
|
4245
|
-
"name": "merging"
|
|
4246
|
-
}
|
|
4033
|
+
"name": "FilesStatus"
|
|
4247
4034
|
},
|
|
4248
4035
|
"isOptional": false,
|
|
4249
4036
|
"isSpread": false
|
|
@@ -4263,8 +4050,7 @@
|
|
|
4263
4050
|
"line": 109,
|
|
4264
4051
|
"character": 99
|
|
4265
4052
|
},
|
|
4266
|
-
"name": "ConsumerComponent"
|
|
4267
|
-
"packageName": "@teambit/legacy/dist/consumer/component"
|
|
4053
|
+
"name": "ConsumerComponent"
|
|
4268
4054
|
},
|
|
4269
4055
|
"isOptional": true,
|
|
4270
4056
|
"isSpread": false
|
|
@@ -4319,11 +4105,7 @@
|
|
|
4319
4105
|
"line": 125,
|
|
4320
4106
|
"character": 16
|
|
4321
4107
|
},
|
|
4322
|
-
"name": "FilesStatus"
|
|
4323
|
-
"componentId": {
|
|
4324
|
-
"scope": "teambit.component",
|
|
4325
|
-
"name": "merging"
|
|
4326
|
-
}
|
|
4108
|
+
"name": "FilesStatus"
|
|
4327
4109
|
},
|
|
4328
4110
|
"isOptional": false,
|
|
4329
4111
|
"isSpread": false
|
|
@@ -4343,8 +4125,7 @@
|
|
|
4343
4125
|
"line": 126,
|
|
4344
4126
|
"character": 13
|
|
4345
4127
|
},
|
|
4346
|
-
"name": "Consumer"
|
|
4347
|
-
"packageName": "@teambit/legacy/dist/consumer"
|
|
4128
|
+
"name": "Consumer"
|
|
4348
4129
|
},
|
|
4349
4130
|
"isOptional": false,
|
|
4350
4131
|
"isSpread": false
|
|
@@ -4364,8 +4145,7 @@
|
|
|
4364
4145
|
"line": 127,
|
|
4365
4146
|
"character": 21
|
|
4366
4147
|
},
|
|
4367
|
-
"name": "ConsumerComponent"
|
|
4368
|
-
"packageName": "@teambit/legacy/dist/consumer/component"
|
|
4148
|
+
"name": "ConsumerComponent"
|
|
4369
4149
|
},
|
|
4370
4150
|
"isOptional": true,
|
|
4371
4151
|
"isSpread": false
|
|
@@ -4428,8 +4208,7 @@
|
|
|
4428
4208
|
"line": 157,
|
|
4429
4209
|
"character": 19
|
|
4430
4210
|
},
|
|
4431
|
-
"name": "SourceFile"
|
|
4432
|
-
"packageName": "@teambit/legacy/dist/consumer/component/sources"
|
|
4211
|
+
"name": "SourceFile"
|
|
4433
4212
|
}
|
|
4434
4213
|
},
|
|
4435
4214
|
"isOptional": false,
|
|
@@ -4450,11 +4229,7 @@
|
|
|
4450
4229
|
"line": 158,
|
|
4451
4230
|
"character": 17
|
|
4452
4231
|
},
|
|
4453
|
-
"name": "MergeResultsThreeWay"
|
|
4454
|
-
"componentId": {
|
|
4455
|
-
"scope": "teambit.component",
|
|
4456
|
-
"name": "merging"
|
|
4457
|
-
}
|
|
4232
|
+
"name": "MergeResultsThreeWay"
|
|
4458
4233
|
},
|
|
4459
4234
|
"isOptional": false,
|
|
4460
4235
|
"isSpread": false
|
|
@@ -4482,11 +4257,7 @@
|
|
|
4482
4257
|
"line": 159,
|
|
4483
4258
|
"character": 18
|
|
4484
4259
|
},
|
|
4485
|
-
"name": "MergeStrategy"
|
|
4486
|
-
"componentId": {
|
|
4487
|
-
"scope": "teambit.component",
|
|
4488
|
-
"name": "merging"
|
|
4489
|
-
}
|
|
4260
|
+
"name": "MergeStrategy"
|
|
4490
4261
|
},
|
|
4491
4262
|
{
|
|
4492
4263
|
"__schema": "LiteralTypeSchema",
|
|
@@ -4583,8 +4354,7 @@
|
|
|
4583
4354
|
"line": 160,
|
|
4584
4355
|
"character": 55
|
|
4585
4356
|
},
|
|
4586
|
-
"name": "SourceFile"
|
|
4587
|
-
"packageName": "@teambit/legacy/dist/consumer/component/sources"
|
|
4357
|
+
"name": "SourceFile"
|
|
4588
4358
|
}
|
|
4589
4359
|
},
|
|
4590
4360
|
"isOptional": false
|
|
@@ -5044,11 +4814,7 @@
|
|
|
5044
4814
|
"line": 92,
|
|
5045
4815
|
"character": 26
|
|
5046
4816
|
},
|
|
5047
|
-
"name": "MergeStrategy"
|
|
5048
|
-
"componentId": {
|
|
5049
|
-
"scope": "teambit.component",
|
|
5050
|
-
"name": "merging"
|
|
5051
|
-
}
|
|
4817
|
+
"name": "MergeStrategy"
|
|
5052
4818
|
},
|
|
5053
4819
|
"isOptional": true
|
|
5054
4820
|
},
|
|
@@ -5252,11 +5018,7 @@
|
|
|
5252
5018
|
"line": 92,
|
|
5253
5019
|
"character": 26
|
|
5254
5020
|
},
|
|
5255
|
-
"name": "MergeStrategy"
|
|
5256
|
-
"componentId": {
|
|
5257
|
-
"scope": "teambit.component",
|
|
5258
|
-
"name": "merging"
|
|
5259
|
-
}
|
|
5021
|
+
"name": "MergeStrategy"
|
|
5260
5022
|
},
|
|
5261
5023
|
"isOptional": true
|
|
5262
5024
|
},
|
|
@@ -5421,7 +5183,7 @@
|
|
|
5421
5183
|
"_legacy": {
|
|
5422
5184
|
"scope": "teambit.component",
|
|
5423
5185
|
"name": "checkout",
|
|
5424
|
-
"version": "1.0.
|
|
5186
|
+
"version": "1.0.331"
|
|
5425
5187
|
},
|
|
5426
5188
|
"_scope": "teambit.component"
|
|
5427
5189
|
}
|
|
@@ -5454,11 +5216,7 @@
|
|
|
5454
5216
|
"line": 148,
|
|
5455
5217
|
"character": 20
|
|
5456
5218
|
},
|
|
5457
|
-
"name": "ApplyVersionResults"
|
|
5458
|
-
"componentId": {
|
|
5459
|
-
"scope": "teambit.component",
|
|
5460
|
-
"name": "merging"
|
|
5461
|
-
}
|
|
5219
|
+
"name": "ApplyVersionResults"
|
|
5462
5220
|
},
|
|
5463
5221
|
"isOptional": false,
|
|
5464
5222
|
"isSpread": false
|
|
@@ -5524,7 +5282,7 @@
|
|
|
5524
5282
|
"componentId": {
|
|
5525
5283
|
"scope": "teambit.component",
|
|
5526
5284
|
"name": "checkout",
|
|
5527
|
-
"version": "1.0.
|
|
5285
|
+
"version": "1.0.331"
|
|
5528
5286
|
},
|
|
5529
5287
|
"taggedModuleExports": []
|
|
5530
5288
|
}
|
package/dist/checkout-version.js
CHANGED
|
@@ -15,9 +15,9 @@ function path() {
|
|
|
15
15
|
};
|
|
16
16
|
return data;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
const data = require("@teambit/legacy
|
|
20
|
-
|
|
18
|
+
function _legacy() {
|
|
19
|
+
const data = require("@teambit/legacy.utils");
|
|
20
|
+
_legacy = function () {
|
|
21
21
|
return data;
|
|
22
22
|
};
|
|
23
23
|
return data;
|
|
@@ -100,7 +100,7 @@ mergeResults, checkoutProps) {
|
|
|
100
100
|
// otherwise it's impossible to have conflicts
|
|
101
101
|
if (!componentFromFS) throw new Error(`applyVersion expect to get componentFromFS for ${id.toString()}`);
|
|
102
102
|
componentFromFS.files.forEach(file => {
|
|
103
|
-
filesStatus[(0,
|
|
103
|
+
filesStatus[(0, _legacy().pathNormalizeToLinux)(file.relative)] = _merging().FileStatus.unchanged;
|
|
104
104
|
});
|
|
105
105
|
consumer.bitMap.updateComponentId(id);
|
|
106
106
|
return {
|
|
@@ -142,7 +142,7 @@ function updateFileStatus(files, filesStatus, componentFromFS) {
|
|
|
142
142
|
const fileFromFs = componentFromFS?.files.find(f => f.relative === file.relative);
|
|
143
143
|
const areFilesEqual = fileFromFs && Buffer.compare(fileFromFs.contents, file.contents) === 0;
|
|
144
144
|
// @ts-ignore
|
|
145
|
-
filesStatus[(0,
|
|
145
|
+
filesStatus[(0, _legacy().pathNormalizeToLinux)(file.relative)] = areFilesEqual ? _merging().FileStatus.unchanged : _merging().FileStatus.updated;
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
|
|
@@ -163,7 +163,7 @@ async function removeFilesIfNeeded(filesStatus, consumer, componentFromFS) {
|
|
|
163
163
|
const filePathsFromFS = componentFromFS.files || [];
|
|
164
164
|
const dataToPersist = new (_dataToPersist().default)();
|
|
165
165
|
filePathsFromFS.forEach(file => {
|
|
166
|
-
const filename = (0,
|
|
166
|
+
const filename = (0, _legacy().pathNormalizeToLinux)(file.relative);
|
|
167
167
|
if (!filesStatus[filename]) {
|
|
168
168
|
// @ts-ignore todo: typescript has a good point here. it should be the string "removed", not chalk.green(removed).
|
|
169
169
|
filesStatus[filename] = _merging().FileStatus.removed;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["path","data","_interopRequireWildcard","require","_path2","_dataToPersist","_interopRequireDefault","_removePath","_bitError","_chalk","_merging","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","value","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","applyVersion","consumer","id","componentFromFS","mergeResults","checkoutProps","isLane","Error","toString","mergeStrategy","forceOurs","filesStatus","hasConflicts","MergeOptions","ours","files","file","pathNormalizeToLinux","relative","FileStatus","unchanged","bitMap","updateComponentId","applyVersionResult","component","loadComponentFromModelImportIfNeeded","componentMap","BitError","updateFileStatus","undefined","removeFilesIfNeeded","modifiedStatus","modifiedFiles","applyModifiedVersion","fileFromFs","find","f","areFilesEqual","Buffer","compare","contents","updated","isExistOnFs","getComponentIdIfExist","ignoreVersion","filePathsFromFS","dataToPersist","DataToPersist","filename","removed","removePath","RemovePath","persistAllToFS","componentFiles","map","clone","manual","filePath","normalize","foundFile","componentFile","conflict","from","output","merged","isBinaryConflict","fsFile","binaryConflict","addFiles","m","added","deletedConflictFiles","removeFiles","remainDeletedFiles","remainDeleted","deletedConflict","overrideFiles","overridden","updatedFiles","content","throwForFailures","allComponentsStatus","failedComponents","c","unchangedMessage","unchangedLegitimately","failureMsgs","failedComponent","chalk","bold","red","join"],"sources":["checkout-version.ts"],"sourcesContent":["import * as path from 'path';\nimport { Consumer } from '@teambit/legacy/dist/consumer';\nimport { ComponentID } from '@teambit/component-id';\nimport Version from '@teambit/legacy/dist/scope/models/version';\nimport { SourceFile } from '@teambit/legacy/dist/consumer/component/sources';\nimport { pathNormalizeToLinux, PathOsBased } from '@teambit/legacy/dist/utils/path';\nimport DataToPersist from '@teambit/legacy/dist/consumer/component/sources/data-to-persist';\nimport RemovePath from '@teambit/legacy/dist/consumer/component/sources/remove-path';\nimport ConsumerComponent from '@teambit/legacy/dist/consumer/component';\nimport { BitError } from '@teambit/bit-error';\nimport chalk from 'chalk';\nimport {\n ApplyVersionResult,\n FilesStatus,\n FileStatus,\n MergeOptions,\n MergeStrategy,\n MergeResultsThreeWay,\n} from '@teambit/merging';\nimport { CheckoutProps } from './checkout.main.runtime';\n\nexport type ComponentStatusBase = {\n currentComponent?: ConsumerComponent;\n componentFromModel?: Version;\n id: ComponentID;\n shouldBeRemoved?: boolean; // in case the component is soft-removed, it should be removed from the workspace\n unchangedMessage?: string; // this gets populated either upon skip or failure.\n unchangedLegitimately?: boolean; // true for skipped legitimately (e.g. already up to date). false for failure.\n};\n\nexport type ComponentStatus = ComponentStatusBase & {\n mergeResults?: MergeResultsThreeWay | null | undefined;\n};\n\nexport type ApplyVersionWithComps = {\n applyVersionResult: ApplyVersionResult;\n component?: ConsumerComponent;\n // in case the component needs to be written to the filesystem, this is the component to write.\n legacyCompToWrite?: ConsumerComponent;\n};\n\n/**\n * This function optionally returns \"component\" object. If it returns, it means it needs to be written to the filesystem.\n * Otherwise, it means the component is already up to date and no need to write it.\n *\n * If no need to change anything (ours), then don't return the component object.\n * Otherwise, either return the component object as is (if no conflicts or \"theirs\"), or change the files in this\n * component object. Later, this component object is written to the filesystem.\n *\n * 1) when the files are modified with conflicts and the strategy is \"ours\", or forceOurs was used, leave the FS as is.\n *\n * 2) when the files are modified with conflicts and the strategy is \"theirs\", or forceTheirs was used, write the\n * component according to \"component\" object\n *\n * 3) when files are modified with no conflict or files are modified with conflicts and the\n * strategy is manual, load the component according to id.version and update component.files.\n * applyModifiedVersion() docs explains what files are updated/added.\n *\n * Side note:\n * Deleted file => if files are in used version but not in the modified one, no need to delete it. (similar to git).\n * Added file => if files are not in used version but in the modified one, they'll be under mergeResults.addFiles\n */\nexport async function applyVersion(\n consumer: Consumer,\n id: ComponentID,\n componentFromFS: ConsumerComponent | null | undefined, // it can be null only when isLanes is true\n mergeResults: MergeResultsThreeWay | null | undefined,\n checkoutProps: CheckoutProps\n): Promise<ApplyVersionWithComps> {\n if (!checkoutProps.isLane && !componentFromFS)\n throw new Error(`applyVersion expect to get componentFromFS for ${id.toString()}`);\n const { mergeStrategy, forceOurs } = checkoutProps;\n let filesStatus = {};\n if ((mergeResults?.hasConflicts && mergeStrategy === MergeOptions.ours) || forceOurs) {\n // even when isLane is true, the mergeResults is possible only when the component is on the filesystem\n // otherwise it's impossible to have conflicts\n if (!componentFromFS) throw new Error(`applyVersion expect to get componentFromFS for ${id.toString()}`);\n componentFromFS.files.forEach((file) => {\n filesStatus[pathNormalizeToLinux(file.relative)] = FileStatus.unchanged;\n });\n consumer.bitMap.updateComponentId(id);\n return { applyVersionResult: { id, filesStatus } };\n }\n const component = await consumer.loadComponentFromModelImportIfNeeded(id);\n const componentMap = componentFromFS && componentFromFS.componentMap;\n if (componentFromFS && !componentMap) throw new BitError('applyVersion: componentMap was not found');\n\n const files = component.files;\n updateFileStatus(files, filesStatus, componentFromFS || undefined);\n\n await removeFilesIfNeeded(filesStatus, consumer, componentFromFS || undefined);\n\n if (mergeResults) {\n // update files according to the merge results\n const { filesStatus: modifiedStatus, modifiedFiles } = applyModifiedVersion(files, mergeResults, mergeStrategy);\n filesStatus = { ...filesStatus, ...modifiedStatus };\n component.files = modifiedFiles;\n }\n\n // in case of forceTheirs, the mergeResults is undefined, the \"component\" object is according to \"theirs\", so it'll work\n // expected. (later, it writes the component object).\n\n return {\n applyVersionResult: { id, filesStatus },\n component,\n };\n}\n\nexport function updateFileStatus(files: SourceFile[], filesStatus: FilesStatus, componentFromFS?: ConsumerComponent) {\n files.forEach((file) => {\n const fileFromFs = componentFromFS?.files.find((f) => f.relative === file.relative);\n const areFilesEqual = fileFromFs && Buffer.compare(fileFromFs.contents, file.contents) === 0;\n // @ts-ignore\n filesStatus[pathNormalizeToLinux(file.relative)] = areFilesEqual ? FileStatus.unchanged : FileStatus.updated;\n });\n}\n\n/**\n * when files exist on the filesystem but not on the checked out versions, they need to be deleted.\n * without this function, these files would be left on the filesystem. (we don't delete the comp-dir before writing).\n * this needs to be done *before* the component is written to the filesystem, otherwise, it won't work when a file\n * has a case change. e.g. from uppercase to lowercase. (see merge-lane.e2e 'renaming files from uppercase to lowercase').\n */\nexport async function removeFilesIfNeeded(\n filesStatus: FilesStatus,\n consumer: Consumer,\n componentFromFS?: ConsumerComponent\n) {\n if (!componentFromFS) return;\n // @todo: if the component is not in the FS, it should be passed as undefined here.\n // in the case this is coming from merge-lane, it's sometimes populated from the scope.\n const isExistOnFs = consumer.bitMap.getComponentIdIfExist(componentFromFS.id, { ignoreVersion: true });\n if (!isExistOnFs) return;\n const filePathsFromFS = componentFromFS.files || [];\n const dataToPersist = new DataToPersist();\n filePathsFromFS.forEach((file) => {\n const filename = pathNormalizeToLinux(file.relative);\n if (!filesStatus[filename]) {\n // @ts-ignore todo: typescript has a good point here. it should be the string \"removed\", not chalk.green(removed).\n filesStatus[filename] = FileStatus.removed;\n }\n if (filesStatus[filename] === FileStatus.removed) {\n dataToPersist.removePath(new RemovePath(file.path));\n }\n });\n await dataToPersist.persistAllToFS();\n}\n\n/**\n * relevant only when\n * 1) there is no conflict => add files from mergeResults: addFiles, overrideFiles and modifiedFiles.output.\n * 2) there is conflict and mergeStrategy is manual => add files from mergeResults: addFiles, overrideFiles and modifiedFiles.conflict.\n *\n * this function only updates the files content, it doesn't write the files\n */\nexport function applyModifiedVersion(\n componentFiles: SourceFile[],\n mergeResults: MergeResultsThreeWay,\n mergeStrategy: MergeStrategy | null | undefined\n): { filesStatus: Record<string, any>; modifiedFiles: SourceFile[] } {\n let modifiedFiles = componentFiles.map((file) => file.clone());\n const filesStatus = {};\n if (mergeResults.hasConflicts && mergeStrategy !== MergeOptions.manual) {\n return { filesStatus, modifiedFiles };\n }\n mergeResults.modifiedFiles.forEach((file) => {\n const filePath: PathOsBased = path.normalize(file.filePath);\n const foundFile = modifiedFiles.find((componentFile) => componentFile.relative === filePath);\n if (!foundFile) throw new BitError(`file ${filePath} not found`);\n if (file.conflict) {\n foundFile.contents = Buffer.from(file.conflict);\n filesStatus[file.filePath] = FileStatus.manual;\n } else if (typeof file.output === 'string') {\n foundFile.contents = Buffer.from(file.output);\n filesStatus[file.filePath] = FileStatus.merged;\n } else if (file.isBinaryConflict) {\n // leave the file as is and notify the user later about it.\n foundFile.contents = file.fsFile.contents;\n filesStatus[file.filePath] = FileStatus.binaryConflict;\n } else {\n throw new BitError(`file ${filePath} does not have output nor conflict`);\n }\n });\n\n mergeResults.addFiles.forEach((file) => {\n const filePath: PathOsBased = path.normalize(file.filePath);\n if (modifiedFiles.find((m) => m.relative === filePath)) return;\n modifiedFiles.push(file.fsFile);\n filesStatus[file.filePath] = FileStatus.added;\n });\n mergeResults.deletedConflictFiles.forEach((file) => {\n if (!file.fsFile) return;\n const filePath: PathOsBased = path.normalize(file.filePath);\n if (modifiedFiles.find((m) => m.relative === filePath)) return;\n modifiedFiles.push(file.fsFile);\n filesStatus[file.filePath] = FileStatus.added;\n });\n mergeResults.removeFiles.forEach((file) => {\n const filePath: PathOsBased = path.normalize(file.filePath);\n filesStatus[file.filePath] = FileStatus.removed;\n modifiedFiles = modifiedFiles.filter((f) => f.relative !== filePath);\n });\n mergeResults.remainDeletedFiles.forEach((file) => {\n const filePath: PathOsBased = path.normalize(file.filePath);\n modifiedFiles = modifiedFiles.filter((f) => f.relative !== filePath);\n filesStatus[file.filePath] = FileStatus.remainDeleted;\n });\n mergeResults.deletedConflictFiles.forEach((file) => {\n filesStatus[file.filePath] = FileStatus.deletedConflict;\n });\n\n mergeResults.overrideFiles.forEach((file) => {\n const filePath: PathOsBased = path.normalize(file.filePath);\n const foundFile = modifiedFiles.find((componentFile) => componentFile.relative === filePath);\n if (!foundFile) throw new BitError(`file ${filePath} not found`);\n foundFile.contents = file.fsFile.contents;\n filesStatus[file.filePath] = FileStatus.overridden;\n });\n mergeResults.updatedFiles.forEach((file) => {\n const filePath: PathOsBased = path.normalize(file.filePath);\n const foundFile = modifiedFiles.find((componentFile) => componentFile.relative === filePath);\n if (!foundFile) throw new BitError(`file ${filePath} not found`);\n foundFile.contents = file.content;\n filesStatus[file.filePath] = FileStatus.updated;\n });\n\n return { filesStatus, modifiedFiles };\n}\n\nexport function throwForFailures(allComponentsStatus: ComponentStatusBase[]) {\n const failedComponents = allComponentsStatus.filter((c) => c.unchangedMessage && !c.unchangedLegitimately);\n if (failedComponents.length) {\n const failureMsgs = failedComponents\n .map(\n (failedComponent) =>\n `${chalk.bold(failedComponent.id.toString())} - ${chalk.red(failedComponent.unchangedMessage as string)}`\n )\n .join('\\n');\n throw new BitError(`unable to proceed due to the following failures:\\n${failureMsgs}`);\n }\n}\n"],"mappings":";;;;;;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,uBAAA,CAAAC,OAAA;EAAAH,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAKA,SAAAG,OAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,eAAA;EAAA,MAAAJ,IAAA,GAAAK,sBAAA,CAAAH,OAAA;EAAAE,cAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,YAAA;EAAA,MAAAN,IAAA,GAAAK,sBAAA,CAAAH,OAAA;EAAAI,WAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAO,UAAA;EAAA,MAAAP,IAAA,GAAAE,OAAA;EAAAK,SAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,OAAA;EAAA,MAAAR,IAAA,GAAAK,sBAAA,CAAAH,OAAA;EAAAM,MAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAS,SAAA;EAAA,MAAAT,IAAA,GAAAE,OAAA;EAAAO,QAAA,YAAAA,CAAA;IAAA,OAAAT,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAO0B,SAAAK,uBAAAK,CAAA,WAAAA,CAAA,IA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Default","_removePath","_bitError","_chalk","_merging","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","_toPropertyKey","value","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","applyVersion","consumer","id","componentFromFS","mergeResults","checkoutProps","isLane","Error","toString","mergeStrategy","forceOurs","filesStatus","hasConflicts","MergeOptions","ours","files","file","pathNormalizeToLinux","relative","FileStatus","unchanged","bitMap","updateComponentId","applyVersionResult","component","loadComponentFromModelImportIfNeeded","componentMap","BitError","updateFileStatus","undefined","removeFilesIfNeeded","modifiedStatus","modifiedFiles","applyModifiedVersion","fileFromFs","find","f","areFilesEqual","Buffer","compare","contents","updated","isExistOnFs","getComponentIdIfExist","ignoreVersion","filePathsFromFS","dataToPersist","DataToPersist","filename","removed","removePath","RemovePath","persistAllToFS","componentFiles","map","clone","manual","filePath","normalize","foundFile","componentFile","conflict","from","output","merged","isBinaryConflict","fsFile","binaryConflict","addFiles","m","added","deletedConflictFiles","removeFiles","remainDeletedFiles","remainDeleted","deletedConflict","overrideFiles","overridden","updatedFiles","content","throwForFailures","allComponentsStatus","failedComponents","c","unchangedMessage","unchangedLegitimately","failureMsgs","failedComponent","chalk","bold","red","join"],"sources":["checkout-version.ts"],"sourcesContent":["import * as path from 'path';\nimport { Consumer } from '@teambit/legacy/dist/consumer';\nimport { ComponentID } from '@teambit/component-id';\nimport Version from '@teambit/legacy/dist/scope/models/version';\nimport { SourceFile } from '@teambit/legacy/dist/consumer/component/sources';\nimport { pathNormalizeToLinux, PathOsBased } from '@teambit/legacy.utils';\nimport DataToPersist from '@teambit/legacy/dist/consumer/component/sources/data-to-persist';\nimport RemovePath from '@teambit/legacy/dist/consumer/component/sources/remove-path';\nimport ConsumerComponent from '@teambit/legacy/dist/consumer/component';\nimport { BitError } from '@teambit/bit-error';\nimport chalk from 'chalk';\nimport {\n ApplyVersionResult,\n FilesStatus,\n FileStatus,\n MergeOptions,\n MergeStrategy,\n MergeResultsThreeWay,\n} from '@teambit/merging';\nimport { CheckoutProps } from './checkout.main.runtime';\n\nexport type ComponentStatusBase = {\n currentComponent?: ConsumerComponent;\n componentFromModel?: Version;\n id: ComponentID;\n shouldBeRemoved?: boolean; // in case the component is soft-removed, it should be removed from the workspace\n unchangedMessage?: string; // this gets populated either upon skip or failure.\n unchangedLegitimately?: boolean; // true for skipped legitimately (e.g. already up to date). false for failure.\n};\n\nexport type ComponentStatus = ComponentStatusBase & {\n mergeResults?: MergeResultsThreeWay | null | undefined;\n};\n\nexport type ApplyVersionWithComps = {\n applyVersionResult: ApplyVersionResult;\n component?: ConsumerComponent;\n // in case the component needs to be written to the filesystem, this is the component to write.\n legacyCompToWrite?: ConsumerComponent;\n};\n\n/**\n * This function optionally returns \"component\" object. If it returns, it means it needs to be written to the filesystem.\n * Otherwise, it means the component is already up to date and no need to write it.\n *\n * If no need to change anything (ours), then don't return the component object.\n * Otherwise, either return the component object as is (if no conflicts or \"theirs\"), or change the files in this\n * component object. Later, this component object is written to the filesystem.\n *\n * 1) when the files are modified with conflicts and the strategy is \"ours\", or forceOurs was used, leave the FS as is.\n *\n * 2) when the files are modified with conflicts and the strategy is \"theirs\", or forceTheirs was used, write the\n * component according to \"component\" object\n *\n * 3) when files are modified with no conflict or files are modified with conflicts and the\n * strategy is manual, load the component according to id.version and update component.files.\n * applyModifiedVersion() docs explains what files are updated/added.\n *\n * Side note:\n * Deleted file => if files are in used version but not in the modified one, no need to delete it. (similar to git).\n * Added file => if files are not in used version but in the modified one, they'll be under mergeResults.addFiles\n */\nexport async function applyVersion(\n consumer: Consumer,\n id: ComponentID,\n componentFromFS: ConsumerComponent | null | undefined, // it can be null only when isLanes is true\n mergeResults: MergeResultsThreeWay | null | undefined,\n checkoutProps: CheckoutProps\n): Promise<ApplyVersionWithComps> {\n if (!checkoutProps.isLane && !componentFromFS)\n throw new Error(`applyVersion expect to get componentFromFS for ${id.toString()}`);\n const { mergeStrategy, forceOurs } = checkoutProps;\n let filesStatus = {};\n if ((mergeResults?.hasConflicts && mergeStrategy === MergeOptions.ours) || forceOurs) {\n // even when isLane is true, the mergeResults is possible only when the component is on the filesystem\n // otherwise it's impossible to have conflicts\n if (!componentFromFS) throw new Error(`applyVersion expect to get componentFromFS for ${id.toString()}`);\n componentFromFS.files.forEach((file) => {\n filesStatus[pathNormalizeToLinux(file.relative)] = FileStatus.unchanged;\n });\n consumer.bitMap.updateComponentId(id);\n return { applyVersionResult: { id, filesStatus } };\n }\n const component = await consumer.loadComponentFromModelImportIfNeeded(id);\n const componentMap = componentFromFS && componentFromFS.componentMap;\n if (componentFromFS && !componentMap) throw new BitError('applyVersion: componentMap was not found');\n\n const files = component.files;\n updateFileStatus(files, filesStatus, componentFromFS || undefined);\n\n await removeFilesIfNeeded(filesStatus, consumer, componentFromFS || undefined);\n\n if (mergeResults) {\n // update files according to the merge results\n const { filesStatus: modifiedStatus, modifiedFiles } = applyModifiedVersion(files, mergeResults, mergeStrategy);\n filesStatus = { ...filesStatus, ...modifiedStatus };\n component.files = modifiedFiles;\n }\n\n // in case of forceTheirs, the mergeResults is undefined, the \"component\" object is according to \"theirs\", so it'll work\n // expected. (later, it writes the component object).\n\n return {\n applyVersionResult: { id, filesStatus },\n component,\n };\n}\n\nexport function updateFileStatus(files: SourceFile[], filesStatus: FilesStatus, componentFromFS?: ConsumerComponent) {\n files.forEach((file) => {\n const fileFromFs = componentFromFS?.files.find((f) => f.relative === file.relative);\n const areFilesEqual = fileFromFs && Buffer.compare(fileFromFs.contents, file.contents) === 0;\n // @ts-ignore\n filesStatus[pathNormalizeToLinux(file.relative)] = areFilesEqual ? FileStatus.unchanged : FileStatus.updated;\n });\n}\n\n/**\n * when files exist on the filesystem but not on the checked out versions, they need to be deleted.\n * without this function, these files would be left on the filesystem. (we don't delete the comp-dir before writing).\n * this needs to be done *before* the component is written to the filesystem, otherwise, it won't work when a file\n * has a case change. e.g. from uppercase to lowercase. (see merge-lane.e2e 'renaming files from uppercase to lowercase').\n */\nexport async function removeFilesIfNeeded(\n filesStatus: FilesStatus,\n consumer: Consumer,\n componentFromFS?: ConsumerComponent\n) {\n if (!componentFromFS) return;\n // @todo: if the component is not in the FS, it should be passed as undefined here.\n // in the case this is coming from merge-lane, it's sometimes populated from the scope.\n const isExistOnFs = consumer.bitMap.getComponentIdIfExist(componentFromFS.id, { ignoreVersion: true });\n if (!isExistOnFs) return;\n const filePathsFromFS = componentFromFS.files || [];\n const dataToPersist = new DataToPersist();\n filePathsFromFS.forEach((file) => {\n const filename = pathNormalizeToLinux(file.relative);\n if (!filesStatus[filename]) {\n // @ts-ignore todo: typescript has a good point here. it should be the string \"removed\", not chalk.green(removed).\n filesStatus[filename] = FileStatus.removed;\n }\n if (filesStatus[filename] === FileStatus.removed) {\n dataToPersist.removePath(new RemovePath(file.path));\n }\n });\n await dataToPersist.persistAllToFS();\n}\n\n/**\n * relevant only when\n * 1) there is no conflict => add files from mergeResults: addFiles, overrideFiles and modifiedFiles.output.\n * 2) there is conflict and mergeStrategy is manual => add files from mergeResults: addFiles, overrideFiles and modifiedFiles.conflict.\n *\n * this function only updates the files content, it doesn't write the files\n */\nexport function applyModifiedVersion(\n componentFiles: SourceFile[],\n mergeResults: MergeResultsThreeWay,\n mergeStrategy: MergeStrategy | null | undefined\n): { filesStatus: Record<string, any>; modifiedFiles: SourceFile[] } {\n let modifiedFiles = componentFiles.map((file) => file.clone());\n const filesStatus = {};\n if (mergeResults.hasConflicts && mergeStrategy !== MergeOptions.manual) {\n return { filesStatus, modifiedFiles };\n }\n mergeResults.modifiedFiles.forEach((file) => {\n const filePath: PathOsBased = path.normalize(file.filePath);\n const foundFile = modifiedFiles.find((componentFile) => componentFile.relative === filePath);\n if (!foundFile) throw new BitError(`file ${filePath} not found`);\n if (file.conflict) {\n foundFile.contents = Buffer.from(file.conflict);\n filesStatus[file.filePath] = FileStatus.manual;\n } else if (typeof file.output === 'string') {\n foundFile.contents = Buffer.from(file.output);\n filesStatus[file.filePath] = FileStatus.merged;\n } else if (file.isBinaryConflict) {\n // leave the file as is and notify the user later about it.\n foundFile.contents = file.fsFile.contents;\n filesStatus[file.filePath] = FileStatus.binaryConflict;\n } else {\n throw new BitError(`file ${filePath} does not have output nor conflict`);\n }\n });\n\n mergeResults.addFiles.forEach((file) => {\n const filePath: PathOsBased = path.normalize(file.filePath);\n if (modifiedFiles.find((m) => m.relative === filePath)) return;\n modifiedFiles.push(file.fsFile);\n filesStatus[file.filePath] = FileStatus.added;\n });\n mergeResults.deletedConflictFiles.forEach((file) => {\n if (!file.fsFile) return;\n const filePath: PathOsBased = path.normalize(file.filePath);\n if (modifiedFiles.find((m) => m.relative === filePath)) return;\n modifiedFiles.push(file.fsFile);\n filesStatus[file.filePath] = FileStatus.added;\n });\n mergeResults.removeFiles.forEach((file) => {\n const filePath: PathOsBased = path.normalize(file.filePath);\n filesStatus[file.filePath] = FileStatus.removed;\n modifiedFiles = modifiedFiles.filter((f) => f.relative !== filePath);\n });\n mergeResults.remainDeletedFiles.forEach((file) => {\n const filePath: PathOsBased = path.normalize(file.filePath);\n modifiedFiles = modifiedFiles.filter((f) => f.relative !== filePath);\n filesStatus[file.filePath] = FileStatus.remainDeleted;\n });\n mergeResults.deletedConflictFiles.forEach((file) => {\n filesStatus[file.filePath] = FileStatus.deletedConflict;\n });\n\n mergeResults.overrideFiles.forEach((file) => {\n const filePath: PathOsBased = path.normalize(file.filePath);\n const foundFile = modifiedFiles.find((componentFile) => componentFile.relative === filePath);\n if (!foundFile) throw new BitError(`file ${filePath} not found`);\n foundFile.contents = file.fsFile.contents;\n filesStatus[file.filePath] = FileStatus.overridden;\n });\n mergeResults.updatedFiles.forEach((file) => {\n const filePath: PathOsBased = path.normalize(file.filePath);\n const foundFile = modifiedFiles.find((componentFile) => componentFile.relative === filePath);\n if (!foundFile) throw new BitError(`file ${filePath} not found`);\n foundFile.contents = file.content;\n filesStatus[file.filePath] = FileStatus.updated;\n });\n\n return { filesStatus, modifiedFiles };\n}\n\nexport function throwForFailures(allComponentsStatus: ComponentStatusBase[]) {\n const failedComponents = allComponentsStatus.filter((c) => c.unchangedMessage && !c.unchangedLegitimately);\n if (failedComponents.length) {\n const failureMsgs = failedComponents\n .map(\n (failedComponent) =>\n `${chalk.bold(failedComponent.id.toString())} - ${chalk.red(failedComponent.unchangedMessage as string)}`\n )\n .join('\\n');\n throw new BitError(`unable to proceed due to the following failures:\\n${failureMsgs}`);\n }\n}\n"],"mappings":";;;;;;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,uBAAA,CAAAC,OAAA;EAAAH,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAKA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,eAAA;EAAA,MAAAJ,IAAA,GAAAK,sBAAA,CAAAH,OAAA;EAAAE,cAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,YAAA;EAAA,MAAAN,IAAA,GAAAK,sBAAA,CAAAH,OAAA;EAAAI,WAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAO,UAAA;EAAA,MAAAP,IAAA,GAAAE,OAAA;EAAAK,SAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,OAAA;EAAA,MAAAR,IAAA,GAAAK,sBAAA,CAAAH,OAAA;EAAAM,MAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAA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AAC,CACAO,IAAI,CAAC,IAAI,CAAC;IACb,MAAM,KAAIhE,oBAAQ,EAAC,qDAAqD2D,WAAW,EAAE,CAAC;EACxF;AACF","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/checkout",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.331",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/checkout",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.component",
|
|
8
8
|
"name": "checkout",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.331"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -15,13 +15,14 @@
|
|
|
15
15
|
"@teambit/bit-error": "0.0.404",
|
|
16
16
|
"@teambit/component-id": "1.2.0",
|
|
17
17
|
"@teambit/harmony": "0.4.6",
|
|
18
|
-
"@teambit/cli": "0.0.
|
|
19
|
-
"@teambit/merging": "1.0.
|
|
20
|
-
"@teambit/
|
|
21
|
-
"@teambit/
|
|
22
|
-
"@teambit/
|
|
23
|
-
"@teambit/
|
|
24
|
-
"@teambit/
|
|
18
|
+
"@teambit/cli": "0.0.908",
|
|
19
|
+
"@teambit/merging": "1.0.331",
|
|
20
|
+
"@teambit/legacy.utils": "0.0.3",
|
|
21
|
+
"@teambit/component-writer": "1.0.331",
|
|
22
|
+
"@teambit/importer": "1.0.331",
|
|
23
|
+
"@teambit/logger": "0.0.1001",
|
|
24
|
+
"@teambit/remove": "1.0.331",
|
|
25
|
+
"@teambit/workspace": "1.0.331"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
28
|
"@types/lodash": "4.14.165",
|
|
@@ -32,11 +33,11 @@
|
|
|
32
33
|
"chai": "4.3.0",
|
|
33
34
|
"fs-extra": "10.0.0",
|
|
34
35
|
"@types/mocha": "9.1.0",
|
|
35
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
|
36
|
-
"@teambit/component.testing.mock-components": "0.0.
|
|
37
|
-
"@teambit/harmony.testing.load-aspect": "0.0.
|
|
38
|
-
"@teambit/lister": "1.0.
|
|
39
|
-
"@teambit/snapping": "1.0.
|
|
36
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.42",
|
|
37
|
+
"@teambit/component.testing.mock-components": "0.0.207",
|
|
38
|
+
"@teambit/harmony.testing.load-aspect": "0.0.202",
|
|
39
|
+
"@teambit/lister": "1.0.331",
|
|
40
|
+
"@teambit/snapping": "1.0.331",
|
|
40
41
|
"@teambit/workspace.testing.mock-workspace": "0.0.27"
|
|
41
42
|
},
|
|
42
43
|
"peerDependencies": {
|
|
File without changes
|