@teambit/checkout 1.0.418 → 1.0.420
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.
|
|
3
|
+
<testsuite name="teambit.component/checkout@1.0.420" tests="3" failures="0" errors="0" skipped="0">
|
|
4
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.
|
|
6
|
-
<testcase classname="dist/checkout.spec.js" name="should checkout according to the number of generations specified" time="0.
|
|
5
|
+
<testcase classname="dist/checkout.spec.js" name="the workspace should get the component as a valid component" time="0.063"/>
|
|
6
|
+
<testcase classname="dist/checkout.spec.js" name="should checkout according to the number of generations specified" time="0.001"/>
|
|
7
7
|
</testsuite>
|
|
8
8
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
|
@@ -1130,14 +1130,14 @@
|
|
|
1130
1130
|
"__schema": "FunctionLikeSchema",
|
|
1131
1131
|
"location": {
|
|
1132
1132
|
"filePath": "checkout-version.ts",
|
|
1133
|
-
"line":
|
|
1133
|
+
"line": 155,
|
|
1134
1134
|
"character": 1
|
|
1135
1135
|
},
|
|
1136
1136
|
"doc": {
|
|
1137
1137
|
"__schema": "DocSchema",
|
|
1138
1138
|
"location": {
|
|
1139
1139
|
"filePath": "checkout-version.ts",
|
|
1140
|
-
"line":
|
|
1140
|
+
"line": 148,
|
|
1141
1141
|
"character": 1
|
|
1142
1142
|
},
|
|
1143
1143
|
"raw": "/**\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 */",
|
|
@@ -1151,7 +1151,7 @@
|
|
|
1151
1151
|
"__schema": "ParameterSchema",
|
|
1152
1152
|
"location": {
|
|
1153
1153
|
"filePath": "checkout-version.ts",
|
|
1154
|
-
"line":
|
|
1154
|
+
"line": 156,
|
|
1155
1155
|
"character": 3
|
|
1156
1156
|
},
|
|
1157
1157
|
"name": "componentFiles",
|
|
@@ -1159,14 +1159,14 @@
|
|
|
1159
1159
|
"__schema": "TypeArraySchema",
|
|
1160
1160
|
"location": {
|
|
1161
1161
|
"filePath": "checkout-version.ts",
|
|
1162
|
-
"line":
|
|
1162
|
+
"line": 156,
|
|
1163
1163
|
"character": 19
|
|
1164
1164
|
},
|
|
1165
1165
|
"type": {
|
|
1166
1166
|
"__schema": "TypeRefSchema",
|
|
1167
1167
|
"location": {
|
|
1168
1168
|
"filePath": "checkout-version.ts",
|
|
1169
|
-
"line":
|
|
1169
|
+
"line": 156,
|
|
1170
1170
|
"character": 19
|
|
1171
1171
|
},
|
|
1172
1172
|
"name": "SourceFile"
|
|
@@ -1179,7 +1179,7 @@
|
|
|
1179
1179
|
"__schema": "ParameterSchema",
|
|
1180
1180
|
"location": {
|
|
1181
1181
|
"filePath": "checkout-version.ts",
|
|
1182
|
-
"line":
|
|
1182
|
+
"line": 157,
|
|
1183
1183
|
"character": 3
|
|
1184
1184
|
},
|
|
1185
1185
|
"name": "mergeResults",
|
|
@@ -1187,7 +1187,7 @@
|
|
|
1187
1187
|
"__schema": "TypeRefSchema",
|
|
1188
1188
|
"location": {
|
|
1189
1189
|
"filePath": "checkout-version.ts",
|
|
1190
|
-
"line":
|
|
1190
|
+
"line": 157,
|
|
1191
1191
|
"character": 17
|
|
1192
1192
|
},
|
|
1193
1193
|
"name": "MergeResultsThreeWay"
|
|
@@ -1199,7 +1199,7 @@
|
|
|
1199
1199
|
"__schema": "ParameterSchema",
|
|
1200
1200
|
"location": {
|
|
1201
1201
|
"filePath": "checkout-version.ts",
|
|
1202
|
-
"line":
|
|
1202
|
+
"line": 158,
|
|
1203
1203
|
"character": 3
|
|
1204
1204
|
},
|
|
1205
1205
|
"name": "mergeStrategy",
|
|
@@ -1207,7 +1207,7 @@
|
|
|
1207
1207
|
"__schema": "TypeUnionSchema",
|
|
1208
1208
|
"location": {
|
|
1209
1209
|
"filePath": "checkout-version.ts",
|
|
1210
|
-
"line":
|
|
1210
|
+
"line": 158,
|
|
1211
1211
|
"character": 18
|
|
1212
1212
|
},
|
|
1213
1213
|
"types": [
|
|
@@ -1215,7 +1215,7 @@
|
|
|
1215
1215
|
"__schema": "TypeRefSchema",
|
|
1216
1216
|
"location": {
|
|
1217
1217
|
"filePath": "checkout-version.ts",
|
|
1218
|
-
"line":
|
|
1218
|
+
"line": 158,
|
|
1219
1219
|
"character": 18
|
|
1220
1220
|
},
|
|
1221
1221
|
"name": "MergeStrategy"
|
|
@@ -1224,7 +1224,7 @@
|
|
|
1224
1224
|
"__schema": "LiteralTypeSchema",
|
|
1225
1225
|
"location": {
|
|
1226
1226
|
"filePath": "checkout-version.ts",
|
|
1227
|
-
"line":
|
|
1227
|
+
"line": 158,
|
|
1228
1228
|
"character": 34
|
|
1229
1229
|
},
|
|
1230
1230
|
"name": "null"
|
|
@@ -1233,7 +1233,7 @@
|
|
|
1233
1233
|
"__schema": "KeywordTypeSchema",
|
|
1234
1234
|
"location": {
|
|
1235
1235
|
"filePath": "checkout-version.ts",
|
|
1236
|
-
"line":
|
|
1236
|
+
"line": 158,
|
|
1237
1237
|
"character": 41
|
|
1238
1238
|
},
|
|
1239
1239
|
"name": "undefined"
|
|
@@ -1248,7 +1248,7 @@
|
|
|
1248
1248
|
"__schema": "TypeLiteralSchema",
|
|
1249
1249
|
"location": {
|
|
1250
1250
|
"filePath": "checkout-version.ts",
|
|
1251
|
-
"line":
|
|
1251
|
+
"line": 159,
|
|
1252
1252
|
"character": 4
|
|
1253
1253
|
},
|
|
1254
1254
|
"members": [
|
|
@@ -1256,7 +1256,7 @@
|
|
|
1256
1256
|
"__schema": "VariableLikeSchema",
|
|
1257
1257
|
"location": {
|
|
1258
1258
|
"filePath": "checkout-version.ts",
|
|
1259
|
-
"line":
|
|
1259
|
+
"line": 159,
|
|
1260
1260
|
"character": 6
|
|
1261
1261
|
},
|
|
1262
1262
|
"signature": "(property) filesStatus: Record<string, any>",
|
|
@@ -1265,7 +1265,7 @@
|
|
|
1265
1265
|
"__schema": "TypeRefSchema",
|
|
1266
1266
|
"location": {
|
|
1267
1267
|
"filePath": "checkout-version.ts",
|
|
1268
|
-
"line":
|
|
1268
|
+
"line": 159,
|
|
1269
1269
|
"character": 19
|
|
1270
1270
|
},
|
|
1271
1271
|
"name": "Record",
|
|
@@ -1274,7 +1274,7 @@
|
|
|
1274
1274
|
"__schema": "KeywordTypeSchema",
|
|
1275
1275
|
"location": {
|
|
1276
1276
|
"filePath": "checkout-version.ts",
|
|
1277
|
-
"line":
|
|
1277
|
+
"line": 159,
|
|
1278
1278
|
"character": 26
|
|
1279
1279
|
},
|
|
1280
1280
|
"name": "string"
|
|
@@ -1283,7 +1283,7 @@
|
|
|
1283
1283
|
"__schema": "KeywordTypeSchema",
|
|
1284
1284
|
"location": {
|
|
1285
1285
|
"filePath": "checkout-version.ts",
|
|
1286
|
-
"line":
|
|
1286
|
+
"line": 159,
|
|
1287
1287
|
"character": 34
|
|
1288
1288
|
},
|
|
1289
1289
|
"name": "any"
|
|
@@ -1296,7 +1296,7 @@
|
|
|
1296
1296
|
"__schema": "VariableLikeSchema",
|
|
1297
1297
|
"location": {
|
|
1298
1298
|
"filePath": "checkout-version.ts",
|
|
1299
|
-
"line":
|
|
1299
|
+
"line": 159,
|
|
1300
1300
|
"character": 40
|
|
1301
1301
|
},
|
|
1302
1302
|
"signature": "(property) modifiedFiles: SourceFile[]",
|
|
@@ -1305,14 +1305,14 @@
|
|
|
1305
1305
|
"__schema": "TypeArraySchema",
|
|
1306
1306
|
"location": {
|
|
1307
1307
|
"filePath": "checkout-version.ts",
|
|
1308
|
-
"line":
|
|
1308
|
+
"line": 159,
|
|
1309
1309
|
"character": 55
|
|
1310
1310
|
},
|
|
1311
1311
|
"type": {
|
|
1312
1312
|
"__schema": "TypeRefSchema",
|
|
1313
1313
|
"location": {
|
|
1314
1314
|
"filePath": "checkout-version.ts",
|
|
1315
|
-
"line":
|
|
1315
|
+
"line": 159,
|
|
1316
1316
|
"character": 55
|
|
1317
1317
|
},
|
|
1318
1318
|
"name": "SourceFile"
|
|
@@ -1553,14 +1553,14 @@
|
|
|
1553
1553
|
"__schema": "FunctionLikeSchema",
|
|
1554
1554
|
"location": {
|
|
1555
1555
|
"filePath": "checkout-version.ts",
|
|
1556
|
-
"line":
|
|
1556
|
+
"line": 123,
|
|
1557
1557
|
"character": 1
|
|
1558
1558
|
},
|
|
1559
1559
|
"doc": {
|
|
1560
1560
|
"__schema": "DocSchema",
|
|
1561
1561
|
"location": {
|
|
1562
1562
|
"filePath": "checkout-version.ts",
|
|
1563
|
-
"line":
|
|
1563
|
+
"line": 117,
|
|
1564
1564
|
"character": 1
|
|
1565
1565
|
},
|
|
1566
1566
|
"raw": "/**\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 */",
|
|
@@ -1574,7 +1574,7 @@
|
|
|
1574
1574
|
"__schema": "ParameterSchema",
|
|
1575
1575
|
"location": {
|
|
1576
1576
|
"filePath": "checkout-version.ts",
|
|
1577
|
-
"line":
|
|
1577
|
+
"line": 124,
|
|
1578
1578
|
"character": 3
|
|
1579
1579
|
},
|
|
1580
1580
|
"name": "filesStatus",
|
|
@@ -1582,7 +1582,7 @@
|
|
|
1582
1582
|
"__schema": "TypeRefSchema",
|
|
1583
1583
|
"location": {
|
|
1584
1584
|
"filePath": "checkout-version.ts",
|
|
1585
|
-
"line":
|
|
1585
|
+
"line": 124,
|
|
1586
1586
|
"character": 16
|
|
1587
1587
|
},
|
|
1588
1588
|
"name": "FilesStatus"
|
|
@@ -1594,7 +1594,7 @@
|
|
|
1594
1594
|
"__schema": "ParameterSchema",
|
|
1595
1595
|
"location": {
|
|
1596
1596
|
"filePath": "checkout-version.ts",
|
|
1597
|
-
"line":
|
|
1597
|
+
"line": 125,
|
|
1598
1598
|
"character": 3
|
|
1599
1599
|
},
|
|
1600
1600
|
"name": "consumer",
|
|
@@ -1602,7 +1602,7 @@
|
|
|
1602
1602
|
"__schema": "TypeRefSchema",
|
|
1603
1603
|
"location": {
|
|
1604
1604
|
"filePath": "checkout-version.ts",
|
|
1605
|
-
"line":
|
|
1605
|
+
"line": 125,
|
|
1606
1606
|
"character": 13
|
|
1607
1607
|
},
|
|
1608
1608
|
"name": "Consumer"
|
|
@@ -1614,7 +1614,7 @@
|
|
|
1614
1614
|
"__schema": "ParameterSchema",
|
|
1615
1615
|
"location": {
|
|
1616
1616
|
"filePath": "checkout-version.ts",
|
|
1617
|
-
"line":
|
|
1617
|
+
"line": 126,
|
|
1618
1618
|
"character": 3
|
|
1619
1619
|
},
|
|
1620
1620
|
"name": "componentFromFS",
|
|
@@ -1622,7 +1622,7 @@
|
|
|
1622
1622
|
"__schema": "TypeRefSchema",
|
|
1623
1623
|
"location": {
|
|
1624
1624
|
"filePath": "checkout-version.ts",
|
|
1625
|
-
"line":
|
|
1625
|
+
"line": 126,
|
|
1626
1626
|
"character": 21
|
|
1627
1627
|
},
|
|
1628
1628
|
"name": "ConsumerComponent"
|
|
@@ -1635,7 +1635,7 @@
|
|
|
1635
1635
|
"__schema": "InferenceTypeSchema",
|
|
1636
1636
|
"location": {
|
|
1637
1637
|
"filePath": "checkout-version.ts",
|
|
1638
|
-
"line":
|
|
1638
|
+
"line": 123,
|
|
1639
1639
|
"character": 1
|
|
1640
1640
|
},
|
|
1641
1641
|
"type": "Promise<void>"
|
|
@@ -1761,7 +1761,7 @@
|
|
|
1761
1761
|
"__schema": "FunctionLikeSchema",
|
|
1762
1762
|
"location": {
|
|
1763
1763
|
"filePath": "checkout-version.ts",
|
|
1764
|
-
"line":
|
|
1764
|
+
"line": 229,
|
|
1765
1765
|
"character": 1
|
|
1766
1766
|
},
|
|
1767
1767
|
"signature": "function throwForFailures(allComponentsStatus: ComponentStatusBase[]): void",
|
|
@@ -1771,7 +1771,7 @@
|
|
|
1771
1771
|
"__schema": "ParameterSchema",
|
|
1772
1772
|
"location": {
|
|
1773
1773
|
"filePath": "checkout-version.ts",
|
|
1774
|
-
"line":
|
|
1774
|
+
"line": 229,
|
|
1775
1775
|
"character": 34
|
|
1776
1776
|
},
|
|
1777
1777
|
"name": "allComponentsStatus",
|
|
@@ -1779,14 +1779,14 @@
|
|
|
1779
1779
|
"__schema": "TypeArraySchema",
|
|
1780
1780
|
"location": {
|
|
1781
1781
|
"filePath": "checkout-version.ts",
|
|
1782
|
-
"line":
|
|
1782
|
+
"line": 229,
|
|
1783
1783
|
"character": 55
|
|
1784
1784
|
},
|
|
1785
1785
|
"type": {
|
|
1786
1786
|
"__schema": "TypeRefSchema",
|
|
1787
1787
|
"location": {
|
|
1788
1788
|
"filePath": "checkout-version.ts",
|
|
1789
|
-
"line":
|
|
1789
|
+
"line": 229,
|
|
1790
1790
|
"character": 55
|
|
1791
1791
|
},
|
|
1792
1792
|
"name": "ComponentStatusBase"
|
|
@@ -1800,7 +1800,7 @@
|
|
|
1800
1800
|
"__schema": "InferenceTypeSchema",
|
|
1801
1801
|
"location": {
|
|
1802
1802
|
"filePath": "checkout-version.ts",
|
|
1803
|
-
"line":
|
|
1803
|
+
"line": 229,
|
|
1804
1804
|
"character": 1
|
|
1805
1805
|
},
|
|
1806
1806
|
"type": "void"
|
|
@@ -4085,14 +4085,14 @@
|
|
|
4085
4085
|
"__schema": "FunctionLikeSchema",
|
|
4086
4086
|
"location": {
|
|
4087
4087
|
"filePath": "checkout-version.ts",
|
|
4088
|
-
"line":
|
|
4088
|
+
"line": 123,
|
|
4089
4089
|
"character": 1
|
|
4090
4090
|
},
|
|
4091
4091
|
"doc": {
|
|
4092
4092
|
"__schema": "DocSchema",
|
|
4093
4093
|
"location": {
|
|
4094
4094
|
"filePath": "checkout-version.ts",
|
|
4095
|
-
"line":
|
|
4095
|
+
"line": 117,
|
|
4096
4096
|
"character": 1
|
|
4097
4097
|
},
|
|
4098
4098
|
"raw": "/**\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 */",
|
|
@@ -4106,7 +4106,7 @@
|
|
|
4106
4106
|
"__schema": "ParameterSchema",
|
|
4107
4107
|
"location": {
|
|
4108
4108
|
"filePath": "checkout-version.ts",
|
|
4109
|
-
"line":
|
|
4109
|
+
"line": 124,
|
|
4110
4110
|
"character": 3
|
|
4111
4111
|
},
|
|
4112
4112
|
"name": "filesStatus",
|
|
@@ -4114,7 +4114,7 @@
|
|
|
4114
4114
|
"__schema": "TypeRefSchema",
|
|
4115
4115
|
"location": {
|
|
4116
4116
|
"filePath": "checkout-version.ts",
|
|
4117
|
-
"line":
|
|
4117
|
+
"line": 124,
|
|
4118
4118
|
"character": 16
|
|
4119
4119
|
},
|
|
4120
4120
|
"name": "FilesStatus"
|
|
@@ -4126,7 +4126,7 @@
|
|
|
4126
4126
|
"__schema": "ParameterSchema",
|
|
4127
4127
|
"location": {
|
|
4128
4128
|
"filePath": "checkout-version.ts",
|
|
4129
|
-
"line":
|
|
4129
|
+
"line": 125,
|
|
4130
4130
|
"character": 3
|
|
4131
4131
|
},
|
|
4132
4132
|
"name": "consumer",
|
|
@@ -4134,7 +4134,7 @@
|
|
|
4134
4134
|
"__schema": "TypeRefSchema",
|
|
4135
4135
|
"location": {
|
|
4136
4136
|
"filePath": "checkout-version.ts",
|
|
4137
|
-
"line":
|
|
4137
|
+
"line": 125,
|
|
4138
4138
|
"character": 13
|
|
4139
4139
|
},
|
|
4140
4140
|
"name": "Consumer"
|
|
@@ -4146,7 +4146,7 @@
|
|
|
4146
4146
|
"__schema": "ParameterSchema",
|
|
4147
4147
|
"location": {
|
|
4148
4148
|
"filePath": "checkout-version.ts",
|
|
4149
|
-
"line":
|
|
4149
|
+
"line": 126,
|
|
4150
4150
|
"character": 3
|
|
4151
4151
|
},
|
|
4152
4152
|
"name": "componentFromFS",
|
|
@@ -4154,7 +4154,7 @@
|
|
|
4154
4154
|
"__schema": "TypeRefSchema",
|
|
4155
4155
|
"location": {
|
|
4156
4156
|
"filePath": "checkout-version.ts",
|
|
4157
|
-
"line":
|
|
4157
|
+
"line": 126,
|
|
4158
4158
|
"character": 21
|
|
4159
4159
|
},
|
|
4160
4160
|
"name": "ConsumerComponent"
|
|
@@ -4167,7 +4167,7 @@
|
|
|
4167
4167
|
"__schema": "InferenceTypeSchema",
|
|
4168
4168
|
"location": {
|
|
4169
4169
|
"filePath": "checkout-version.ts",
|
|
4170
|
-
"line":
|
|
4170
|
+
"line": 123,
|
|
4171
4171
|
"character": 1
|
|
4172
4172
|
},
|
|
4173
4173
|
"type": "Promise<void>"
|
|
@@ -4181,14 +4181,14 @@
|
|
|
4181
4181
|
"__schema": "FunctionLikeSchema",
|
|
4182
4182
|
"location": {
|
|
4183
4183
|
"filePath": "checkout-version.ts",
|
|
4184
|
-
"line":
|
|
4184
|
+
"line": 155,
|
|
4185
4185
|
"character": 1
|
|
4186
4186
|
},
|
|
4187
4187
|
"doc": {
|
|
4188
4188
|
"__schema": "DocSchema",
|
|
4189
4189
|
"location": {
|
|
4190
4190
|
"filePath": "checkout-version.ts",
|
|
4191
|
-
"line":
|
|
4191
|
+
"line": 148,
|
|
4192
4192
|
"character": 1
|
|
4193
4193
|
},
|
|
4194
4194
|
"raw": "/**\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 */",
|
|
@@ -4202,7 +4202,7 @@
|
|
|
4202
4202
|
"__schema": "ParameterSchema",
|
|
4203
4203
|
"location": {
|
|
4204
4204
|
"filePath": "checkout-version.ts",
|
|
4205
|
-
"line":
|
|
4205
|
+
"line": 156,
|
|
4206
4206
|
"character": 3
|
|
4207
4207
|
},
|
|
4208
4208
|
"name": "componentFiles",
|
|
@@ -4210,14 +4210,14 @@
|
|
|
4210
4210
|
"__schema": "TypeArraySchema",
|
|
4211
4211
|
"location": {
|
|
4212
4212
|
"filePath": "checkout-version.ts",
|
|
4213
|
-
"line":
|
|
4213
|
+
"line": 156,
|
|
4214
4214
|
"character": 19
|
|
4215
4215
|
},
|
|
4216
4216
|
"type": {
|
|
4217
4217
|
"__schema": "TypeRefSchema",
|
|
4218
4218
|
"location": {
|
|
4219
4219
|
"filePath": "checkout-version.ts",
|
|
4220
|
-
"line":
|
|
4220
|
+
"line": 156,
|
|
4221
4221
|
"character": 19
|
|
4222
4222
|
},
|
|
4223
4223
|
"name": "SourceFile"
|
|
@@ -4230,7 +4230,7 @@
|
|
|
4230
4230
|
"__schema": "ParameterSchema",
|
|
4231
4231
|
"location": {
|
|
4232
4232
|
"filePath": "checkout-version.ts",
|
|
4233
|
-
"line":
|
|
4233
|
+
"line": 157,
|
|
4234
4234
|
"character": 3
|
|
4235
4235
|
},
|
|
4236
4236
|
"name": "mergeResults",
|
|
@@ -4238,7 +4238,7 @@
|
|
|
4238
4238
|
"__schema": "TypeRefSchema",
|
|
4239
4239
|
"location": {
|
|
4240
4240
|
"filePath": "checkout-version.ts",
|
|
4241
|
-
"line":
|
|
4241
|
+
"line": 157,
|
|
4242
4242
|
"character": 17
|
|
4243
4243
|
},
|
|
4244
4244
|
"name": "MergeResultsThreeWay"
|
|
@@ -4250,7 +4250,7 @@
|
|
|
4250
4250
|
"__schema": "ParameterSchema",
|
|
4251
4251
|
"location": {
|
|
4252
4252
|
"filePath": "checkout-version.ts",
|
|
4253
|
-
"line":
|
|
4253
|
+
"line": 158,
|
|
4254
4254
|
"character": 3
|
|
4255
4255
|
},
|
|
4256
4256
|
"name": "mergeStrategy",
|
|
@@ -4258,7 +4258,7 @@
|
|
|
4258
4258
|
"__schema": "TypeUnionSchema",
|
|
4259
4259
|
"location": {
|
|
4260
4260
|
"filePath": "checkout-version.ts",
|
|
4261
|
-
"line":
|
|
4261
|
+
"line": 158,
|
|
4262
4262
|
"character": 18
|
|
4263
4263
|
},
|
|
4264
4264
|
"types": [
|
|
@@ -4266,7 +4266,7 @@
|
|
|
4266
4266
|
"__schema": "TypeRefSchema",
|
|
4267
4267
|
"location": {
|
|
4268
4268
|
"filePath": "checkout-version.ts",
|
|
4269
|
-
"line":
|
|
4269
|
+
"line": 158,
|
|
4270
4270
|
"character": 18
|
|
4271
4271
|
},
|
|
4272
4272
|
"name": "MergeStrategy"
|
|
@@ -4275,7 +4275,7 @@
|
|
|
4275
4275
|
"__schema": "LiteralTypeSchema",
|
|
4276
4276
|
"location": {
|
|
4277
4277
|
"filePath": "checkout-version.ts",
|
|
4278
|
-
"line":
|
|
4278
|
+
"line": 158,
|
|
4279
4279
|
"character": 34
|
|
4280
4280
|
},
|
|
4281
4281
|
"name": "null"
|
|
@@ -4284,7 +4284,7 @@
|
|
|
4284
4284
|
"__schema": "KeywordTypeSchema",
|
|
4285
4285
|
"location": {
|
|
4286
4286
|
"filePath": "checkout-version.ts",
|
|
4287
|
-
"line":
|
|
4287
|
+
"line": 158,
|
|
4288
4288
|
"character": 41
|
|
4289
4289
|
},
|
|
4290
4290
|
"name": "undefined"
|
|
@@ -4299,7 +4299,7 @@
|
|
|
4299
4299
|
"__schema": "TypeLiteralSchema",
|
|
4300
4300
|
"location": {
|
|
4301
4301
|
"filePath": "checkout-version.ts",
|
|
4302
|
-
"line":
|
|
4302
|
+
"line": 159,
|
|
4303
4303
|
"character": 4
|
|
4304
4304
|
},
|
|
4305
4305
|
"members": [
|
|
@@ -4307,7 +4307,7 @@
|
|
|
4307
4307
|
"__schema": "VariableLikeSchema",
|
|
4308
4308
|
"location": {
|
|
4309
4309
|
"filePath": "checkout-version.ts",
|
|
4310
|
-
"line":
|
|
4310
|
+
"line": 159,
|
|
4311
4311
|
"character": 6
|
|
4312
4312
|
},
|
|
4313
4313
|
"signature": "(property) filesStatus: Record<string, any>",
|
|
@@ -4316,7 +4316,7 @@
|
|
|
4316
4316
|
"__schema": "TypeRefSchema",
|
|
4317
4317
|
"location": {
|
|
4318
4318
|
"filePath": "checkout-version.ts",
|
|
4319
|
-
"line":
|
|
4319
|
+
"line": 159,
|
|
4320
4320
|
"character": 19
|
|
4321
4321
|
},
|
|
4322
4322
|
"name": "Record",
|
|
@@ -4325,7 +4325,7 @@
|
|
|
4325
4325
|
"__schema": "KeywordTypeSchema",
|
|
4326
4326
|
"location": {
|
|
4327
4327
|
"filePath": "checkout-version.ts",
|
|
4328
|
-
"line":
|
|
4328
|
+
"line": 159,
|
|
4329
4329
|
"character": 26
|
|
4330
4330
|
},
|
|
4331
4331
|
"name": "string"
|
|
@@ -4334,7 +4334,7 @@
|
|
|
4334
4334
|
"__schema": "KeywordTypeSchema",
|
|
4335
4335
|
"location": {
|
|
4336
4336
|
"filePath": "checkout-version.ts",
|
|
4337
|
-
"line":
|
|
4337
|
+
"line": 159,
|
|
4338
4338
|
"character": 34
|
|
4339
4339
|
},
|
|
4340
4340
|
"name": "any"
|
|
@@ -4347,7 +4347,7 @@
|
|
|
4347
4347
|
"__schema": "VariableLikeSchema",
|
|
4348
4348
|
"location": {
|
|
4349
4349
|
"filePath": "checkout-version.ts",
|
|
4350
|
-
"line":
|
|
4350
|
+
"line": 159,
|
|
4351
4351
|
"character": 40
|
|
4352
4352
|
},
|
|
4353
4353
|
"signature": "(property) modifiedFiles: SourceFile[]",
|
|
@@ -4356,14 +4356,14 @@
|
|
|
4356
4356
|
"__schema": "TypeArraySchema",
|
|
4357
4357
|
"location": {
|
|
4358
4358
|
"filePath": "checkout-version.ts",
|
|
4359
|
-
"line":
|
|
4359
|
+
"line": 159,
|
|
4360
4360
|
"character": 55
|
|
4361
4361
|
},
|
|
4362
4362
|
"type": {
|
|
4363
4363
|
"__schema": "TypeRefSchema",
|
|
4364
4364
|
"location": {
|
|
4365
4365
|
"filePath": "checkout-version.ts",
|
|
4366
|
-
"line":
|
|
4366
|
+
"line": 159,
|
|
4367
4367
|
"character": 55
|
|
4368
4368
|
},
|
|
4369
4369
|
"name": "SourceFile"
|
|
@@ -4381,7 +4381,7 @@
|
|
|
4381
4381
|
"__schema": "FunctionLikeSchema",
|
|
4382
4382
|
"location": {
|
|
4383
4383
|
"filePath": "checkout-version.ts",
|
|
4384
|
-
"line":
|
|
4384
|
+
"line": 229,
|
|
4385
4385
|
"character": 1
|
|
4386
4386
|
},
|
|
4387
4387
|
"signature": "function throwForFailures(allComponentsStatus: ComponentStatusBase[]): void",
|
|
@@ -4391,7 +4391,7 @@
|
|
|
4391
4391
|
"__schema": "ParameterSchema",
|
|
4392
4392
|
"location": {
|
|
4393
4393
|
"filePath": "checkout-version.ts",
|
|
4394
|
-
"line":
|
|
4394
|
+
"line": 229,
|
|
4395
4395
|
"character": 34
|
|
4396
4396
|
},
|
|
4397
4397
|
"name": "allComponentsStatus",
|
|
@@ -4399,14 +4399,14 @@
|
|
|
4399
4399
|
"__schema": "TypeArraySchema",
|
|
4400
4400
|
"location": {
|
|
4401
4401
|
"filePath": "checkout-version.ts",
|
|
4402
|
-
"line":
|
|
4402
|
+
"line": 229,
|
|
4403
4403
|
"character": 55
|
|
4404
4404
|
},
|
|
4405
4405
|
"type": {
|
|
4406
4406
|
"__schema": "TypeRefSchema",
|
|
4407
4407
|
"location": {
|
|
4408
4408
|
"filePath": "checkout-version.ts",
|
|
4409
|
-
"line":
|
|
4409
|
+
"line": 229,
|
|
4410
4410
|
"character": 55
|
|
4411
4411
|
},
|
|
4412
4412
|
"name": "ComponentStatusBase"
|
|
@@ -4420,7 +4420,7 @@
|
|
|
4420
4420
|
"__schema": "InferenceTypeSchema",
|
|
4421
4421
|
"location": {
|
|
4422
4422
|
"filePath": "checkout-version.ts",
|
|
4423
|
-
"line":
|
|
4423
|
+
"line": 229,
|
|
4424
4424
|
"character": 1
|
|
4425
4425
|
},
|
|
4426
4426
|
"type": "void"
|
|
@@ -5195,7 +5195,7 @@
|
|
|
5195
5195
|
"_legacy": {
|
|
5196
5196
|
"scope": "teambit.component",
|
|
5197
5197
|
"name": "checkout",
|
|
5198
|
-
"version": "1.0.
|
|
5198
|
+
"version": "1.0.420"
|
|
5199
5199
|
},
|
|
5200
5200
|
"_scope": "teambit.component"
|
|
5201
5201
|
}
|
|
@@ -5294,7 +5294,7 @@
|
|
|
5294
5294
|
"componentId": {
|
|
5295
5295
|
"scope": "teambit.component",
|
|
5296
5296
|
"name": "checkout",
|
|
5297
|
-
"version": "1.0.
|
|
5297
|
+
"version": "1.0.420"
|
|
5298
5298
|
},
|
|
5299
5299
|
"taggedModuleExports": []
|
|
5300
5300
|
}
|
package/dist/checkout-version.js
CHANGED
|
@@ -133,6 +133,7 @@ mergeResults, checkoutProps) {
|
|
|
133
133
|
function updateFileStatus(files, filesStatus, componentFromFS) {
|
|
134
134
|
files.forEach(file => {
|
|
135
135
|
const fileFromFs = componentFromFS?.files.find(f => f.relative === file.relative);
|
|
136
|
+
// @ts-ignore should be fixed after upgrading @types/node from '12.20.4' to > 20
|
|
136
137
|
const areFilesEqual = fileFromFs && Buffer.compare(fileFromFs.contents, file.contents) === 0;
|
|
137
138
|
// @ts-ignore
|
|
138
139
|
filesStatus[(0, _legacy().pathNormalizeToLinux)(file.relative)] = areFilesEqual ? _merging().FileStatus.unchanged : _merging().FileStatus.updated;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["path","data","_interopRequireWildcard","require","_component","_legacy","_bitError","_chalk","_interopRequireDefault","_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, RemovePath, DataToPersist } from '@teambit/component.sources';\nimport { pathNormalizeToLinux, PathOsBased } from '@teambit/legacy.utils';\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;AAIA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAK,UAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,SAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,OAAA;EAAA,MAAAN,IAAA,GAAAO,sBAAA,CAAAL,OAAA;EAAAI,MAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,SAAA;EAAA,MAAAR,IAAA,GAAAE,OAAA;EAAAM,QAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAO0B,SAAAO,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6B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AAI,IAAK;IAC1C,MAAMyC,QAAqB,GAAGhH,IAAI,CAAD,CAAC,CAACiH,SAAS,CAAC1C,IAAI,CAACyC,QAAQ,CAAC;IAC3D,MAAME,SAAS,GAAG3B,aAAa,CAACG,IAAI,CAAEyB,aAAa,IAAKA,aAAa,CAAC1C,QAAQ,KAAKuC,QAAQ,CAAC;IAC5F,IAAI,CAACE,SAAS,EAAE,MAAM,KAAIhC,oBAAQ,EAAC,QAAQ8B,QAAQ,YAAY,CAAC;IAChEE,SAAS,CAACnB,QAAQ,GAAGxB,IAAI,CAAC+D,OAAO;IACjCpE,WAAW,CAACK,IAAI,CAACyC,QAAQ,CAAC,GAAGtC,qBAAU,CAACsB,OAAO;EACjD,CAAC,CAAC;EAEF,OAAO;IAAE9B,WAAW;IAAEqB;EAAc,CAAC;AACvC;AAEO,SAASgD,gBAAgBA,CAACC,mBAA0C,EAAE;EAC3E,MAAMC,gBAAgB,GAAGD,mBAAmB,CAACtG,MAAM,CAAEwG,CAAC,IAAKA,CAAC,CAACC,gBAAgB,IAAI,CAACD,CAAC,CAACE,qBAAqB,CAAC;EAC1G,IAAIH,gBAAgB,CAACjG,MAAM,EAAE;IAC3B,MAAMqG,WAAW,GAAGJ,gBAAgB,CACjC5B,GAAG,CACDiC,eAAe,IACd,GAAGC,gBAAK,CAACC,IAAI,CAACF,eAAe,CAACrF,EAAE,CAACM,QAAQ,CAAC,CAAC,CAAC,MAAMgF,gBAAK,CAACE,GAAG,CAACH,eAAe,CAACH,gBAA0B,CAAC,EAC3G,CAAC,CACAO,IAAI,CAAC,IAAI,CAAC;IACb,MAAM,KAAIhE,oBAAQ,EAAC,qDAAqD2D,WAAW,EAAE,CAAC;EACxF;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["path","data","_interopRequireWildcard","require","_component","_legacy","_bitError","_chalk","_interopRequireDefault","_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, RemovePath, DataToPersist } from '@teambit/component.sources';\nimport { pathNormalizeToLinux, PathOsBased } from '@teambit/legacy.utils';\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 // @ts-ignore should be fixed after upgrading @types/node from '12.20.4' to > 20\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;AAIA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAK,UAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,SAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,OAAA;EAAA,MAAAN,IAAA,GAAAO,sBAAA,CAAAL,OAAA;EAAAI,MAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,SAAA;EAAA,MAAAR,IAAA,GAAAE,OAAA;EAAAM,QAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAO0B,SAAAO,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,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MyC,QAAqB,GAAGhH,IAAI,CAAD,CAAC,CAACiH,SAAS,CAAC1C,IAAI,CAACyC,QAAQ,CAAC;IAC3D,MAAME,SAAS,GAAG3B,aAAa,CAACG,IAAI,CAAEyB,aAAa,IAAKA,aAAa,CAAC1C,QAAQ,KAAKuC,QAAQ,CAAC;IAC5F,IAAI,CAACE,SAAS,EAAE,MAAM,KAAIhC,oBAAQ,EAAC,QAAQ8B,QAAQ,YAAY,CAAC;IAChEE,SAAS,CAACnB,QAAQ,GAAGxB,IAAI,CAAC+D,OAAO;IACjCpE,WAAW,CAACK,IAAI,CAACyC,QAAQ,CAAC,GAAGtC,qBAAU,CAACsB,OAAO;EACjD,CAAC,CAAC;EAEF,OAAO;IAAE9B,WAAW;IAAEqB;EAAc,CAAC;AACvC;AAEO,SAASgD,gBAAgBA,CAACC,mBAA0C,EAAE;EAC3E,MAAMC,gBAAgB,GAAGD,mBAAmB,CAACtG,MAAM,CAAEwG,CAAC,IAAKA,CAAC,CAACC,gBAAgB,IAAI,CAACD,CAAC,CAACE,qBAAqB,CAAC;EAC1G,IAAIH,gBAAgB,CAACjG,MAAM,EAAE;IAC3B,MAAMqG,WAAW,GAAGJ,gBAAgB,CACjC5B,GAAG,CACDiC,eAAe,IACd,GAAGC,gBAAK,CAACC,IAAI,CAACF,eAAe,CAACrF,EAAE,CAACM,QAAQ,CAAC,CAAC,CAAC,MAAMgF,gBAAK,CAACE,GAAG,CAACH,eAAe,CAACH,gBAA0B,CAAC,EAC3G,CAAC,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.420",
|
|
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.420"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
"@teambit/bit-error": "0.0.404",
|
|
16
16
|
"@teambit/component-id": "1.2.2",
|
|
17
17
|
"@teambit/harmony": "0.4.6",
|
|
18
|
-
"@teambit/cli": "0.0.
|
|
19
|
-
"@teambit/merging": "1.0.
|
|
20
|
-
"@teambit/component.sources": "0.0.
|
|
18
|
+
"@teambit/cli": "0.0.997",
|
|
19
|
+
"@teambit/merging": "1.0.420",
|
|
20
|
+
"@teambit/component.sources": "0.0.33",
|
|
21
21
|
"@teambit/legacy.utils": "0.0.6",
|
|
22
|
-
"@teambit/component-writer": "1.0.
|
|
23
|
-
"@teambit/importer": "1.0.
|
|
24
|
-
"@teambit/logger": "0.0.
|
|
25
|
-
"@teambit/remove": "1.0.
|
|
26
|
-
"@teambit/workspace": "1.0.
|
|
22
|
+
"@teambit/component-writer": "1.0.420",
|
|
23
|
+
"@teambit/importer": "1.0.420",
|
|
24
|
+
"@teambit/logger": "0.0.1090",
|
|
25
|
+
"@teambit/remove": "1.0.420",
|
|
26
|
+
"@teambit/workspace": "1.0.420"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/lodash": "4.14.165",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"chai": "4.3.0",
|
|
33
33
|
"fs-extra": "10.0.0",
|
|
34
34
|
"@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.
|
|
35
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.60",
|
|
36
|
+
"@teambit/component.testing.mock-components": "0.0.239",
|
|
37
|
+
"@teambit/harmony.testing.load-aspect": "0.0.234",
|
|
38
|
+
"@teambit/lister": "1.0.420",
|
|
39
|
+
"@teambit/snapping": "1.0.420",
|
|
40
40
|
"@teambit/workspace.testing.mock-workspace": "0.0.27"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
File without changes
|