@teambit/component-log 1.0.503 → 1.0.505

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.component/component-log@1.0.503" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/component-log@1.0.505" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/component-log-preview"]=t():e["teambit.component/component-log-preview"]=t()}(self,(()=>(()=>{"use strict";var e={3143:(e,t,o)=>{var n={id:"teambit.component/component-log@1.0.503",homepage:"https://bit.cloud/teambit/component/component-log",exported:!0};function r(){const e=i(o(1594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const c=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/component-log.svg"}));c.__bit_component=n,t.Logo=c},1594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};o.r(n),o.d(n,{compositions:()=>m,compositions_metadata:()=>v,overview:()=>f});var r={};o.r(r),o.d(r,{default:()=>d});var i=o(3143);o(1594);const c=MdxJsReact,p=TeambitMdxUiMdxScopeContext;var a=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},s.apply(null,arguments)}var l={},u="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,a);return(0,c.mdx)(u,s({},l,o,{components:t,mdxType:"MDXLayout"}),(0,c.mdx)(p.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const m=[i],f=[r],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/component-log-preview"]=t():e["teambit.component/component-log-preview"]=t()}(self,(()=>(()=>{"use strict";var e={49:(e,t,o)=>{var n={id:"teambit.component/component-log@1.0.505",homepage:"https://bit.cloud/teambit/component/component-log",exported:!0};function r(){const e=i(o(594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const c=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/component-log.svg"}));c.__bit_component=n,t.Logo=c},594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};o.r(n),o.d(n,{compositions:()=>m,compositions_metadata:()=>v,overview:()=>f});var r={};o.r(r),o.d(r,{default:()=>d});var i=o(49);o(594);const c=MdxJsReact,p=TeambitMdxUiMdxScopeContext;var a=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},s.apply(null,arguments)}var l={},u="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,a);return(0,c.mdx)(u,s({},l,o,{components:t,mdxType:"MDXLayout"}),(0,c.mdx)(p.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const m=[i],f=[r],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
@@ -65,11 +65,7 @@
65
65
  "line": 62,
66
66
  "character": 34
67
67
  },
68
- "name": "Workspace",
69
- "componentId": {
70
- "scope": "teambit.workspace",
71
- "name": "workspace"
72
- }
68
+ "name": "Workspace"
73
69
  },
74
70
  {
75
71
  "__schema": "KeywordTypeSchema",
@@ -153,8 +149,7 @@
153
149
  "line": 67,
154
150
  "character": 38
155
151
  },
156
- "name": "LogOpts",
157
- "internalFilePath": "component-log.main.runtime.ts"
152
+ "name": "LogOpts"
158
153
  },
159
154
  "isOptional": true,
160
155
  "defaultValue": "{}",
@@ -197,7 +192,7 @@
197
192
  "__schema": "FunctionLikeSchema",
198
193
  "location": {
199
194
  "filePath": "component-log.main.runtime.ts",
200
- "line": 86,
195
+ "line": 91,
201
196
  "character": 3
202
197
  },
203
198
  "signature": "(method) ComponentLogMain.getLogsWithParents(id: string, options: LogOpts): Promise<string[]>",
@@ -207,7 +202,7 @@
207
202
  "__schema": "ParameterSchema",
208
203
  "location": {
209
204
  "filePath": "component-log.main.runtime.ts",
210
- "line": 86,
205
+ "line": 91,
211
206
  "character": 28
212
207
  },
213
208
  "name": "id",
@@ -215,7 +210,7 @@
215
210
  "__schema": "KeywordTypeSchema",
216
211
  "location": {
217
212
  "filePath": "component-log.main.runtime.ts",
218
- "line": 86,
213
+ "line": 91,
219
214
  "character": 32
220
215
  },
221
216
  "name": "string"
@@ -227,7 +222,7 @@
227
222
  "__schema": "ParameterSchema",
228
223
  "location": {
229
224
  "filePath": "component-log.main.runtime.ts",
230
- "line": 86,
225
+ "line": 91,
231
226
  "character": 40
232
227
  },
233
228
  "name": "options",
@@ -235,11 +230,10 @@
235
230
  "__schema": "TypeRefSchema",
236
231
  "location": {
237
232
  "filePath": "component-log.main.runtime.ts",
238
- "line": 86,
233
+ "line": 91,
239
234
  "character": 49
240
235
  },
241
- "name": "LogOpts",
242
- "internalFilePath": "component-log.main.runtime.ts"
236
+ "name": "LogOpts"
243
237
  },
244
238
  "isOptional": false,
245
239
  "isSpread": false
@@ -249,7 +243,7 @@
249
243
  "__schema": "InferenceTypeSchema",
250
244
  "location": {
251
245
  "filePath": "component-log.main.runtime.ts",
252
- "line": 86,
246
+ "line": 91,
253
247
  "character": 3
254
248
  },
255
249
  "type": "Promise<string[]>"
@@ -262,7 +256,7 @@
262
256
  "__schema": "FunctionLikeSchema",
263
257
  "location": {
264
258
  "filePath": "component-log.main.runtime.ts",
265
- "line": 93,
259
+ "line": 98,
266
260
  "character": 3
267
261
  },
268
262
  "signature": "(method) ComponentLogMain.getChangedFilesFromParent(id: string): Promise<FileHashDiffFromParent[]>",
@@ -272,7 +266,7 @@
272
266
  "__schema": "ParameterSchema",
273
267
  "location": {
274
268
  "filePath": "component-log.main.runtime.ts",
275
- "line": 93,
269
+ "line": 98,
276
270
  "character": 35
277
271
  },
278
272
  "name": "id",
@@ -280,7 +274,7 @@
280
274
  "__schema": "KeywordTypeSchema",
281
275
  "location": {
282
276
  "filePath": "component-log.main.runtime.ts",
283
- "line": 93,
277
+ "line": 98,
284
278
  "character": 39
285
279
  },
286
280
  "name": "string"
@@ -293,7 +287,7 @@
293
287
  "__schema": "TypeRefSchema",
294
288
  "location": {
295
289
  "filePath": "component-log.main.runtime.ts",
296
- "line": 93,
290
+ "line": 98,
297
291
  "character": 48
298
292
  },
299
293
  "name": "Promise",
@@ -302,14 +296,14 @@
302
296
  "__schema": "TypeArraySchema",
303
297
  "location": {
304
298
  "filePath": "component-log.main.runtime.ts",
305
- "line": 93,
299
+ "line": 98,
306
300
  "character": 56
307
301
  },
308
302
  "type": {
309
303
  "__schema": "TypeRefSchema",
310
304
  "location": {
311
305
  "filePath": "component-log.main.runtime.ts",
312
- "line": 93,
306
+ "line": 98,
313
307
  "character": 56
314
308
  },
315
309
  "name": "FileHashDiffFromParent"
@@ -325,7 +319,7 @@
325
319
  "__schema": "FunctionLikeSchema",
326
320
  "location": {
327
321
  "filePath": "component-log.main.runtime.ts",
328
- "line": 133,
322
+ "line": 138,
329
323
  "character": 3
330
324
  },
331
325
  "signature": "(method) ComponentLogMain.getFileHistoryHashes(filePath: PathOsBasedAbsolute): Promise<FileLog[]>",
@@ -335,7 +329,7 @@
335
329
  "__schema": "ParameterSchema",
336
330
  "location": {
337
331
  "filePath": "component-log.main.runtime.ts",
338
- "line": 133,
332
+ "line": 138,
339
333
  "character": 30
340
334
  },
341
335
  "name": "filePath",
@@ -343,15 +337,10 @@
343
337
  "__schema": "TypeRefSchema",
344
338
  "location": {
345
339
  "filePath": "component-log.main.runtime.ts",
346
- "line": 133,
340
+ "line": 138,
347
341
  "character": 40
348
342
  },
349
- "name": "PathOsBasedAbsolute",
350
- "componentId": {
351
- "scope": "teambit.toolbox",
352
- "name": "path/path",
353
- "version": "0.0.5"
354
- }
343
+ "name": "PathOsBasedAbsolute"
355
344
  },
356
345
  "isOptional": false,
357
346
  "isSpread": false
@@ -361,7 +350,7 @@
361
350
  "__schema": "TypeRefSchema",
362
351
  "location": {
363
352
  "filePath": "component-log.main.runtime.ts",
364
- "line": 133,
353
+ "line": 138,
365
354
  "character": 62
366
355
  },
367
356
  "name": "Promise",
@@ -370,18 +359,17 @@
370
359
  "__schema": "TypeArraySchema",
371
360
  "location": {
372
361
  "filePath": "component-log.main.runtime.ts",
373
- "line": 133,
362
+ "line": 138,
374
363
  "character": 70
375
364
  },
376
365
  "type": {
377
366
  "__schema": "TypeRefSchema",
378
367
  "location": {
379
368
  "filePath": "component-log.main.runtime.ts",
380
- "line": 133,
369
+ "line": 138,
381
370
  "character": 70
382
371
  },
383
- "name": "FileLog",
384
- "internalFilePath": "component-log.main.runtime.ts"
372
+ "name": "FileLog"
385
373
  }
386
374
  }
387
375
  ]
@@ -394,7 +382,7 @@
394
382
  "__schema": "FunctionLikeSchema",
395
383
  "location": {
396
384
  "filePath": "component-log.main.runtime.ts",
397
- "line": 211,
385
+ "line": 216,
398
386
  "character": 3
399
387
  },
400
388
  "signature": "(method) ComponentLogMain.blame(filePath: PathOsBased): Promise<BlameLineInfo[]>",
@@ -404,7 +392,7 @@
404
392
  "__schema": "ParameterSchema",
405
393
  "location": {
406
394
  "filePath": "component-log.main.runtime.ts",
407
- "line": 211,
395
+ "line": 216,
408
396
  "character": 15
409
397
  },
410
398
  "name": "filePath",
@@ -412,15 +400,10 @@
412
400
  "__schema": "TypeRefSchema",
413
401
  "location": {
414
402
  "filePath": "component-log.main.runtime.ts",
415
- "line": 211,
403
+ "line": 216,
416
404
  "character": 25
417
405
  },
418
- "name": "PathOsBased",
419
- "componentId": {
420
- "scope": "teambit.toolbox",
421
- "name": "path/path",
422
- "version": "0.0.5"
423
- }
406
+ "name": "PathOsBased"
424
407
  },
425
408
  "isOptional": false,
426
409
  "isSpread": false
@@ -430,7 +413,7 @@
430
413
  "__schema": "TypeRefSchema",
431
414
  "location": {
432
415
  "filePath": "component-log.main.runtime.ts",
433
- "line": 211,
416
+ "line": 216,
434
417
  "character": 39
435
418
  },
436
419
  "name": "Promise",
@@ -439,18 +422,17 @@
439
422
  "__schema": "TypeArraySchema",
440
423
  "location": {
441
424
  "filePath": "component-log.main.runtime.ts",
442
- "line": 211,
425
+ "line": 216,
443
426
  "character": 47
444
427
  },
445
428
  "type": {
446
429
  "__schema": "TypeRefSchema",
447
430
  "location": {
448
431
  "filePath": "component-log.main.runtime.ts",
449
- "line": 211,
432
+ "line": 216,
450
433
  "character": 47
451
434
  },
452
- "name": "BlameLineInfo",
453
- "internalFilePath": "component-log.main.runtime.ts"
435
+ "name": "BlameLineInfo"
454
436
  }
455
437
  }
456
438
  ]
@@ -463,7 +445,7 @@
463
445
  "__schema": "FunctionLikeSchema",
464
446
  "location": {
465
447
  "filePath": "component-log.main.runtime.ts",
466
- "line": 306,
448
+ "line": 311,
467
449
  "character": 3
468
450
  },
469
451
  "signature": "(method) ComponentLogMain.getFileLog(filePath: string): Promise<FileLog[]>",
@@ -473,7 +455,7 @@
473
455
  "__schema": "ParameterSchema",
474
456
  "location": {
475
457
  "filePath": "component-log.main.runtime.ts",
476
- "line": 306,
458
+ "line": 311,
477
459
  "character": 20
478
460
  },
479
461
  "name": "filePath",
@@ -481,7 +463,7 @@
481
463
  "__schema": "KeywordTypeSchema",
482
464
  "location": {
483
465
  "filePath": "component-log.main.runtime.ts",
484
- "line": 306,
466
+ "line": 311,
485
467
  "character": 30
486
468
  },
487
469
  "name": "string"
@@ -494,7 +476,7 @@
494
476
  "__schema": "InferenceTypeSchema",
495
477
  "location": {
496
478
  "filePath": "component-log.main.runtime.ts",
497
- "line": 306,
479
+ "line": 311,
498
480
  "character": 3
499
481
  },
500
482
  "type": "Promise<FileLog[]>"
@@ -507,7 +489,7 @@
507
489
  "__schema": "VariableLikeSchema",
508
490
  "location": {
509
491
  "filePath": "component-log.main.runtime.ts",
510
- "line": 363,
492
+ "line": 368,
511
493
  "character": 3
512
494
  },
513
495
  "signature": "(property) ComponentLogMain.slots: never[]",
@@ -516,7 +498,7 @@
516
498
  "__schema": "InferenceTypeSchema",
517
499
  "location": {
518
500
  "filePath": "component-log.main.runtime.ts",
519
- "line": 363,
501
+ "line": 368,
520
502
  "character": 3
521
503
  },
522
504
  "type": "never[]"
@@ -528,7 +510,7 @@
528
510
  "__schema": "VariableLikeSchema",
529
511
  "location": {
530
512
  "filePath": "component-log.main.runtime.ts",
531
- "line": 364,
513
+ "line": 369,
532
514
  "character": 3
533
515
  },
534
516
  "signature": "(property) ComponentLogMain.dependencies: Aspect[]",
@@ -537,7 +519,7 @@
537
519
  "__schema": "InferenceTypeSchema",
538
520
  "location": {
539
521
  "filePath": "component-log.main.runtime.ts",
540
- "line": 364,
522
+ "line": 369,
541
523
  "character": 3
542
524
  },
543
525
  "type": "Aspect[]"
@@ -549,7 +531,7 @@
549
531
  "__schema": "VariableLikeSchema",
550
532
  "location": {
551
533
  "filePath": "component-log.main.runtime.ts",
552
- "line": 365,
534
+ "line": 370,
553
535
  "character": 3
554
536
  },
555
537
  "signature": "(property) ComponentLogMain.runtime: RuntimeDefinition",
@@ -558,7 +540,7 @@
558
540
  "__schema": "InferenceTypeSchema",
559
541
  "location": {
560
542
  "filePath": "component-log.main.runtime.ts",
561
- "line": 365,
543
+ "line": 370,
562
544
  "character": 3
563
545
  },
564
546
  "type": "RuntimeDefinition"
@@ -570,7 +552,7 @@
570
552
  "__schema": "FunctionLikeSchema",
571
553
  "location": {
572
554
  "filePath": "component-log.main.runtime.ts",
573
- "line": 366,
555
+ "line": 371,
574
556
  "character": 3
575
557
  },
576
558
  "signature": "(method) ComponentLogMain.provider([cli, workspace]: [CLIMain, Workspace]): Promise<ComponentLogMain>",
@@ -580,7 +562,7 @@
580
562
  "__schema": "ParameterSchema",
581
563
  "location": {
582
564
  "filePath": "component-log.main.runtime.ts",
583
- "line": 366,
565
+ "line": 371,
584
566
  "character": 25
585
567
  },
586
568
  "name": "[ cli, workspace ]",
@@ -588,7 +570,7 @@
588
570
  "__schema": "TupleTypeSchema",
589
571
  "location": {
590
572
  "filePath": "component-log.main.runtime.ts",
591
- "line": 366,
573
+ "line": 371,
592
574
  "character": 43
593
575
  },
594
576
  "elements": [
@@ -596,27 +578,19 @@
596
578
  "__schema": "TypeRefSchema",
597
579
  "location": {
598
580
  "filePath": "component-log.main.runtime.ts",
599
- "line": 366,
581
+ "line": 371,
600
582
  "character": 44
601
583
  },
602
- "name": "CLIMain",
603
- "componentId": {
604
- "scope": "teambit.harmony",
605
- "name": "cli"
606
- }
584
+ "name": "CLIMain"
607
585
  },
608
586
  {
609
587
  "__schema": "TypeRefSchema",
610
588
  "location": {
611
589
  "filePath": "component-log.main.runtime.ts",
612
- "line": 366,
590
+ "line": 371,
613
591
  "character": 53
614
592
  },
615
- "name": "Workspace",
616
- "componentId": {
617
- "scope": "teambit.workspace",
618
- "name": "workspace"
619
- }
593
+ "name": "Workspace"
620
594
  }
621
595
  ]
622
596
  },
@@ -628,7 +602,7 @@
628
602
  "__schema": "InferenceTypeSchema",
629
603
  "location": {
630
604
  "filePath": "component-log.main.runtime.ts",
631
- "line": 366,
605
+ "line": 371,
632
606
  "character": 3
633
607
  },
634
608
  "type": "Promise<ComponentLogMain>"
@@ -1462,11 +1436,7 @@
1462
1436
  "line": 62,
1463
1437
  "character": 34
1464
1438
  },
1465
- "name": "Workspace",
1466
- "componentId": {
1467
- "scope": "teambit.workspace",
1468
- "name": "workspace"
1469
- }
1439
+ "name": "Workspace"
1470
1440
  },
1471
1441
  {
1472
1442
  "__schema": "KeywordTypeSchema",
@@ -1550,8 +1520,7 @@
1550
1520
  "line": 67,
1551
1521
  "character": 38
1552
1522
  },
1553
- "name": "LogOpts",
1554
- "internalFilePath": "component-log.main.runtime.ts"
1523
+ "name": "LogOpts"
1555
1524
  },
1556
1525
  "isOptional": true,
1557
1526
  "defaultValue": "{}",
@@ -1594,7 +1563,7 @@
1594
1563
  "__schema": "FunctionLikeSchema",
1595
1564
  "location": {
1596
1565
  "filePath": "component-log.main.runtime.ts",
1597
- "line": 86,
1566
+ "line": 91,
1598
1567
  "character": 3
1599
1568
  },
1600
1569
  "signature": "(method) ComponentLogMain.getLogsWithParents(id: string, options: LogOpts): Promise<string[]>",
@@ -1604,7 +1573,7 @@
1604
1573
  "__schema": "ParameterSchema",
1605
1574
  "location": {
1606
1575
  "filePath": "component-log.main.runtime.ts",
1607
- "line": 86,
1576
+ "line": 91,
1608
1577
  "character": 28
1609
1578
  },
1610
1579
  "name": "id",
@@ -1612,7 +1581,7 @@
1612
1581
  "__schema": "KeywordTypeSchema",
1613
1582
  "location": {
1614
1583
  "filePath": "component-log.main.runtime.ts",
1615
- "line": 86,
1584
+ "line": 91,
1616
1585
  "character": 32
1617
1586
  },
1618
1587
  "name": "string"
@@ -1624,7 +1593,7 @@
1624
1593
  "__schema": "ParameterSchema",
1625
1594
  "location": {
1626
1595
  "filePath": "component-log.main.runtime.ts",
1627
- "line": 86,
1596
+ "line": 91,
1628
1597
  "character": 40
1629
1598
  },
1630
1599
  "name": "options",
@@ -1632,11 +1601,10 @@
1632
1601
  "__schema": "TypeRefSchema",
1633
1602
  "location": {
1634
1603
  "filePath": "component-log.main.runtime.ts",
1635
- "line": 86,
1604
+ "line": 91,
1636
1605
  "character": 49
1637
1606
  },
1638
- "name": "LogOpts",
1639
- "internalFilePath": "component-log.main.runtime.ts"
1607
+ "name": "LogOpts"
1640
1608
  },
1641
1609
  "isOptional": false,
1642
1610
  "isSpread": false
@@ -1646,7 +1614,7 @@
1646
1614
  "__schema": "InferenceTypeSchema",
1647
1615
  "location": {
1648
1616
  "filePath": "component-log.main.runtime.ts",
1649
- "line": 86,
1617
+ "line": 91,
1650
1618
  "character": 3
1651
1619
  },
1652
1620
  "type": "Promise<string[]>"
@@ -1659,7 +1627,7 @@
1659
1627
  "__schema": "FunctionLikeSchema",
1660
1628
  "location": {
1661
1629
  "filePath": "component-log.main.runtime.ts",
1662
- "line": 93,
1630
+ "line": 98,
1663
1631
  "character": 3
1664
1632
  },
1665
1633
  "signature": "(method) ComponentLogMain.getChangedFilesFromParent(id: string): Promise<FileHashDiffFromParent[]>",
@@ -1669,7 +1637,7 @@
1669
1637
  "__schema": "ParameterSchema",
1670
1638
  "location": {
1671
1639
  "filePath": "component-log.main.runtime.ts",
1672
- "line": 93,
1640
+ "line": 98,
1673
1641
  "character": 35
1674
1642
  },
1675
1643
  "name": "id",
@@ -1677,7 +1645,7 @@
1677
1645
  "__schema": "KeywordTypeSchema",
1678
1646
  "location": {
1679
1647
  "filePath": "component-log.main.runtime.ts",
1680
- "line": 93,
1648
+ "line": 98,
1681
1649
  "character": 39
1682
1650
  },
1683
1651
  "name": "string"
@@ -1690,7 +1658,7 @@
1690
1658
  "__schema": "TypeRefSchema",
1691
1659
  "location": {
1692
1660
  "filePath": "component-log.main.runtime.ts",
1693
- "line": 93,
1661
+ "line": 98,
1694
1662
  "character": 48
1695
1663
  },
1696
1664
  "name": "Promise",
@@ -1699,14 +1667,14 @@
1699
1667
  "__schema": "TypeArraySchema",
1700
1668
  "location": {
1701
1669
  "filePath": "component-log.main.runtime.ts",
1702
- "line": 93,
1670
+ "line": 98,
1703
1671
  "character": 56
1704
1672
  },
1705
1673
  "type": {
1706
1674
  "__schema": "TypeRefSchema",
1707
1675
  "location": {
1708
1676
  "filePath": "component-log.main.runtime.ts",
1709
- "line": 93,
1677
+ "line": 98,
1710
1678
  "character": 56
1711
1679
  },
1712
1680
  "name": "FileHashDiffFromParent"
@@ -1722,7 +1690,7 @@
1722
1690
  "__schema": "FunctionLikeSchema",
1723
1691
  "location": {
1724
1692
  "filePath": "component-log.main.runtime.ts",
1725
- "line": 133,
1693
+ "line": 138,
1726
1694
  "character": 3
1727
1695
  },
1728
1696
  "signature": "(method) ComponentLogMain.getFileHistoryHashes(filePath: PathOsBasedAbsolute): Promise<FileLog[]>",
@@ -1732,7 +1700,7 @@
1732
1700
  "__schema": "ParameterSchema",
1733
1701
  "location": {
1734
1702
  "filePath": "component-log.main.runtime.ts",
1735
- "line": 133,
1703
+ "line": 138,
1736
1704
  "character": 30
1737
1705
  },
1738
1706
  "name": "filePath",
@@ -1740,15 +1708,10 @@
1740
1708
  "__schema": "TypeRefSchema",
1741
1709
  "location": {
1742
1710
  "filePath": "component-log.main.runtime.ts",
1743
- "line": 133,
1711
+ "line": 138,
1744
1712
  "character": 40
1745
1713
  },
1746
- "name": "PathOsBasedAbsolute",
1747
- "componentId": {
1748
- "scope": "teambit.toolbox",
1749
- "name": "path/path",
1750
- "version": "0.0.5"
1751
- }
1714
+ "name": "PathOsBasedAbsolute"
1752
1715
  },
1753
1716
  "isOptional": false,
1754
1717
  "isSpread": false
@@ -1758,7 +1721,7 @@
1758
1721
  "__schema": "TypeRefSchema",
1759
1722
  "location": {
1760
1723
  "filePath": "component-log.main.runtime.ts",
1761
- "line": 133,
1724
+ "line": 138,
1762
1725
  "character": 62
1763
1726
  },
1764
1727
  "name": "Promise",
@@ -1767,18 +1730,17 @@
1767
1730
  "__schema": "TypeArraySchema",
1768
1731
  "location": {
1769
1732
  "filePath": "component-log.main.runtime.ts",
1770
- "line": 133,
1733
+ "line": 138,
1771
1734
  "character": 70
1772
1735
  },
1773
1736
  "type": {
1774
1737
  "__schema": "TypeRefSchema",
1775
1738
  "location": {
1776
1739
  "filePath": "component-log.main.runtime.ts",
1777
- "line": 133,
1740
+ "line": 138,
1778
1741
  "character": 70
1779
1742
  },
1780
- "name": "FileLog",
1781
- "internalFilePath": "component-log.main.runtime.ts"
1743
+ "name": "FileLog"
1782
1744
  }
1783
1745
  }
1784
1746
  ]
@@ -1791,7 +1753,7 @@
1791
1753
  "__schema": "FunctionLikeSchema",
1792
1754
  "location": {
1793
1755
  "filePath": "component-log.main.runtime.ts",
1794
- "line": 211,
1756
+ "line": 216,
1795
1757
  "character": 3
1796
1758
  },
1797
1759
  "signature": "(method) ComponentLogMain.blame(filePath: PathOsBased): Promise<BlameLineInfo[]>",
@@ -1801,7 +1763,7 @@
1801
1763
  "__schema": "ParameterSchema",
1802
1764
  "location": {
1803
1765
  "filePath": "component-log.main.runtime.ts",
1804
- "line": 211,
1766
+ "line": 216,
1805
1767
  "character": 15
1806
1768
  },
1807
1769
  "name": "filePath",
@@ -1809,15 +1771,10 @@
1809
1771
  "__schema": "TypeRefSchema",
1810
1772
  "location": {
1811
1773
  "filePath": "component-log.main.runtime.ts",
1812
- "line": 211,
1774
+ "line": 216,
1813
1775
  "character": 25
1814
1776
  },
1815
- "name": "PathOsBased",
1816
- "componentId": {
1817
- "scope": "teambit.toolbox",
1818
- "name": "path/path",
1819
- "version": "0.0.5"
1820
- }
1777
+ "name": "PathOsBased"
1821
1778
  },
1822
1779
  "isOptional": false,
1823
1780
  "isSpread": false
@@ -1827,7 +1784,7 @@
1827
1784
  "__schema": "TypeRefSchema",
1828
1785
  "location": {
1829
1786
  "filePath": "component-log.main.runtime.ts",
1830
- "line": 211,
1787
+ "line": 216,
1831
1788
  "character": 39
1832
1789
  },
1833
1790
  "name": "Promise",
@@ -1836,18 +1793,17 @@
1836
1793
  "__schema": "TypeArraySchema",
1837
1794
  "location": {
1838
1795
  "filePath": "component-log.main.runtime.ts",
1839
- "line": 211,
1796
+ "line": 216,
1840
1797
  "character": 47
1841
1798
  },
1842
1799
  "type": {
1843
1800
  "__schema": "TypeRefSchema",
1844
1801
  "location": {
1845
1802
  "filePath": "component-log.main.runtime.ts",
1846
- "line": 211,
1803
+ "line": 216,
1847
1804
  "character": 47
1848
1805
  },
1849
- "name": "BlameLineInfo",
1850
- "internalFilePath": "component-log.main.runtime.ts"
1806
+ "name": "BlameLineInfo"
1851
1807
  }
1852
1808
  }
1853
1809
  ]
@@ -1860,7 +1816,7 @@
1860
1816
  "__schema": "FunctionLikeSchema",
1861
1817
  "location": {
1862
1818
  "filePath": "component-log.main.runtime.ts",
1863
- "line": 306,
1819
+ "line": 311,
1864
1820
  "character": 3
1865
1821
  },
1866
1822
  "signature": "(method) ComponentLogMain.getFileLog(filePath: string): Promise<FileLog[]>",
@@ -1870,7 +1826,7 @@
1870
1826
  "__schema": "ParameterSchema",
1871
1827
  "location": {
1872
1828
  "filePath": "component-log.main.runtime.ts",
1873
- "line": 306,
1829
+ "line": 311,
1874
1830
  "character": 20
1875
1831
  },
1876
1832
  "name": "filePath",
@@ -1878,7 +1834,7 @@
1878
1834
  "__schema": "KeywordTypeSchema",
1879
1835
  "location": {
1880
1836
  "filePath": "component-log.main.runtime.ts",
1881
- "line": 306,
1837
+ "line": 311,
1882
1838
  "character": 30
1883
1839
  },
1884
1840
  "name": "string"
@@ -1891,7 +1847,7 @@
1891
1847
  "__schema": "InferenceTypeSchema",
1892
1848
  "location": {
1893
1849
  "filePath": "component-log.main.runtime.ts",
1894
- "line": 306,
1850
+ "line": 311,
1895
1851
  "character": 3
1896
1852
  },
1897
1853
  "type": "Promise<FileLog[]>"
@@ -1904,7 +1860,7 @@
1904
1860
  "__schema": "VariableLikeSchema",
1905
1861
  "location": {
1906
1862
  "filePath": "component-log.main.runtime.ts",
1907
- "line": 363,
1863
+ "line": 368,
1908
1864
  "character": 3
1909
1865
  },
1910
1866
  "signature": "(property) ComponentLogMain.slots: never[]",
@@ -1913,7 +1869,7 @@
1913
1869
  "__schema": "InferenceTypeSchema",
1914
1870
  "location": {
1915
1871
  "filePath": "component-log.main.runtime.ts",
1916
- "line": 363,
1872
+ "line": 368,
1917
1873
  "character": 3
1918
1874
  },
1919
1875
  "type": "never[]"
@@ -1925,7 +1881,7 @@
1925
1881
  "__schema": "VariableLikeSchema",
1926
1882
  "location": {
1927
1883
  "filePath": "component-log.main.runtime.ts",
1928
- "line": 364,
1884
+ "line": 369,
1929
1885
  "character": 3
1930
1886
  },
1931
1887
  "signature": "(property) ComponentLogMain.dependencies: Aspect[]",
@@ -1934,7 +1890,7 @@
1934
1890
  "__schema": "InferenceTypeSchema",
1935
1891
  "location": {
1936
1892
  "filePath": "component-log.main.runtime.ts",
1937
- "line": 364,
1893
+ "line": 369,
1938
1894
  "character": 3
1939
1895
  },
1940
1896
  "type": "Aspect[]"
@@ -1946,7 +1902,7 @@
1946
1902
  "__schema": "VariableLikeSchema",
1947
1903
  "location": {
1948
1904
  "filePath": "component-log.main.runtime.ts",
1949
- "line": 365,
1905
+ "line": 370,
1950
1906
  "character": 3
1951
1907
  },
1952
1908
  "signature": "(property) ComponentLogMain.runtime: RuntimeDefinition",
@@ -1955,7 +1911,7 @@
1955
1911
  "__schema": "InferenceTypeSchema",
1956
1912
  "location": {
1957
1913
  "filePath": "component-log.main.runtime.ts",
1958
- "line": 365,
1914
+ "line": 370,
1959
1915
  "character": 3
1960
1916
  },
1961
1917
  "type": "RuntimeDefinition"
@@ -1967,7 +1923,7 @@
1967
1923
  "__schema": "FunctionLikeSchema",
1968
1924
  "location": {
1969
1925
  "filePath": "component-log.main.runtime.ts",
1970
- "line": 366,
1926
+ "line": 371,
1971
1927
  "character": 3
1972
1928
  },
1973
1929
  "signature": "(method) ComponentLogMain.provider([cli, workspace]: [CLIMain, Workspace]): Promise<ComponentLogMain>",
@@ -1977,7 +1933,7 @@
1977
1933
  "__schema": "ParameterSchema",
1978
1934
  "location": {
1979
1935
  "filePath": "component-log.main.runtime.ts",
1980
- "line": 366,
1936
+ "line": 371,
1981
1937
  "character": 25
1982
1938
  },
1983
1939
  "name": "[ cli, workspace ]",
@@ -1985,7 +1941,7 @@
1985
1941
  "__schema": "TupleTypeSchema",
1986
1942
  "location": {
1987
1943
  "filePath": "component-log.main.runtime.ts",
1988
- "line": 366,
1944
+ "line": 371,
1989
1945
  "character": 43
1990
1946
  },
1991
1947
  "elements": [
@@ -1993,27 +1949,19 @@
1993
1949
  "__schema": "TypeRefSchema",
1994
1950
  "location": {
1995
1951
  "filePath": "component-log.main.runtime.ts",
1996
- "line": 366,
1952
+ "line": 371,
1997
1953
  "character": 44
1998
1954
  },
1999
- "name": "CLIMain",
2000
- "componentId": {
2001
- "scope": "teambit.harmony",
2002
- "name": "cli"
2003
- }
1955
+ "name": "CLIMain"
2004
1956
  },
2005
1957
  {
2006
1958
  "__schema": "TypeRefSchema",
2007
1959
  "location": {
2008
1960
  "filePath": "component-log.main.runtime.ts",
2009
- "line": 366,
1961
+ "line": 371,
2010
1962
  "character": 53
2011
1963
  },
2012
- "name": "Workspace",
2013
- "componentId": {
2014
- "scope": "teambit.workspace",
2015
- "name": "workspace"
2016
- }
1964
+ "name": "Workspace"
2017
1965
  }
2018
1966
  ]
2019
1967
  },
@@ -2025,7 +1973,7 @@
2025
1973
  "__schema": "InferenceTypeSchema",
2026
1974
  "location": {
2027
1975
  "filePath": "component-log.main.runtime.ts",
2028
- "line": 366,
1976
+ "line": 371,
2029
1977
  "character": 3
2030
1978
  },
2031
1979
  "type": "Promise<ComponentLogMain>"
@@ -2043,7 +1991,7 @@
2043
1991
  "__schema": "TypeSchema",
2044
1992
  "location": {
2045
1993
  "filePath": "component-log.main.runtime.ts",
2046
- "line": 375,
1994
+ "line": 380,
2047
1995
  "character": 1
2048
1996
  },
2049
1997
  "signature": "type ComponentLogInfo = {\n hash: string;\n message: string;\n onLane?: boolean | undefined;\n parents: string[];\n username?: string | undefined;\n email?: string | undefined;\n date?: string | undefined;\n tag?: string | undefined;\n}",
@@ -2052,7 +2000,7 @@
2052
2000
  "__schema": "TypeLiteralSchema",
2053
2001
  "location": {
2054
2002
  "filePath": "component-log.main.runtime.ts",
2055
- "line": 375,
2003
+ "line": 380,
2056
2004
  "character": 32
2057
2005
  },
2058
2006
  "members": [
@@ -2060,7 +2008,7 @@
2060
2008
  "__schema": "VariableLikeSchema",
2061
2009
  "location": {
2062
2010
  "filePath": "component-log.main.runtime.ts",
2063
- "line": 376,
2011
+ "line": 381,
2064
2012
  "character": 3
2065
2013
  },
2066
2014
  "signature": "(property) hash: string",
@@ -2069,7 +2017,7 @@
2069
2017
  "__schema": "KeywordTypeSchema",
2070
2018
  "location": {
2071
2019
  "filePath": "component-log.main.runtime.ts",
2072
- "line": 376,
2020
+ "line": 381,
2073
2021
  "character": 9
2074
2022
  },
2075
2023
  "name": "string"
@@ -2080,7 +2028,7 @@
2080
2028
  "__schema": "VariableLikeSchema",
2081
2029
  "location": {
2082
2030
  "filePath": "component-log.main.runtime.ts",
2083
- "line": 377,
2031
+ "line": 382,
2084
2032
  "character": 3
2085
2033
  },
2086
2034
  "signature": "(property) message: string",
@@ -2089,7 +2037,7 @@
2089
2037
  "__schema": "KeywordTypeSchema",
2090
2038
  "location": {
2091
2039
  "filePath": "component-log.main.runtime.ts",
2092
- "line": 377,
2040
+ "line": 382,
2093
2041
  "character": 12
2094
2042
  },
2095
2043
  "name": "string"
@@ -2100,7 +2048,7 @@
2100
2048
  "__schema": "VariableLikeSchema",
2101
2049
  "location": {
2102
2050
  "filePath": "component-log.main.runtime.ts",
2103
- "line": 378,
2051
+ "line": 383,
2104
2052
  "character": 3
2105
2053
  },
2106
2054
  "signature": "(property) onLane?: boolean | undefined",
@@ -2109,7 +2057,7 @@
2109
2057
  "__schema": "KeywordTypeSchema",
2110
2058
  "location": {
2111
2059
  "filePath": "component-log.main.runtime.ts",
2112
- "line": 378,
2060
+ "line": 383,
2113
2061
  "character": 12
2114
2062
  },
2115
2063
  "name": "boolean"
@@ -2120,7 +2068,7 @@
2120
2068
  "__schema": "VariableLikeSchema",
2121
2069
  "location": {
2122
2070
  "filePath": "component-log.main.runtime.ts",
2123
- "line": 379,
2071
+ "line": 384,
2124
2072
  "character": 3
2125
2073
  },
2126
2074
  "signature": "(property) parents: string[]",
@@ -2129,14 +2077,14 @@
2129
2077
  "__schema": "TypeArraySchema",
2130
2078
  "location": {
2131
2079
  "filePath": "component-log.main.runtime.ts",
2132
- "line": 379,
2080
+ "line": 384,
2133
2081
  "character": 12
2134
2082
  },
2135
2083
  "type": {
2136
2084
  "__schema": "KeywordTypeSchema",
2137
2085
  "location": {
2138
2086
  "filePath": "component-log.main.runtime.ts",
2139
- "line": 379,
2087
+ "line": 384,
2140
2088
  "character": 12
2141
2089
  },
2142
2090
  "name": "string"
@@ -2148,7 +2096,7 @@
2148
2096
  "__schema": "VariableLikeSchema",
2149
2097
  "location": {
2150
2098
  "filePath": "component-log.main.runtime.ts",
2151
- "line": 380,
2099
+ "line": 385,
2152
2100
  "character": 3
2153
2101
  },
2154
2102
  "signature": "(property) username?: string | undefined",
@@ -2157,7 +2105,7 @@
2157
2105
  "__schema": "KeywordTypeSchema",
2158
2106
  "location": {
2159
2107
  "filePath": "component-log.main.runtime.ts",
2160
- "line": 380,
2108
+ "line": 385,
2161
2109
  "character": 14
2162
2110
  },
2163
2111
  "name": "string"
@@ -2168,7 +2116,7 @@
2168
2116
  "__schema": "VariableLikeSchema",
2169
2117
  "location": {
2170
2118
  "filePath": "component-log.main.runtime.ts",
2171
- "line": 381,
2119
+ "line": 386,
2172
2120
  "character": 3
2173
2121
  },
2174
2122
  "signature": "(property) email?: string | undefined",
@@ -2177,7 +2125,7 @@
2177
2125
  "__schema": "KeywordTypeSchema",
2178
2126
  "location": {
2179
2127
  "filePath": "component-log.main.runtime.ts",
2180
- "line": 381,
2128
+ "line": 386,
2181
2129
  "character": 11
2182
2130
  },
2183
2131
  "name": "string"
@@ -2188,7 +2136,7 @@
2188
2136
  "__schema": "VariableLikeSchema",
2189
2137
  "location": {
2190
2138
  "filePath": "component-log.main.runtime.ts",
2191
- "line": 382,
2139
+ "line": 387,
2192
2140
  "character": 3
2193
2141
  },
2194
2142
  "signature": "(property) date?: string | undefined",
@@ -2197,7 +2145,7 @@
2197
2145
  "__schema": "KeywordTypeSchema",
2198
2146
  "location": {
2199
2147
  "filePath": "component-log.main.runtime.ts",
2200
- "line": 382,
2148
+ "line": 387,
2201
2149
  "character": 10
2202
2150
  },
2203
2151
  "name": "string"
@@ -2208,7 +2156,7 @@
2208
2156
  "__schema": "VariableLikeSchema",
2209
2157
  "location": {
2210
2158
  "filePath": "component-log.main.runtime.ts",
2211
- "line": 383,
2159
+ "line": 388,
2212
2160
  "character": 3
2213
2161
  },
2214
2162
  "signature": "(property) tag?: string | undefined",
@@ -2217,7 +2165,7 @@
2217
2165
  "__schema": "KeywordTypeSchema",
2218
2166
  "location": {
2219
2167
  "filePath": "component-log.main.runtime.ts",
2220
- "line": 383,
2168
+ "line": 388,
2221
2169
  "character": 9
2222
2170
  },
2223
2171
  "name": "string"
@@ -2233,7 +2181,7 @@
2233
2181
  "__schema": "UnImplementedSchema",
2234
2182
  "location": {
2235
2183
  "filePath": "component-log.main.runtime.ts",
2236
- "line": 373,
2184
+ "line": 378,
2237
2185
  "character": 1
2238
2186
  },
2239
2187
  "name": "ComponentLogAspect.addRuntime(ComponentLogMain);",
@@ -2282,7 +2230,7 @@
2282
2230
  "componentId": {
2283
2231
  "scope": "teambit.component",
2284
2232
  "name": "component-log",
2285
- "version": "1.0.503"
2233
+ "version": "1.0.505"
2286
2234
  },
2287
2235
  "taggedModuleExports": []
2288
2236
  }
@@ -163,7 +163,12 @@ class ComponentLogMain {
163
163
  }
164
164
  if (!this.workspace) throw new (_workspace().OutsideWorkspaceError)();
165
165
  const componentId = await this.workspace.resolveComponentId(id);
166
- if (!componentId.hasVersion()) return []; // component is new
166
+ if (!componentId.hasVersion()) {
167
+ const inWs = this.workspace.getIdIfExist(componentId);
168
+ if (inWs && !inWs.hasVersion()) {
169
+ return []; // component is new
170
+ }
171
+ }
167
172
  const logs = await this.workspace.scope.getLogs(componentId, shortHash, undefined, true);
168
173
  logs.forEach(log => {
169
174
  log.date = log.date ? (0, _moment().default)(new Date(parseInt(log.date))).format('YYYY-MM-DD HH:mm:ss') : undefined;
@@ -1 +1 @@
1
- {"version":3,"names":["_cli","data","require","_componentId","_path","_interopRequireDefault","_moment","_pMap","_workspace","_lodash","_pMapSeries","_scope","_toolboxPath","_legacy","_chalk","_scope2","_diff","_componentLog","_logCmd","_snapGraph","_logFileCmd","_blameCmd","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ComponentLogMain","constructor","workspace","getLogs","id","options","isRemote","shortHash","shortMessage","consumer","bitId","ComponentID","fromString","remote","getRemoteByName","scope","log","OutsideWorkspaceError","componentId","resolveComponentId","hasVersion","logs","undefined","forEach","date","moment","Date","parseInt","format","message","split","showHidden","filter","l","hidden","getLogsWithParents","graph","buildSnapGraph","sorted","toposort","map","node","stringifyLogInfoOneLine","attr","getChangedFilesFromParent","modelComp","getBitObjectModelComponent","versionObj","getBitObjectVersion","version","firstParent","parents","parentObj","toString","compDir","componentDir","ignoreVersion","results","compact","files","file","parentFile","find","f","relativePath","isEqual","filePath","path","join","hash","parentHash","filesOnParentOnly","length","push","getFileHistoryHashes","getComponentIdByPath","rootDir","filePathAsLinux","pathNormalizeToLinux","filePathRelativeInComponent","replace","pMap","logItem","fileInComp","fileHash","getFileHashFromParent","parent","parentFileInComp","fileHashesFromParent","Promise","all","getParentFileHash","includes","tag","username","email","parentFileHash","parentHashes","p","concurrency","result","onlyParent","parentResult","blame","absPath","isAbsolute","toAbsolutePath","reversedLogs","reverse","getFileContent","source","legacyScope","objects","load","Ref","from","contents","currentLog","currentContentStr","currentContentLines","blameArray","lineContent","index","lineNumber","populateBlameArray","unblamedLineIndices","Set","_","pMapSeries","size","currentHash","parentContentStr","diff","diffLines","removedLines","addedLines","currentLineNum","part","lines","pop","added","has","delete","removed","line","keys","lineNum","previousLineContent","oldestLog","lineIdx","getFileLog","Error","relative","lastFile","component","get","changeVersion","filesystem","lastResult","lastHash","toSourceAsLinuxEOL","getFilesDiff","fileDiff","diffOutput","logInfo","chalk","yellow","provider","cli","componentLog","register","LogCmd","LogFileCmd","BlameCmd","exports","CLIAspect","WorkspaceAspect","MainRuntime","ComponentLogAspect","addRuntime"],"sources":["component-log.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { ComponentID } from '@teambit/component-id';\nimport { LegacyComponentLog as ComponentLog } from '@teambit/legacy-component-log';\nimport path from 'path';\nimport moment from 'moment';\nimport pMap from 'p-map';\nimport { WorkspaceAspect, OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport { compact } from 'lodash';\nimport pMapSeries from 'p-map-series';\nimport { Ref, Source, Version } from '@teambit/scope.objects';\nimport { pathNormalizeToLinux, PathOsBased, PathOsBasedAbsolute } from '@teambit/toolbox.path.path';\nimport { getFilesDiff } from '@teambit/legacy.component-diff';\nimport chalk from 'chalk';\nimport { getRemoteByName } from '@teambit/scope.remotes';\nimport { diffLines } from 'diff';\nimport { ComponentLogAspect } from './component-log.aspect';\nimport LogCmd from './log-cmd';\nimport { buildSnapGraph } from './snap-graph';\nimport { LogFileCmd } from './log-file-cmd';\nimport { BlameCmd } from './blame-cmd';\n\nexport type FileLog = {\n hash: string;\n tag?: string;\n username?: string;\n email?: string;\n date: string;\n message: string;\n fileHash: string;\n parentFileHash?: string;\n fileDiff?: string;\n hidden?: boolean;\n parentHashes?: string[];\n};\n\nexport type BlameLineInfo = {\n lineNumber: number;\n lineContent: string;\n previousLineContent?: string;\n username: string;\n email?: string;\n date: string;\n message: string;\n hash: string;\n tag?: string;\n};\n\nexport type LogOpts = {\n isRemote?: boolean;\n shortHash?: boolean;\n shortMessage?: boolean;\n showHidden?: boolean;\n};\n\nexport type FileHashDiffFromParent = {\n filePath: string; // path OS absolute\n hash?: string; // if undefined, the file was deleted in this snap\n parentHash?: string; // if undefined, the file was added in this snap\n};\n\nexport class ComponentLogMain {\n constructor(private workspace: Workspace | undefined) {}\n\n /**\n * get component log sorted by the timestamp in ascending order (from the earliest to the latest)\n */\n async getLogs(id: string, options: LogOpts = {}): Promise<ComponentLog[]> {\n const { isRemote = false, shortHash = false, shortMessage = false } = options;\n if (isRemote) {\n const consumer = this.workspace?.consumer;\n const bitId = ComponentID.fromString(id);\n const remote = await getRemoteByName(bitId.scope as string, consumer);\n return remote.log(bitId);\n }\n if (!this.workspace) throw new OutsideWorkspaceError();\n const componentId = await this.workspace.resolveComponentId(id);\n if (!componentId.hasVersion()) return []; // component is new\n const logs = await this.workspace.scope.getLogs(componentId, shortHash, undefined, true);\n logs.forEach((log) => {\n log.date = log.date ? moment(new Date(parseInt(log.date))).format('YYYY-MM-DD HH:mm:ss') : undefined;\n log.message = shortMessage ? log.message.split('\\n')[0] : log.message;\n });\n return options.showHidden ? logs : logs.filter((l) => !l.hidden);\n }\n\n async getLogsWithParents(id: string, options: LogOpts) {\n const logs = await this.getLogs(id, options);\n const graph = buildSnapGraph(logs);\n const sorted = graph.toposort();\n return sorted.map((node) => this.stringifyLogInfoOneLine(node.attr));\n }\n\n async getChangedFilesFromParent(id: string): Promise<FileHashDiffFromParent[]> {\n const workspace = this.workspace;\n if (!workspace) throw new OutsideWorkspaceError();\n const componentId = await workspace.resolveComponentId(id);\n const modelComp = await workspace.scope.getBitObjectModelComponent(componentId, true);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const versionObj = (await workspace.scope.getBitObjectVersion(modelComp!, componentId.version!, true)) as Version;\n const firstParent = versionObj.parents[0];\n const parentObj = firstParent\n ? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n ((await workspace.scope.getBitObjectVersion(modelComp!, firstParent.toString(), true)) as Version)\n : null;\n const compDir = workspace.componentDir(componentId, { ignoreVersion: true });\n const results: FileHashDiffFromParent[] = compact(\n versionObj.files.map((file) => {\n const parentFile = parentObj?.files.find((f) => f.relativePath === file.relativePath);\n if (parentFile?.file.isEqual(file.file)) return null;\n return {\n filePath: path.join(compDir, file.relativePath),\n hash: file.file.toString(),\n parentHash: parentFile?.file.toString(),\n };\n })\n );\n const filesOnParentOnly = (parentObj?.files || []).filter(\n (parentFile) => !versionObj.files.find((file) => file.relativePath === parentFile.relativePath)\n );\n if (filesOnParentOnly.length) {\n results.push(\n ...filesOnParentOnly.map((file) => ({\n filePath: file.relativePath,\n hash: undefined,\n parentHash: file.file.toString(),\n }))\n );\n }\n\n return results;\n }\n\n async getFileHistoryHashes(filePath: PathOsBasedAbsolute): Promise<FileLog[]> {\n const workspace = this.workspace;\n if (!workspace) throw new OutsideWorkspaceError();\n const componentId = await workspace.getComponentIdByPath(filePath);\n if (!componentId) {\n // filePath could be from the component dir but the file is not part of the bit-component (such as component.json)\n return [];\n }\n\n const rootDir = workspace.componentDir(componentId, undefined);\n\n const logs = await this.getLogs(componentId.toString(), { showHidden: true });\n\n const filePathAsLinux = pathNormalizeToLinux(filePath);\n const filePathRelativeInComponent = filePathAsLinux.replace(`${rootDir}/`, '');\n\n const modelComp = await workspace.scope.getBitObjectModelComponent(componentId);\n if (!modelComp) return []; // probably a new component\n const results: FileLog[] = [];\n await pMap(\n logs,\n async (logItem) => {\n const versionObj = await workspace.scope.getBitObjectVersion(modelComp, logItem.hash, true);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const fileInComp = versionObj!.files.find((f) => f.relativePath === filePathRelativeInComponent);\n if (!fileInComp) return;\n const fileHash = fileInComp.file.toString();\n const getFileHashFromParent = async (parent: Ref) => {\n const parentObj = parent\n ? await workspace.scope.getBitObjectVersion(modelComp, parent.toString(), true)\n : undefined;\n\n const parentFileInComp = parentObj\n ? parentObj.files.find((f) => f.relativePath === filePathRelativeInComponent)\n : undefined;\n\n return parentFileInComp?.file.toString();\n };\n const fileHashesFromParent = versionObj ? await Promise.all(versionObj.parents.map(getFileHashFromParent)) : [];\n\n const getParentFileHash = () => {\n if (fileHashesFromParent.length === 0) return undefined;\n if (fileHashesFromParent.length === 1) return fileHashesFromParent[0];\n // if one parent has it, it means that this merge-snap didn't change the file.\n if (fileHashesFromParent.includes(fileHash)) return fileHash;\n return fileHashesFromParent[0];\n };\n\n results.push({\n hash: logItem.hash,\n tag: logItem.tag,\n username: logItem.username,\n email: logItem.email,\n date: logItem.date || '<N/A>',\n message: logItem.message,\n fileHash,\n parentFileHash: getParentFileHash(),\n hidden: logItem.hidden,\n parentHashes: versionObj?.parents.map((p) => p.toString()),\n });\n },\n { concurrency: 100 }\n );\n\n // remove entries that their fileHash is the same as their parent.\n // however, if their parent is hidden, because they're going to be removed, use their parents.\n results.forEach((result) => {\n const parents = result.parentHashes || [];\n if (parents.length !== 1) return;\n const onlyParent = parents[0];\n const parentResult = results.find((r) => r.hash === onlyParent);\n if (parentResult && parentResult.hidden) {\n result.parentFileHash = parentResult.parentFileHash;\n }\n });\n return results.filter((r) => !r.hidden).filter((r) => r.fileHash !== r.parentFileHash);\n }\n\n async blame(filePath: PathOsBased): Promise<BlameLineInfo[]> {\n const workspace = this.workspace;\n if (!workspace) throw new OutsideWorkspaceError();\n const absPath = path.isAbsolute(filePath) ? filePath : workspace.consumer.toAbsolutePath(filePath);\n const reversedLogs = await this.getFileHistoryHashes(absPath);\n if (!reversedLogs.length) return [];\n // reverse order so it'll be from newer to older\n const logs = reversedLogs.reverse();\n\n const getFileContent = async (hash: string) => {\n const source = (await workspace.scope.legacyScope.objects.load(Ref.from(hash), true)) as Source;\n return source.contents.toString();\n };\n\n // Initialize the blame array with the current file content\n const currentLog = logs[0];\n let currentContentStr = await getFileContent(currentLog.fileHash);\n const currentContentLines = currentContentStr.split('\\n');\n const blameArray: Partial<BlameLineInfo>[] = currentContentLines.map((lineContent, index) => ({\n lineNumber: index + 1,\n lineContent,\n }));\n const populateBlameArray = (lineNumber: number, log: FileLog) => {\n blameArray[lineNumber].username = log.username;\n blameArray[lineNumber].email = log.email;\n blameArray[lineNumber].date = log.date;\n blameArray[lineNumber].message = log.message;\n blameArray[lineNumber].hash = log.hash;\n blameArray[lineNumber].tag = log.tag;\n };\n\n // Keep track of unassigned lines\n const unblamedLineIndices = new Set(blameArray.map((_, index) => index));\n\n await pMapSeries(logs, async (logItem) => {\n if (unblamedLineIndices.size === 0) return; // All lines have been assigned\n\n const currentHash = logItem.fileHash;\n const parentHash = logItem.parentFileHash;\n\n // Skip if there is no parent to compare with\n if (!parentHash) return;\n\n currentContentStr = await getFileContent(currentHash);\n const parentContentStr = await getFileContent(parentHash);\n\n const diff = diffLines(parentContentStr, currentContentStr);\n\n const removedLines: Record<number, string> = {};\n const addedLines: number[] = [];\n\n let currentLineNum = 0;\n\n diff.forEach((part) => {\n const lines = part.value.split('\\n');\n // Remove the last empty line if the string ends with a newline\n if (lines[lines.length - 1] === '') lines.pop();\n\n if (part.added) {\n // Lines added in the current version\n lines.forEach(() => {\n if (unblamedLineIndices.has(currentLineNum)) {\n populateBlameArray(currentLineNum, logItem);\n addedLines.push(currentLineNum);\n unblamedLineIndices.delete(currentLineNum);\n }\n currentLineNum++;\n });\n } else if (part.removed) {\n lines.forEach((line, index) => {\n removedLines[currentLineNum + index] = line;\n });\n // Lines removed from parent version; do not advance currentLineNum\n // Since these lines are not in the current version, we ignore them\n } else {\n // Unchanged lines\n currentLineNum += lines.length;\n }\n });\n Object.keys(removedLines).forEach((lineNum) => {\n if (addedLines.includes(parseInt(lineNum))) {\n blameArray[parseInt(lineNum)].previousLineContent = removedLines[parseInt(lineNum)];\n }\n });\n });\n\n // Assign the oldest log info to any remaining unblamed lines\n const oldestLog = logs[logs.length - 1];\n unblamedLineIndices.forEach((lineIdx) => {\n populateBlameArray(lineIdx, oldestLog);\n });\n\n return blameArray as BlameLineInfo[];\n }\n\n async getFileLog(filePath: string) {\n const workspace = this.workspace;\n if (!workspace) throw new OutsideWorkspaceError();\n const componentId = await workspace.getComponentIdByPath(filePath);\n if (!componentId) throw new Error(`unable to find component for file ${filePath}`);\n\n const rootDir = workspace.componentDir(componentId, undefined, { relative: true });\n\n const logs = await this.getLogs(componentId.toString());\n\n const filePathAsLinux = pathNormalizeToLinux(filePath);\n const filePathRelativeInComponent = filePathAsLinux.replace(`${rootDir}/`, '');\n\n const results: FileLog[] = [];\n let lastFile;\n await pMapSeries(logs, async (logItem) => {\n const component = await workspace.get(componentId.changeVersion(logItem.tag || logItem.hash));\n const fileInComp = component.filesystem.files.find((f) => f.relative === filePathRelativeInComponent);\n const lastResult = results[results.length - 1];\n const lastHash = lastResult?.fileHash;\n let fileHash: string;\n if (!fileInComp) {\n if (!lastHash) return;\n fileHash = '<REMOVED>';\n } else {\n fileHash = fileInComp.toSourceAsLinuxEOL().hash().toString();\n }\n if (fileHash === lastHash) return;\n\n let diff;\n if (lastFile && fileInComp) {\n diff = await getFilesDiff([lastFile], [fileInComp], logItem.hash, lastResult.hash, undefined);\n }\n\n lastFile = fileInComp;\n\n results.push({\n hash: logItem.hash,\n tag: logItem.tag,\n username: logItem.username,\n email: logItem.email,\n date: logItem.date || '<N/A>',\n message: logItem.message,\n fileDiff: diff?.length ? diff[0].diffOutput : undefined,\n fileHash,\n });\n });\n return results;\n }\n\n private stringifyLogInfoOneLine(logInfo: ComponentLogInfo) {\n const parents = logInfo.parents.length ? `Parent(s): ${logInfo.parents.join(', ')}` : '<N/A>';\n return `${chalk.yellow(logInfo.hash)} ${logInfo.username || ''} ${logInfo.date || ''} ${\n logInfo.message\n }, ${parents}`;\n }\n\n static slots = [];\n static dependencies = [CLIAspect, WorkspaceAspect];\n static runtime = MainRuntime;\n static async provider([cli, workspace]: [CLIMain, Workspace]) {\n const componentLog = new ComponentLogMain(workspace);\n cli.register(new LogCmd(componentLog), new LogFileCmd(componentLog), new BlameCmd(componentLog));\n return componentLog;\n }\n}\n\nComponentLogAspect.addRuntime(ComponentLogMain);\n\nexport type ComponentLogInfo = {\n hash: string;\n message: string;\n onLane?: boolean;\n parents: string[];\n username?: string;\n email?: string;\n date?: string;\n tag?: string;\n};\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,aAAA;EAAA,MAAAF,IAAA,GAAAC,OA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AAgB,aAgTViL,kBAAW;AAQ9BC,kCAAkB,CAACC,UAAU,CAACnL,gBAAgB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_cli","data","require","_componentId","_path","_interopRequireDefault","_moment","_pMap","_workspace","_lodash","_pMapSeries","_scope","_toolboxPath","_legacy","_chalk","_scope2","_diff","_componentLog","_logCmd","_snapGraph","_logFileCmd","_blameCmd","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ComponentLogMain","constructor","workspace","getLogs","id","options","isRemote","shortHash","shortMessage","consumer","bitId","ComponentID","fromString","remote","getRemoteByName","scope","log","OutsideWorkspaceError","componentId","resolveComponentId","hasVersion","inWs","getIdIfExist","logs","undefined","forEach","date","moment","Date","parseInt","format","message","split","showHidden","filter","l","hidden","getLogsWithParents","graph","buildSnapGraph","sorted","toposort","map","node","stringifyLogInfoOneLine","attr","getChangedFilesFromParent","modelComp","getBitObjectModelComponent","versionObj","getBitObjectVersion","version","firstParent","parents","parentObj","toString","compDir","componentDir","ignoreVersion","results","compact","files","file","parentFile","find","f","relativePath","isEqual","filePath","path","join","hash","parentHash","filesOnParentOnly","length","push","getFileHistoryHashes","getComponentIdByPath","rootDir","filePathAsLinux","pathNormalizeToLinux","filePathRelativeInComponent","replace","pMap","logItem","fileInComp","fileHash","getFileHashFromParent","parent","parentFileInComp","fileHashesFromParent","Promise","all","getParentFileHash","includes","tag","username","email","parentFileHash","parentHashes","p","concurrency","result","onlyParent","parentResult","blame","absPath","isAbsolute","toAbsolutePath","reversedLogs","reverse","getFileContent","source","legacyScope","objects","load","Ref","from","contents","currentLog","currentContentStr","currentContentLines","blameArray","lineContent","index","lineNumber","populateBlameArray","unblamedLineIndices","Set","_","pMapSeries","size","currentHash","parentContentStr","diff","diffLines","removedLines","addedLines","currentLineNum","part","lines","pop","added","has","delete","removed","line","keys","lineNum","previousLineContent","oldestLog","lineIdx","getFileLog","Error","relative","lastFile","component","get","changeVersion","filesystem","lastResult","lastHash","toSourceAsLinuxEOL","getFilesDiff","fileDiff","diffOutput","logInfo","chalk","yellow","provider","cli","componentLog","register","LogCmd","LogFileCmd","BlameCmd","exports","CLIAspect","WorkspaceAspect","MainRuntime","ComponentLogAspect","addRuntime"],"sources":["component-log.main.runtime.ts"],"sourcesContent":["import { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { ComponentID } from '@teambit/component-id';\nimport { LegacyComponentLog as ComponentLog } from '@teambit/legacy-component-log';\nimport path from 'path';\nimport moment from 'moment';\nimport pMap from 'p-map';\nimport { WorkspaceAspect, OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport { compact } from 'lodash';\nimport pMapSeries from 'p-map-series';\nimport { Ref, Source, Version } from '@teambit/scope.objects';\nimport { pathNormalizeToLinux, PathOsBased, PathOsBasedAbsolute } from '@teambit/toolbox.path.path';\nimport { getFilesDiff } from '@teambit/legacy.component-diff';\nimport chalk from 'chalk';\nimport { getRemoteByName } from '@teambit/scope.remotes';\nimport { diffLines } from 'diff';\nimport { ComponentLogAspect } from './component-log.aspect';\nimport LogCmd from './log-cmd';\nimport { buildSnapGraph } from './snap-graph';\nimport { LogFileCmd } from './log-file-cmd';\nimport { BlameCmd } from './blame-cmd';\n\nexport type FileLog = {\n hash: string;\n tag?: string;\n username?: string;\n email?: string;\n date: string;\n message: string;\n fileHash: string;\n parentFileHash?: string;\n fileDiff?: string;\n hidden?: boolean;\n parentHashes?: string[];\n};\n\nexport type BlameLineInfo = {\n lineNumber: number;\n lineContent: string;\n previousLineContent?: string;\n username: string;\n email?: string;\n date: string;\n message: string;\n hash: string;\n tag?: string;\n};\n\nexport type LogOpts = {\n isRemote?: boolean;\n shortHash?: boolean;\n shortMessage?: boolean;\n showHidden?: boolean;\n};\n\nexport type FileHashDiffFromParent = {\n filePath: string; // path OS absolute\n hash?: string; // if undefined, the file was deleted in this snap\n parentHash?: string; // if undefined, the file was added in this snap\n};\n\nexport class ComponentLogMain {\n constructor(private workspace: Workspace | undefined) {}\n\n /**\n * get component log sorted by the timestamp in ascending order (from the earliest to the latest)\n */\n async getLogs(id: string, options: LogOpts = {}): Promise<ComponentLog[]> {\n const { isRemote = false, shortHash = false, shortMessage = false } = options;\n if (isRemote) {\n const consumer = this.workspace?.consumer;\n const bitId = ComponentID.fromString(id);\n const remote = await getRemoteByName(bitId.scope as string, consumer);\n return remote.log(bitId);\n }\n if (!this.workspace) throw new OutsideWorkspaceError();\n const componentId = await this.workspace.resolveComponentId(id);\n if (!componentId.hasVersion()) {\n const inWs = this.workspace.getIdIfExist(componentId);\n if (inWs && !inWs.hasVersion()) {\n return []; // component is new\n }\n }\n const logs = await this.workspace.scope.getLogs(componentId, shortHash, undefined, true);\n logs.forEach((log) => {\n log.date = log.date ? moment(new Date(parseInt(log.date))).format('YYYY-MM-DD HH:mm:ss') : undefined;\n log.message = shortMessage ? log.message.split('\\n')[0] : log.message;\n });\n return options.showHidden ? logs : logs.filter((l) => !l.hidden);\n }\n\n async getLogsWithParents(id: string, options: LogOpts) {\n const logs = await this.getLogs(id, options);\n const graph = buildSnapGraph(logs);\n const sorted = graph.toposort();\n return sorted.map((node) => this.stringifyLogInfoOneLine(node.attr));\n }\n\n async getChangedFilesFromParent(id: string): Promise<FileHashDiffFromParent[]> {\n const workspace = this.workspace;\n if (!workspace) throw new OutsideWorkspaceError();\n const componentId = await workspace.resolveComponentId(id);\n const modelComp = await workspace.scope.getBitObjectModelComponent(componentId, true);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const versionObj = (await workspace.scope.getBitObjectVersion(modelComp!, componentId.version!, true)) as Version;\n const firstParent = versionObj.parents[0];\n const parentObj = firstParent\n ? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n ((await workspace.scope.getBitObjectVersion(modelComp!, firstParent.toString(), true)) as Version)\n : null;\n const compDir = workspace.componentDir(componentId, { ignoreVersion: true });\n const results: FileHashDiffFromParent[] = compact(\n versionObj.files.map((file) => {\n const parentFile = parentObj?.files.find((f) => f.relativePath === file.relativePath);\n if (parentFile?.file.isEqual(file.file)) return null;\n return {\n filePath: path.join(compDir, file.relativePath),\n hash: file.file.toString(),\n parentHash: parentFile?.file.toString(),\n };\n })\n );\n const filesOnParentOnly = (parentObj?.files || []).filter(\n (parentFile) => !versionObj.files.find((file) => file.relativePath === parentFile.relativePath)\n );\n if (filesOnParentOnly.length) {\n results.push(\n ...filesOnParentOnly.map((file) => ({\n filePath: file.relativePath,\n hash: undefined,\n parentHash: file.file.toString(),\n }))\n );\n }\n\n return results;\n }\n\n async getFileHistoryHashes(filePath: PathOsBasedAbsolute): Promise<FileLog[]> {\n const workspace = this.workspace;\n if (!workspace) throw new OutsideWorkspaceError();\n const componentId = await workspace.getComponentIdByPath(filePath);\n if (!componentId) {\n // filePath could be from the component dir but the file is not part of the bit-component (such as component.json)\n return [];\n }\n\n const rootDir = workspace.componentDir(componentId, undefined);\n\n const logs = await this.getLogs(componentId.toString(), { showHidden: true });\n\n const filePathAsLinux = pathNormalizeToLinux(filePath);\n const filePathRelativeInComponent = filePathAsLinux.replace(`${rootDir}/`, '');\n\n const modelComp = await workspace.scope.getBitObjectModelComponent(componentId);\n if (!modelComp) return []; // probably a new component\n const results: FileLog[] = [];\n await pMap(\n logs,\n async (logItem) => {\n const versionObj = await workspace.scope.getBitObjectVersion(modelComp, logItem.hash, true);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const fileInComp = versionObj!.files.find((f) => f.relativePath === filePathRelativeInComponent);\n if (!fileInComp) return;\n const fileHash = fileInComp.file.toString();\n const getFileHashFromParent = async (parent: Ref) => {\n const parentObj = parent\n ? await workspace.scope.getBitObjectVersion(modelComp, parent.toString(), true)\n : undefined;\n\n const parentFileInComp = parentObj\n ? parentObj.files.find((f) => f.relativePath === filePathRelativeInComponent)\n : undefined;\n\n return parentFileInComp?.file.toString();\n };\n const fileHashesFromParent = versionObj ? await Promise.all(versionObj.parents.map(getFileHashFromParent)) : [];\n\n const getParentFileHash = () => {\n if (fileHashesFromParent.length === 0) return undefined;\n if (fileHashesFromParent.length === 1) return fileHashesFromParent[0];\n // if one parent has it, it means that this merge-snap didn't change the file.\n if (fileHashesFromParent.includes(fileHash)) return fileHash;\n return fileHashesFromParent[0];\n };\n\n results.push({\n hash: logItem.hash,\n tag: logItem.tag,\n username: logItem.username,\n email: logItem.email,\n date: logItem.date || '<N/A>',\n message: logItem.message,\n fileHash,\n parentFileHash: getParentFileHash(),\n hidden: logItem.hidden,\n parentHashes: versionObj?.parents.map((p) => p.toString()),\n });\n },\n { concurrency: 100 }\n );\n\n // remove entries that their fileHash is the same as their parent.\n // however, if their parent is hidden, because they're going to be removed, use their parents.\n results.forEach((result) => {\n const parents = result.parentHashes || [];\n if (parents.length !== 1) return;\n const onlyParent = parents[0];\n const parentResult = results.find((r) => r.hash === onlyParent);\n if (parentResult && parentResult.hidden) {\n result.parentFileHash = parentResult.parentFileHash;\n }\n });\n return results.filter((r) => !r.hidden).filter((r) => r.fileHash !== r.parentFileHash);\n }\n\n async blame(filePath: PathOsBased): Promise<BlameLineInfo[]> {\n const workspace = this.workspace;\n if (!workspace) throw new OutsideWorkspaceError();\n const absPath = path.isAbsolute(filePath) ? filePath : workspace.consumer.toAbsolutePath(filePath);\n const reversedLogs = await this.getFileHistoryHashes(absPath);\n if (!reversedLogs.length) return [];\n // reverse order so it'll be from newer to older\n const logs = reversedLogs.reverse();\n\n const getFileContent = async (hash: string) => {\n const source = (await workspace.scope.legacyScope.objects.load(Ref.from(hash), true)) as Source;\n return source.contents.toString();\n };\n\n // Initialize the blame array with the current file content\n const currentLog = logs[0];\n let currentContentStr = await getFileContent(currentLog.fileHash);\n const currentContentLines = currentContentStr.split('\\n');\n const blameArray: Partial<BlameLineInfo>[] = currentContentLines.map((lineContent, index) => ({\n lineNumber: index + 1,\n lineContent,\n }));\n const populateBlameArray = (lineNumber: number, log: FileLog) => {\n blameArray[lineNumber].username = log.username;\n blameArray[lineNumber].email = log.email;\n blameArray[lineNumber].date = log.date;\n blameArray[lineNumber].message = log.message;\n blameArray[lineNumber].hash = log.hash;\n blameArray[lineNumber].tag = log.tag;\n };\n\n // Keep track of unassigned lines\n const unblamedLineIndices = new Set(blameArray.map((_, index) => index));\n\n await pMapSeries(logs, async (logItem) => {\n if (unblamedLineIndices.size === 0) return; // All lines have been assigned\n\n const currentHash = logItem.fileHash;\n const parentHash = logItem.parentFileHash;\n\n // Skip if there is no parent to compare with\n if (!parentHash) return;\n\n currentContentStr = await getFileContent(currentHash);\n const parentContentStr = await getFileContent(parentHash);\n\n const diff = diffLines(parentContentStr, currentContentStr);\n\n const removedLines: Record<number, string> = {};\n const addedLines: number[] = [];\n\n let currentLineNum = 0;\n\n diff.forEach((part) => {\n const lines = part.value.split('\\n');\n // Remove the last empty line if the string ends with a newline\n if (lines[lines.length - 1] === '') lines.pop();\n\n if (part.added) {\n // Lines added in the current version\n lines.forEach(() => {\n if (unblamedLineIndices.has(currentLineNum)) {\n populateBlameArray(currentLineNum, logItem);\n addedLines.push(currentLineNum);\n unblamedLineIndices.delete(currentLineNum);\n }\n currentLineNum++;\n });\n } else if (part.removed) {\n lines.forEach((line, index) => {\n removedLines[currentLineNum + index] = line;\n });\n // Lines removed from parent version; do not advance currentLineNum\n // Since these lines are not in the current version, we ignore them\n } else {\n // Unchanged lines\n currentLineNum += lines.length;\n }\n });\n Object.keys(removedLines).forEach((lineNum) => {\n if (addedLines.includes(parseInt(lineNum))) {\n blameArray[parseInt(lineNum)].previousLineContent = removedLines[parseInt(lineNum)];\n }\n });\n });\n\n // Assign the oldest log info to any remaining unblamed lines\n const oldestLog = logs[logs.length - 1];\n unblamedLineIndices.forEach((lineIdx) => {\n populateBlameArray(lineIdx, oldestLog);\n });\n\n return blameArray as BlameLineInfo[];\n }\n\n async getFileLog(filePath: string) {\n const workspace = this.workspace;\n if (!workspace) throw new OutsideWorkspaceError();\n const componentId = await workspace.getComponentIdByPath(filePath);\n if (!componentId) throw new Error(`unable to find component for file ${filePath}`);\n\n const rootDir = workspace.componentDir(componentId, undefined, { relative: true });\n\n const logs = await this.getLogs(componentId.toString());\n\n const filePathAsLinux = pathNormalizeToLinux(filePath);\n const filePathRelativeInComponent = filePathAsLinux.replace(`${rootDir}/`, '');\n\n const results: FileLog[] = [];\n let lastFile;\n await pMapSeries(logs, async (logItem) => {\n const component = await workspace.get(componentId.changeVersion(logItem.tag || logItem.hash));\n const fileInComp = component.filesystem.files.find((f) => f.relative === filePathRelativeInComponent);\n const lastResult = results[results.length - 1];\n const lastHash = lastResult?.fileHash;\n let fileHash: string;\n if (!fileInComp) {\n if (!lastHash) return;\n fileHash = '<REMOVED>';\n } else {\n fileHash = fileInComp.toSourceAsLinuxEOL().hash().toString();\n }\n if (fileHash === lastHash) return;\n\n let diff;\n if (lastFile && fileInComp) {\n diff = await getFilesDiff([lastFile], [fileInComp], logItem.hash, lastResult.hash, undefined);\n }\n\n lastFile = fileInComp;\n\n results.push({\n hash: logItem.hash,\n tag: logItem.tag,\n username: logItem.username,\n email: logItem.email,\n date: logItem.date || '<N/A>',\n message: logItem.message,\n fileDiff: diff?.length ? diff[0].diffOutput : undefined,\n fileHash,\n });\n });\n return results;\n }\n\n private stringifyLogInfoOneLine(logInfo: ComponentLogInfo) {\n const parents = logInfo.parents.length ? `Parent(s): ${logInfo.parents.join(', ')}` : '<N/A>';\n return `${chalk.yellow(logInfo.hash)} ${logInfo.username || ''} ${logInfo.date || ''} ${\n logInfo.message\n }, ${parents}`;\n }\n\n static slots = [];\n static dependencies = [CLIAspect, WorkspaceAspect];\n static runtime = MainRuntime;\n static async provider([cli, workspace]: [CLIMain, Workspace]) {\n const componentLog = new ComponentLogMain(workspace);\n cli.register(new LogCmd(componentLog), new LogFileCmd(componentLog), new BlameCmd(componentLog));\n return componentLog;\n }\n}\n\nComponentLogAspect.addRuntime(ComponentLogMain);\n\nexport type ComponentLogInfo = {\n hash: string;\n message: string;\n onLane?: boolean;\n parents: string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AAS,CAAC;IACpDwK,GAAG,CAACE,QAAQ,CAAC,KAAIC,iBAAM,EAACF,YAAY,CAAC,EAAE,KAAIG,wBAAU,EAACH,YAAY,CAAC,EAAE,KAAII,oBAAQ,EAACJ,YAAY,CAAC,CAAC;IAChG,OAAOA,YAAY;EACrB;AACF;AAACK,OAAA,CAAAhL,gBAAA,GAAAA,gBAAA;AAAAlB,eAAA,CA3TYkB,gBAAgB,WAmTZ,EAAE;AAAAlB,eAAA,CAnTNkB,gBAAgB,kBAoTL,CAACiL,gBAAS,EAAEC,4BAAe,CAAC;AAAApM,eAAA,CApTvCkB,gBAAgB,aAqTVmL,kBAAW;AAQ9BC,kCAAkB,CAACC,UAAU,CAACrL,gBAAgB,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-log@1.0.503/dist/component-log.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-log@1.0.503/dist/component-log.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-log@1.0.505/dist/component-log.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-log@1.0.505/dist/component-log.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/component-log",
3
- "version": "1.0.503",
3
+ "version": "1.0.505",
4
4
  "homepage": "https://bit.cloud/teambit/component/component-log",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "component-log",
9
- "version": "1.0.503"
9
+ "version": "1.0.505"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -19,13 +19,13 @@
19
19
  "@teambit/harmony": "0.4.6",
20
20
  "@teambit/component-id": "1.2.2",
21
21
  "@teambit/graph.cleargraph": "0.0.11",
22
- "@teambit/cli": "0.0.1080",
22
+ "@teambit/cli": "0.0.1082",
23
23
  "@teambit/legacy-component-log": "0.0.404",
24
- "@teambit/legacy.component-diff": "0.0.64",
25
- "@teambit/scope.objects": "0.0.11",
26
- "@teambit/scope.remotes": "0.0.11",
24
+ "@teambit/legacy.component-diff": "0.0.65",
25
+ "@teambit/scope.objects": "0.0.12",
26
+ "@teambit/scope.remotes": "0.0.12",
27
27
  "@teambit/toolbox.path.path": "0.0.5",
28
- "@teambit/workspace": "1.0.503"
28
+ "@teambit/workspace": "1.0.505"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/diff": "^5.2.3",