@teambit/ipc-events 1.0.186 → 1.0.188

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.harmony/ipc-events@1.0.186" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.harmony/ipc-events@1.0.188" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@teambit/ipc-events",
3
- "version": "1.0.186",
3
+ "version": "1.0.188",
4
4
  "homepage": "https://bit.cloud/teambit/harmony/ipc-events",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "ipc-events",
9
- "version": "1.0.186"
9
+ "version": "1.0.188"
10
10
  },
11
11
  "dependencies": {
12
12
  "fs-extra": "10.0.0",
13
13
  "p-map-series": "2.1.0",
14
14
  "@teambit/harmony": "0.4.6",
15
- "@teambit/cli": "0.0.854",
16
- "@teambit/logger": "0.0.947",
17
- "@teambit/scope": "1.0.186"
15
+ "@teambit/cli": "0.0.855",
16
+ "@teambit/logger": "0.0.948",
17
+ "@teambit/scope": "1.0.188"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/fs-extra": "9.0.7",
@@ -1,1279 +0,0 @@
1
- {
2
- "__schema": "APISchema",
3
- "location": {
4
- "filePath": "index.ts",
5
- "line": 1,
6
- "character": 1
7
- },
8
- "module": {
9
- "__schema": "ModuleSchema",
10
- "location": {
11
- "filePath": "index.ts",
12
- "line": 1,
13
- "character": 1
14
- },
15
- "exports": [
16
- {
17
- "__schema": "ClassSchema",
18
- "location": {
19
- "filePath": "ipc-events.main.runtime.ts",
20
- "line": 32,
21
- "character": 1
22
- },
23
- "doc": {
24
- "__schema": "DocSchema",
25
- "location": {
26
- "filePath": "ipc-events.main.runtime.ts",
27
- "line": 17,
28
- "character": 1
29
- },
30
- "raw": "/**\n * imagine you have multiple processes running in the background, such as `bit watch`, `bit start`, `bit server`.\n * the user is running `bit install` from the cli, how do you let these processes know that the installation is complete?\n * `bit start` for instance could use ths info to clear the \"component issues\" of the components that were missing packages.\n *\n * this class provides a mechanism to achieve this by writing the event into the filesystem (`.bit/events/event-name`),\n * while each one of the processes has a watcher in the background watch this file. once they got the data from the watcher,\n * they can act upon it.\n *\n * in the previous example, when the user is running `bit install`, the install aspect runs `this.publishIpcEvent` to\n * write `.bit/events/onPostInstall` to the filesystem. then, the watcher of `bit start` process got a notification\n * that this file has changed/added and it runs `triggerGotEvent` to run all aspects registered to its gotEventSlot.\n * the installer in turn is registered to this slot and once its function is triggered, it check whether the eventName\n * is onPostInstall and then triggers its own OnPostInstall slot.\n */",
31
- "comment": "imagine you have multiple processes running in the background, such as `bit watch`, `bit start`, `bit server`.\nthe user is running `bit install` from the cli, how do you let these processes know that the installation is complete?\n`bit start` for instance could use ths info to clear the \"component issues\" of the components that were missing packages.\n\nthis class provides a mechanism to achieve this by writing the event into the filesystem (`.bit/events/event-name`),\nwhile each one of the processes has a watcher in the background watch this file. once they got the data from the watcher,\nthey can act upon it.\n\nin the previous example, when the user is running `bit install`, the install aspect runs `this.publishIpcEvent` to\nwrite `.bit/events/onPostInstall` to the filesystem. then, the watcher of `bit start` process got a notification\nthat this file has changed/added and it runs `triggerGotEvent` to run all aspects registered to its gotEventSlot.\nthe installer in turn is registered to this slot and once its function is triggered, it check whether the eventName\nis onPostInstall and then triggers its own OnPostInstall slot."
32
- },
33
- "signature": "class IpcEventsMain",
34
- "name": "IpcEventsMain",
35
- "members": [
36
- {
37
- "__schema": "ConstructorSchema",
38
- "location": {
39
- "filePath": "ipc-events.main.runtime.ts",
40
- "line": 33,
41
- "character": 3
42
- },
43
- "signature": "constructor IpcEventsMain(scope: ScopeMain, gotEventSlot: GotEventSlot, logger: Logger): IpcEventsMain",
44
- "name": "constructor",
45
- "params": [
46
- {
47
- "__schema": "ParameterSchema",
48
- "location": {
49
- "filePath": "ipc-events.main.runtime.ts",
50
- "line": 33,
51
- "character": 15
52
- },
53
- "name": "scope",
54
- "type": {
55
- "__schema": "TypeRefSchema",
56
- "location": {
57
- "filePath": "ipc-events.main.runtime.ts",
58
- "line": 33,
59
- "character": 30
60
- },
61
- "name": "ScopeMain"
62
- },
63
- "isOptional": false,
64
- "isSpread": false
65
- },
66
- {
67
- "__schema": "ParameterSchema",
68
- "location": {
69
- "filePath": "ipc-events.main.runtime.ts",
70
- "line": 33,
71
- "character": 41
72
- },
73
- "name": "gotEventSlot",
74
- "type": {
75
- "__schema": "TypeRefSchema",
76
- "location": {
77
- "filePath": "ipc-events.main.runtime.ts",
78
- "line": 33,
79
- "character": 63
80
- },
81
- "name": "GotEventSlot"
82
- },
83
- "isOptional": false,
84
- "isSpread": false
85
- },
86
- {
87
- "__schema": "ParameterSchema",
88
- "location": {
89
- "filePath": "ipc-events.main.runtime.ts",
90
- "line": 33,
91
- "character": 77
92
- },
93
- "name": "logger",
94
- "type": {
95
- "__schema": "TypeRefSchema",
96
- "location": {
97
- "filePath": "ipc-events.main.runtime.ts",
98
- "line": 33,
99
- "character": 93
100
- },
101
- "name": "Logger"
102
- },
103
- "isOptional": false,
104
- "isSpread": false
105
- }
106
- ],
107
- "returnType": {
108
- "__schema": "ThisTypeSchema",
109
- "location": {
110
- "filePath": "ipc-events.main.runtime.ts",
111
- "line": 32,
112
- "character": 1
113
- },
114
- "name": "IpcEventsMain"
115
- },
116
- "modifiers": []
117
- },
118
- {
119
- "__schema": "FunctionLikeSchema",
120
- "location": {
121
- "filePath": "ipc-events.main.runtime.ts",
122
- "line": 35,
123
- "character": 3
124
- },
125
- "signature": "(method) IpcEventsMain.registerGotEventSlot(fn: GotEvent): void",
126
- "name": "registerGotEventSlot",
127
- "params": [
128
- {
129
- "__schema": "ParameterSchema",
130
- "location": {
131
- "filePath": "ipc-events.main.runtime.ts",
132
- "line": 35,
133
- "character": 24
134
- },
135
- "name": "fn",
136
- "type": {
137
- "__schema": "TypeRefSchema",
138
- "location": {
139
- "filePath": "ipc-events.main.runtime.ts",
140
- "line": 35,
141
- "character": 28
142
- },
143
- "name": "GotEvent"
144
- },
145
- "isOptional": false,
146
- "isSpread": false
147
- }
148
- ],
149
- "returnType": {
150
- "__schema": "InferenceTypeSchema",
151
- "location": {
152
- "filePath": "ipc-events.main.runtime.ts",
153
- "line": 35,
154
- "character": 3
155
- },
156
- "type": "void"
157
- },
158
- "modifiers": []
159
- },
160
- {
161
- "__schema": "FunctionLikeSchema",
162
- "location": {
163
- "filePath": "ipc-events.main.runtime.ts",
164
- "line": 43,
165
- "character": 3
166
- },
167
- "doc": {
168
- "__schema": "DocSchema",
169
- "location": {
170
- "filePath": "ipc-events.main.runtime.ts",
171
- "line": 39,
172
- "character": 3
173
- },
174
- "raw": "/**\n * this gets called from the watcher only.\n * as soon as the watcher finds out that a new event has been written to the filesystem, it triggers this function\n */",
175
- "comment": "this gets called from the watcher only.\nas soon as the watcher finds out that a new event has been written to the filesystem, it triggers this function"
176
- },
177
- "signature": "(method) IpcEventsMain.triggerGotEvent(eventName: EventName): Promise<void>",
178
- "name": "triggerGotEvent",
179
- "params": [
180
- {
181
- "__schema": "ParameterSchema",
182
- "location": {
183
- "filePath": "ipc-events.main.runtime.ts",
184
- "line": 43,
185
- "character": 25
186
- },
187
- "name": "eventName",
188
- "type": {
189
- "__schema": "TypeRefSchema",
190
- "location": {
191
- "filePath": "ipc-events.main.runtime.ts",
192
- "line": 43,
193
- "character": 36
194
- },
195
- "name": "EventName"
196
- },
197
- "isOptional": false,
198
- "isSpread": false
199
- }
200
- ],
201
- "returnType": {
202
- "__schema": "InferenceTypeSchema",
203
- "location": {
204
- "filePath": "ipc-events.main.runtime.ts",
205
- "line": 43,
206
- "character": 3
207
- },
208
- "type": "Promise<void>"
209
- },
210
- "modifiers": [
211
- "async"
212
- ]
213
- },
214
- {
215
- "__schema": "FunctionLikeSchema",
216
- "location": {
217
- "filePath": "ipc-events.main.runtime.ts",
218
- "line": 52,
219
- "character": 3
220
- },
221
- "doc": {
222
- "__schema": "DocSchema",
223
- "location": {
224
- "filePath": "ipc-events.main.runtime.ts",
225
- "line": 48,
226
- "character": 3
227
- },
228
- "raw": "/**\n * write event data into the filesystem, so then other processes, such as \"bit start\", \"bit watch\", could use the\n * watcher to get the event data.\n */",
229
- "comment": "write event data into the filesystem, so then other processes, such as \"bit start\", \"bit watch\", could use the\nwatcher to get the event data."
230
- },
231
- "signature": "(method) IpcEventsMain.publishIpcEvent(eventName: EventName, data?: Record<string, any>): Promise<void>",
232
- "name": "publishIpcEvent",
233
- "params": [
234
- {
235
- "__schema": "ParameterSchema",
236
- "location": {
237
- "filePath": "ipc-events.main.runtime.ts",
238
- "line": 52,
239
- "character": 25
240
- },
241
- "name": "eventName",
242
- "type": {
243
- "__schema": "TypeRefSchema",
244
- "location": {
245
- "filePath": "ipc-events.main.runtime.ts",
246
- "line": 52,
247
- "character": 36
248
- },
249
- "name": "EventName"
250
- },
251
- "isOptional": false,
252
- "isSpread": false
253
- },
254
- {
255
- "__schema": "ParameterSchema",
256
- "location": {
257
- "filePath": "ipc-events.main.runtime.ts",
258
- "line": 52,
259
- "character": 47
260
- },
261
- "name": "data",
262
- "type": {
263
- "__schema": "TypeRefSchema",
264
- "location": {
265
- "filePath": "ipc-events.main.runtime.ts",
266
- "line": 52,
267
- "character": 54
268
- },
269
- "name": "Record",
270
- "typeArgs": [
271
- {
272
- "__schema": "KeywordTypeSchema",
273
- "location": {
274
- "filePath": "ipc-events.main.runtime.ts",
275
- "line": 52,
276
- "character": 61
277
- },
278
- "name": "string"
279
- },
280
- {
281
- "__schema": "KeywordTypeSchema",
282
- "location": {
283
- "filePath": "ipc-events.main.runtime.ts",
284
- "line": 52,
285
- "character": 69
286
- },
287
- "name": "any"
288
- }
289
- ]
290
- },
291
- "isOptional": true,
292
- "isSpread": false
293
- }
294
- ],
295
- "returnType": {
296
- "__schema": "InferenceTypeSchema",
297
- "location": {
298
- "filePath": "ipc-events.main.runtime.ts",
299
- "line": 52,
300
- "character": 3
301
- },
302
- "type": "Promise<void>"
303
- },
304
- "modifiers": [
305
- "async"
306
- ]
307
- },
308
- {
309
- "__schema": "GetAccessorSchema",
310
- "location": {
311
- "filePath": "ipc-events.main.runtime.ts",
312
- "line": 58,
313
- "character": 3
314
- },
315
- "signature": "(getter) IpcEventsMain.eventsDir: string",
316
- "name": "eventsDir",
317
- "type": {
318
- "__schema": "InferenceTypeSchema",
319
- "location": {
320
- "filePath": "ipc-events.main.runtime.ts",
321
- "line": 58,
322
- "character": 3
323
- },
324
- "type": "string"
325
- }
326
- },
327
- {
328
- "__schema": "VariableLikeSchema",
329
- "location": {
330
- "filePath": "ipc-events.main.runtime.ts",
331
- "line": 62,
332
- "character": 3
333
- },
334
- "signature": "(property) IpcEventsMain.slots: ((registerFn: () => string) => SlotRegistry<GotEventSlot>)[]",
335
- "name": "slots",
336
- "type": {
337
- "__schema": "InferenceTypeSchema",
338
- "location": {
339
- "filePath": "ipc-events.main.runtime.ts",
340
- "line": 62,
341
- "character": 3
342
- },
343
- "type": "((registerFn: () => string) => SlotRegistry<GotEventSlot>)[]"
344
- },
345
- "isOptional": true,
346
- "defaultValue": "[Slot.withType<GotEventSlot>()]"
347
- },
348
- {
349
- "__schema": "VariableLikeSchema",
350
- "location": {
351
- "filePath": "ipc-events.main.runtime.ts",
352
- "line": 63,
353
- "character": 3
354
- },
355
- "signature": "(property) IpcEventsMain.dependencies: Aspect[]",
356
- "name": "dependencies",
357
- "type": {
358
- "__schema": "InferenceTypeSchema",
359
- "location": {
360
- "filePath": "ipc-events.main.runtime.ts",
361
- "line": 63,
362
- "character": 3
363
- },
364
- "type": "Aspect[]"
365
- },
366
- "isOptional": true,
367
- "defaultValue": "[ScopeAspect, LoggerAspect]"
368
- },
369
- {
370
- "__schema": "VariableLikeSchema",
371
- "location": {
372
- "filePath": "ipc-events.main.runtime.ts",
373
- "line": 64,
374
- "character": 3
375
- },
376
- "signature": "(property) IpcEventsMain.runtime: RuntimeDefinition",
377
- "name": "runtime",
378
- "type": {
379
- "__schema": "InferenceTypeSchema",
380
- "location": {
381
- "filePath": "ipc-events.main.runtime.ts",
382
- "line": 64,
383
- "character": 3
384
- },
385
- "type": "RuntimeDefinition"
386
- },
387
- "isOptional": true,
388
- "defaultValue": "MainRuntime"
389
- },
390
- {
391
- "__schema": "FunctionLikeSchema",
392
- "location": {
393
- "filePath": "ipc-events.main.runtime.ts",
394
- "line": 66,
395
- "character": 3
396
- },
397
- "signature": "(method) IpcEventsMain.provider([scope, loggerMain]: [ScopeMain, LoggerMain], _: any, [gotEventSlot]: [GotEventSlot]): Promise<IpcEventsMain>",
398
- "name": "provider",
399
- "params": [
400
- {
401
- "__schema": "ParameterSchema",
402
- "location": {
403
- "filePath": "ipc-events.main.runtime.ts",
404
- "line": 66,
405
- "character": 25
406
- },
407
- "name": "[ scope, loggerMain ]",
408
- "type": {
409
- "__schema": "TupleTypeSchema",
410
- "location": {
411
- "filePath": "ipc-events.main.runtime.ts",
412
- "line": 66,
413
- "character": 46
414
- },
415
- "elements": [
416
- {
417
- "__schema": "TypeRefSchema",
418
- "location": {
419
- "filePath": "ipc-events.main.runtime.ts",
420
- "line": 66,
421
- "character": 47
422
- },
423
- "name": "ScopeMain"
424
- },
425
- {
426
- "__schema": "TypeRefSchema",
427
- "location": {
428
- "filePath": "ipc-events.main.runtime.ts",
429
- "line": 66,
430
- "character": 58
431
- },
432
- "name": "LoggerMain"
433
- }
434
- ]
435
- },
436
- "isOptional": false,
437
- "isSpread": false
438
- },
439
- {
440
- "__schema": "ParameterSchema",
441
- "location": {
442
- "filePath": "ipc-events.main.runtime.ts",
443
- "line": 66,
444
- "character": 71
445
- },
446
- "name": "_",
447
- "type": {
448
- "__schema": "InferenceTypeSchema",
449
- "location": {
450
- "filePath": "ipc-events.main.runtime.ts",
451
- "line": 66,
452
- "character": 71
453
- },
454
- "type": "any"
455
- },
456
- "isOptional": false,
457
- "isSpread": false
458
- },
459
- {
460
- "__schema": "ParameterSchema",
461
- "location": {
462
- "filePath": "ipc-events.main.runtime.ts",
463
- "line": 66,
464
- "character": 74
465
- },
466
- "name": "[ gotEventSlot ]",
467
- "type": {
468
- "__schema": "TupleTypeSchema",
469
- "location": {
470
- "filePath": "ipc-events.main.runtime.ts",
471
- "line": 66,
472
- "character": 90
473
- },
474
- "elements": [
475
- {
476
- "__schema": "TypeRefSchema",
477
- "location": {
478
- "filePath": "ipc-events.main.runtime.ts",
479
- "line": 66,
480
- "character": 91
481
- },
482
- "name": "GotEventSlot"
483
- }
484
- ]
485
- },
486
- "isOptional": false,
487
- "isSpread": false
488
- }
489
- ],
490
- "returnType": {
491
- "__schema": "InferenceTypeSchema",
492
- "location": {
493
- "filePath": "ipc-events.main.runtime.ts",
494
- "line": 66,
495
- "character": 3
496
- },
497
- "type": "Promise<IpcEventsMain>"
498
- },
499
- "modifiers": [
500
- "static",
501
- "async"
502
- ]
503
- }
504
- ],
505
- "extendsNodes": [],
506
- "implementNodes": []
507
- },
508
- {
509
- "__schema": "UnImplementedSchema",
510
- "location": {
511
- "filePath": "index.ts",
512
- "line": 4,
513
- "character": 16
514
- },
515
- "name": "IpcEventsAspect",
516
- "type": "Identifier"
517
- },
518
- {
519
- "__schema": "VariableLikeSchema",
520
- "location": {
521
- "filePath": "ipc-events.aspect.ts",
522
- "line": 3,
523
- "character": 14
524
- },
525
- "signature": "const IpcEventsAspect: Aspect",
526
- "name": "IpcEventsAspect",
527
- "type": {
528
- "__schema": "TypeRefSchema",
529
- "location": {
530
- "filePath": "ipc-events.aspect.ts",
531
- "line": 3,
532
- "character": 14
533
- },
534
- "name": "Aspect",
535
- "componentId": {
536
- "scope": "teambit.harmony",
537
- "name": "harmony",
538
- "version": "0.4.6"
539
- }
540
- },
541
- "isOptional": false,
542
- "defaultValue": "Aspect.create({\n id: 'teambit.harmony/ipc-events',\n})"
543
- }
544
- ],
545
- "internals": []
546
- },
547
- "internals": [
548
- {
549
- "__schema": "ModuleSchema",
550
- "location": {
551
- "filePath": "ipc-events.main.runtime.ts",
552
- "line": 1,
553
- "character": 1
554
- },
555
- "exports": [
556
- {
557
- "__schema": "ClassSchema",
558
- "location": {
559
- "filePath": "ipc-events.main.runtime.ts",
560
- "line": 32,
561
- "character": 1
562
- },
563
- "doc": {
564
- "__schema": "DocSchema",
565
- "location": {
566
- "filePath": "ipc-events.main.runtime.ts",
567
- "line": 17,
568
- "character": 1
569
- },
570
- "raw": "/**\n * imagine you have multiple processes running in the background, such as `bit watch`, `bit start`, `bit server`.\n * the user is running `bit install` from the cli, how do you let these processes know that the installation is complete?\n * `bit start` for instance could use ths info to clear the \"component issues\" of the components that were missing packages.\n *\n * this class provides a mechanism to achieve this by writing the event into the filesystem (`.bit/events/event-name`),\n * while each one of the processes has a watcher in the background watch this file. once they got the data from the watcher,\n * they can act upon it.\n *\n * in the previous example, when the user is running `bit install`, the install aspect runs `this.publishIpcEvent` to\n * write `.bit/events/onPostInstall` to the filesystem. then, the watcher of `bit start` process got a notification\n * that this file has changed/added and it runs `triggerGotEvent` to run all aspects registered to its gotEventSlot.\n * the installer in turn is registered to this slot and once its function is triggered, it check whether the eventName\n * is onPostInstall and then triggers its own OnPostInstall slot.\n */",
571
- "comment": "imagine you have multiple processes running in the background, such as `bit watch`, `bit start`, `bit server`.\nthe user is running `bit install` from the cli, how do you let these processes know that the installation is complete?\n`bit start` for instance could use ths info to clear the \"component issues\" of the components that were missing packages.\n\nthis class provides a mechanism to achieve this by writing the event into the filesystem (`.bit/events/event-name`),\nwhile each one of the processes has a watcher in the background watch this file. once they got the data from the watcher,\nthey can act upon it.\n\nin the previous example, when the user is running `bit install`, the install aspect runs `this.publishIpcEvent` to\nwrite `.bit/events/onPostInstall` to the filesystem. then, the watcher of `bit start` process got a notification\nthat this file has changed/added and it runs `triggerGotEvent` to run all aspects registered to its gotEventSlot.\nthe installer in turn is registered to this slot and once its function is triggered, it check whether the eventName\nis onPostInstall and then triggers its own OnPostInstall slot."
572
- },
573
- "signature": "class IpcEventsMain",
574
- "name": "IpcEventsMain",
575
- "members": [
576
- {
577
- "__schema": "ConstructorSchema",
578
- "location": {
579
- "filePath": "ipc-events.main.runtime.ts",
580
- "line": 33,
581
- "character": 3
582
- },
583
- "signature": "constructor IpcEventsMain(scope: ScopeMain, gotEventSlot: GotEventSlot, logger: Logger): IpcEventsMain",
584
- "name": "constructor",
585
- "params": [
586
- {
587
- "__schema": "ParameterSchema",
588
- "location": {
589
- "filePath": "ipc-events.main.runtime.ts",
590
- "line": 33,
591
- "character": 15
592
- },
593
- "name": "scope",
594
- "type": {
595
- "__schema": "TypeRefSchema",
596
- "location": {
597
- "filePath": "ipc-events.main.runtime.ts",
598
- "line": 33,
599
- "character": 30
600
- },
601
- "name": "ScopeMain"
602
- },
603
- "isOptional": false,
604
- "isSpread": false
605
- },
606
- {
607
- "__schema": "ParameterSchema",
608
- "location": {
609
- "filePath": "ipc-events.main.runtime.ts",
610
- "line": 33,
611
- "character": 41
612
- },
613
- "name": "gotEventSlot",
614
- "type": {
615
- "__schema": "TypeRefSchema",
616
- "location": {
617
- "filePath": "ipc-events.main.runtime.ts",
618
- "line": 33,
619
- "character": 63
620
- },
621
- "name": "GotEventSlot"
622
- },
623
- "isOptional": false,
624
- "isSpread": false
625
- },
626
- {
627
- "__schema": "ParameterSchema",
628
- "location": {
629
- "filePath": "ipc-events.main.runtime.ts",
630
- "line": 33,
631
- "character": 77
632
- },
633
- "name": "logger",
634
- "type": {
635
- "__schema": "TypeRefSchema",
636
- "location": {
637
- "filePath": "ipc-events.main.runtime.ts",
638
- "line": 33,
639
- "character": 93
640
- },
641
- "name": "Logger"
642
- },
643
- "isOptional": false,
644
- "isSpread": false
645
- }
646
- ],
647
- "returnType": {
648
- "__schema": "ThisTypeSchema",
649
- "location": {
650
- "filePath": "ipc-events.main.runtime.ts",
651
- "line": 32,
652
- "character": 1
653
- },
654
- "name": "IpcEventsMain"
655
- },
656
- "modifiers": []
657
- },
658
- {
659
- "__schema": "FunctionLikeSchema",
660
- "location": {
661
- "filePath": "ipc-events.main.runtime.ts",
662
- "line": 35,
663
- "character": 3
664
- },
665
- "signature": "(method) IpcEventsMain.registerGotEventSlot(fn: GotEvent): void",
666
- "name": "registerGotEventSlot",
667
- "params": [
668
- {
669
- "__schema": "ParameterSchema",
670
- "location": {
671
- "filePath": "ipc-events.main.runtime.ts",
672
- "line": 35,
673
- "character": 24
674
- },
675
- "name": "fn",
676
- "type": {
677
- "__schema": "TypeRefSchema",
678
- "location": {
679
- "filePath": "ipc-events.main.runtime.ts",
680
- "line": 35,
681
- "character": 28
682
- },
683
- "name": "GotEvent"
684
- },
685
- "isOptional": false,
686
- "isSpread": false
687
- }
688
- ],
689
- "returnType": {
690
- "__schema": "InferenceTypeSchema",
691
- "location": {
692
- "filePath": "ipc-events.main.runtime.ts",
693
- "line": 35,
694
- "character": 3
695
- },
696
- "type": "void"
697
- },
698
- "modifiers": []
699
- },
700
- {
701
- "__schema": "FunctionLikeSchema",
702
- "location": {
703
- "filePath": "ipc-events.main.runtime.ts",
704
- "line": 43,
705
- "character": 3
706
- },
707
- "doc": {
708
- "__schema": "DocSchema",
709
- "location": {
710
- "filePath": "ipc-events.main.runtime.ts",
711
- "line": 39,
712
- "character": 3
713
- },
714
- "raw": "/**\n * this gets called from the watcher only.\n * as soon as the watcher finds out that a new event has been written to the filesystem, it triggers this function\n */",
715
- "comment": "this gets called from the watcher only.\nas soon as the watcher finds out that a new event has been written to the filesystem, it triggers this function"
716
- },
717
- "signature": "(method) IpcEventsMain.triggerGotEvent(eventName: EventName): Promise<void>",
718
- "name": "triggerGotEvent",
719
- "params": [
720
- {
721
- "__schema": "ParameterSchema",
722
- "location": {
723
- "filePath": "ipc-events.main.runtime.ts",
724
- "line": 43,
725
- "character": 25
726
- },
727
- "name": "eventName",
728
- "type": {
729
- "__schema": "TypeRefSchema",
730
- "location": {
731
- "filePath": "ipc-events.main.runtime.ts",
732
- "line": 43,
733
- "character": 36
734
- },
735
- "name": "EventName"
736
- },
737
- "isOptional": false,
738
- "isSpread": false
739
- }
740
- ],
741
- "returnType": {
742
- "__schema": "InferenceTypeSchema",
743
- "location": {
744
- "filePath": "ipc-events.main.runtime.ts",
745
- "line": 43,
746
- "character": 3
747
- },
748
- "type": "Promise<void>"
749
- },
750
- "modifiers": [
751
- "async"
752
- ]
753
- },
754
- {
755
- "__schema": "FunctionLikeSchema",
756
- "location": {
757
- "filePath": "ipc-events.main.runtime.ts",
758
- "line": 52,
759
- "character": 3
760
- },
761
- "doc": {
762
- "__schema": "DocSchema",
763
- "location": {
764
- "filePath": "ipc-events.main.runtime.ts",
765
- "line": 48,
766
- "character": 3
767
- },
768
- "raw": "/**\n * write event data into the filesystem, so then other processes, such as \"bit start\", \"bit watch\", could use the\n * watcher to get the event data.\n */",
769
- "comment": "write event data into the filesystem, so then other processes, such as \"bit start\", \"bit watch\", could use the\nwatcher to get the event data."
770
- },
771
- "signature": "(method) IpcEventsMain.publishIpcEvent(eventName: EventName, data?: Record<string, any>): Promise<void>",
772
- "name": "publishIpcEvent",
773
- "params": [
774
- {
775
- "__schema": "ParameterSchema",
776
- "location": {
777
- "filePath": "ipc-events.main.runtime.ts",
778
- "line": 52,
779
- "character": 25
780
- },
781
- "name": "eventName",
782
- "type": {
783
- "__schema": "TypeRefSchema",
784
- "location": {
785
- "filePath": "ipc-events.main.runtime.ts",
786
- "line": 52,
787
- "character": 36
788
- },
789
- "name": "EventName"
790
- },
791
- "isOptional": false,
792
- "isSpread": false
793
- },
794
- {
795
- "__schema": "ParameterSchema",
796
- "location": {
797
- "filePath": "ipc-events.main.runtime.ts",
798
- "line": 52,
799
- "character": 47
800
- },
801
- "name": "data",
802
- "type": {
803
- "__schema": "TypeRefSchema",
804
- "location": {
805
- "filePath": "ipc-events.main.runtime.ts",
806
- "line": 52,
807
- "character": 54
808
- },
809
- "name": "Record",
810
- "typeArgs": [
811
- {
812
- "__schema": "KeywordTypeSchema",
813
- "location": {
814
- "filePath": "ipc-events.main.runtime.ts",
815
- "line": 52,
816
- "character": 61
817
- },
818
- "name": "string"
819
- },
820
- {
821
- "__schema": "KeywordTypeSchema",
822
- "location": {
823
- "filePath": "ipc-events.main.runtime.ts",
824
- "line": 52,
825
- "character": 69
826
- },
827
- "name": "any"
828
- }
829
- ]
830
- },
831
- "isOptional": true,
832
- "isSpread": false
833
- }
834
- ],
835
- "returnType": {
836
- "__schema": "InferenceTypeSchema",
837
- "location": {
838
- "filePath": "ipc-events.main.runtime.ts",
839
- "line": 52,
840
- "character": 3
841
- },
842
- "type": "Promise<void>"
843
- },
844
- "modifiers": [
845
- "async"
846
- ]
847
- },
848
- {
849
- "__schema": "GetAccessorSchema",
850
- "location": {
851
- "filePath": "ipc-events.main.runtime.ts",
852
- "line": 58,
853
- "character": 3
854
- },
855
- "signature": "(getter) IpcEventsMain.eventsDir: string",
856
- "name": "eventsDir",
857
- "type": {
858
- "__schema": "InferenceTypeSchema",
859
- "location": {
860
- "filePath": "ipc-events.main.runtime.ts",
861
- "line": 58,
862
- "character": 3
863
- },
864
- "type": "string"
865
- }
866
- },
867
- {
868
- "__schema": "VariableLikeSchema",
869
- "location": {
870
- "filePath": "ipc-events.main.runtime.ts",
871
- "line": 62,
872
- "character": 3
873
- },
874
- "signature": "(property) IpcEventsMain.slots: ((registerFn: () => string) => SlotRegistry<GotEventSlot>)[]",
875
- "name": "slots",
876
- "type": {
877
- "__schema": "InferenceTypeSchema",
878
- "location": {
879
- "filePath": "ipc-events.main.runtime.ts",
880
- "line": 62,
881
- "character": 3
882
- },
883
- "type": "((registerFn: () => string) => SlotRegistry<GotEventSlot>)[]"
884
- },
885
- "isOptional": true,
886
- "defaultValue": "[Slot.withType<GotEventSlot>()]"
887
- },
888
- {
889
- "__schema": "VariableLikeSchema",
890
- "location": {
891
- "filePath": "ipc-events.main.runtime.ts",
892
- "line": 63,
893
- "character": 3
894
- },
895
- "signature": "(property) IpcEventsMain.dependencies: Aspect[]",
896
- "name": "dependencies",
897
- "type": {
898
- "__schema": "InferenceTypeSchema",
899
- "location": {
900
- "filePath": "ipc-events.main.runtime.ts",
901
- "line": 63,
902
- "character": 3
903
- },
904
- "type": "Aspect[]"
905
- },
906
- "isOptional": true,
907
- "defaultValue": "[ScopeAspect, LoggerAspect]"
908
- },
909
- {
910
- "__schema": "VariableLikeSchema",
911
- "location": {
912
- "filePath": "ipc-events.main.runtime.ts",
913
- "line": 64,
914
- "character": 3
915
- },
916
- "signature": "(property) IpcEventsMain.runtime: RuntimeDefinition",
917
- "name": "runtime",
918
- "type": {
919
- "__schema": "InferenceTypeSchema",
920
- "location": {
921
- "filePath": "ipc-events.main.runtime.ts",
922
- "line": 64,
923
- "character": 3
924
- },
925
- "type": "RuntimeDefinition"
926
- },
927
- "isOptional": true,
928
- "defaultValue": "MainRuntime"
929
- },
930
- {
931
- "__schema": "FunctionLikeSchema",
932
- "location": {
933
- "filePath": "ipc-events.main.runtime.ts",
934
- "line": 66,
935
- "character": 3
936
- },
937
- "signature": "(method) IpcEventsMain.provider([scope, loggerMain]: [ScopeMain, LoggerMain], _: any, [gotEventSlot]: [GotEventSlot]): Promise<IpcEventsMain>",
938
- "name": "provider",
939
- "params": [
940
- {
941
- "__schema": "ParameterSchema",
942
- "location": {
943
- "filePath": "ipc-events.main.runtime.ts",
944
- "line": 66,
945
- "character": 25
946
- },
947
- "name": "[ scope, loggerMain ]",
948
- "type": {
949
- "__schema": "TupleTypeSchema",
950
- "location": {
951
- "filePath": "ipc-events.main.runtime.ts",
952
- "line": 66,
953
- "character": 46
954
- },
955
- "elements": [
956
- {
957
- "__schema": "TypeRefSchema",
958
- "location": {
959
- "filePath": "ipc-events.main.runtime.ts",
960
- "line": 66,
961
- "character": 47
962
- },
963
- "name": "ScopeMain"
964
- },
965
- {
966
- "__schema": "TypeRefSchema",
967
- "location": {
968
- "filePath": "ipc-events.main.runtime.ts",
969
- "line": 66,
970
- "character": 58
971
- },
972
- "name": "LoggerMain"
973
- }
974
- ]
975
- },
976
- "isOptional": false,
977
- "isSpread": false
978
- },
979
- {
980
- "__schema": "ParameterSchema",
981
- "location": {
982
- "filePath": "ipc-events.main.runtime.ts",
983
- "line": 66,
984
- "character": 71
985
- },
986
- "name": "_",
987
- "type": {
988
- "__schema": "InferenceTypeSchema",
989
- "location": {
990
- "filePath": "ipc-events.main.runtime.ts",
991
- "line": 66,
992
- "character": 71
993
- },
994
- "type": "any"
995
- },
996
- "isOptional": false,
997
- "isSpread": false
998
- },
999
- {
1000
- "__schema": "ParameterSchema",
1001
- "location": {
1002
- "filePath": "ipc-events.main.runtime.ts",
1003
- "line": 66,
1004
- "character": 74
1005
- },
1006
- "name": "[ gotEventSlot ]",
1007
- "type": {
1008
- "__schema": "TupleTypeSchema",
1009
- "location": {
1010
- "filePath": "ipc-events.main.runtime.ts",
1011
- "line": 66,
1012
- "character": 90
1013
- },
1014
- "elements": [
1015
- {
1016
- "__schema": "TypeRefSchema",
1017
- "location": {
1018
- "filePath": "ipc-events.main.runtime.ts",
1019
- "line": 66,
1020
- "character": 91
1021
- },
1022
- "name": "GotEventSlot"
1023
- }
1024
- ]
1025
- },
1026
- "isOptional": false,
1027
- "isSpread": false
1028
- }
1029
- ],
1030
- "returnType": {
1031
- "__schema": "InferenceTypeSchema",
1032
- "location": {
1033
- "filePath": "ipc-events.main.runtime.ts",
1034
- "line": 66,
1035
- "character": 3
1036
- },
1037
- "type": "Promise<IpcEventsMain>"
1038
- },
1039
- "modifiers": [
1040
- "static",
1041
- "async"
1042
- ]
1043
- }
1044
- ],
1045
- "extendsNodes": [],
1046
- "implementNodes": []
1047
- },
1048
- {
1049
- "__schema": "UnImplementedSchema",
1050
- "location": {
1051
- "filePath": "ipc-events.main.runtime.ts",
1052
- "line": 89,
1053
- "character": 16
1054
- },
1055
- "name": "IpcEventsMain",
1056
- "type": "Identifier"
1057
- }
1058
- ],
1059
- "internals": [
1060
- {
1061
- "__schema": "TypeSchema",
1062
- "location": {
1063
- "filePath": "ipc-events.main.runtime.ts",
1064
- "line": 10,
1065
- "character": 1
1066
- },
1067
- "signature": "type EventName = \"onPostInstall\" | \"onPostObjectsPersist\"",
1068
- "name": "EventName",
1069
- "type": {
1070
- "__schema": "TypeUnionSchema",
1071
- "location": {
1072
- "filePath": "ipc-events.main.runtime.ts",
1073
- "line": 10,
1074
- "character": 18
1075
- },
1076
- "types": [
1077
- {
1078
- "__schema": "LiteralTypeSchema",
1079
- "location": {
1080
- "filePath": "ipc-events.main.runtime.ts",
1081
- "line": 10,
1082
- "character": 18
1083
- },
1084
- "name": "'onPostInstall'"
1085
- },
1086
- {
1087
- "__schema": "LiteralTypeSchema",
1088
- "location": {
1089
- "filePath": "ipc-events.main.runtime.ts",
1090
- "line": 10,
1091
- "character": 36
1092
- },
1093
- "name": "'onPostObjectsPersist'"
1094
- }
1095
- ]
1096
- }
1097
- },
1098
- {
1099
- "__schema": "TypeSchema",
1100
- "location": {
1101
- "filePath": "ipc-events.main.runtime.ts",
1102
- "line": 12,
1103
- "character": 1
1104
- },
1105
- "signature": "type GotEvent = (eventName: EventName) => Promise<void>",
1106
- "name": "GotEvent",
1107
- "type": {
1108
- "__schema": "FunctionLikeSchema",
1109
- "location": {
1110
- "filePath": "ipc-events.main.runtime.ts",
1111
- "line": 12,
1112
- "character": 17
1113
- },
1114
- "signature": "(eventName: EventName): Promise<void>",
1115
- "name": "",
1116
- "params": [
1117
- {
1118
- "__schema": "ParameterSchema",
1119
- "location": {
1120
- "filePath": "ipc-events.main.runtime.ts",
1121
- "line": 12,
1122
- "character": 18
1123
- },
1124
- "name": "eventName",
1125
- "type": {
1126
- "__schema": "TypeRefSchema",
1127
- "location": {
1128
- "filePath": "ipc-events.main.runtime.ts",
1129
- "line": 12,
1130
- "character": 29
1131
- },
1132
- "name": "EventName"
1133
- },
1134
- "isOptional": false,
1135
- "isSpread": false
1136
- }
1137
- ],
1138
- "returnType": {
1139
- "__schema": "TypeRefSchema",
1140
- "location": {
1141
- "filePath": "ipc-events.main.runtime.ts",
1142
- "line": 12,
1143
- "character": 43
1144
- },
1145
- "name": "Promise",
1146
- "typeArgs": [
1147
- {
1148
- "__schema": "KeywordTypeSchema",
1149
- "location": {
1150
- "filePath": "ipc-events.main.runtime.ts",
1151
- "line": 12,
1152
- "character": 51
1153
- },
1154
- "name": "void"
1155
- }
1156
- ]
1157
- },
1158
- "modifiers": []
1159
- }
1160
- },
1161
- {
1162
- "__schema": "TypeSchema",
1163
- "location": {
1164
- "filePath": "ipc-events.main.runtime.ts",
1165
- "line": 13,
1166
- "character": 1
1167
- },
1168
- "signature": "type GotEventSlot = SlotRegistry<GotEvent>",
1169
- "name": "GotEventSlot",
1170
- "type": {
1171
- "__schema": "TypeRefSchema",
1172
- "location": {
1173
- "filePath": "ipc-events.main.runtime.ts",
1174
- "line": 13,
1175
- "character": 21
1176
- },
1177
- "name": "SlotRegistry",
1178
- "typeArgs": [
1179
- {
1180
- "__schema": "TypeRefSchema",
1181
- "location": {
1182
- "filePath": "ipc-events.main.runtime.ts",
1183
- "line": 13,
1184
- "character": 34
1185
- },
1186
- "name": "GotEvent"
1187
- }
1188
- ]
1189
- }
1190
- },
1191
- {
1192
- "__schema": "ModuleSchema",
1193
- "location": {
1194
- "filePath": "ipc-events.main.runtime.ts",
1195
- "line": 15,
1196
- "character": 1
1197
- },
1198
- "exports": [
1199
- {
1200
- "__schema": "VariableLikeSchema",
1201
- "location": {
1202
- "filePath": "ipc-events.main.runtime.ts",
1203
- "line": 15,
1204
- "character": 7
1205
- },
1206
- "signature": "const EVENTS_DIR: \"events\"",
1207
- "name": "EVENTS_DIR",
1208
- "type": {
1209
- "__schema": "InferenceTypeSchema",
1210
- "location": {
1211
- "filePath": "ipc-events.main.runtime.ts",
1212
- "line": 15,
1213
- "character": 7
1214
- },
1215
- "type": "\"events\""
1216
- },
1217
- "isOptional": false,
1218
- "defaultValue": "'events'"
1219
- }
1220
- ],
1221
- "internals": []
1222
- },
1223
- {
1224
- "__schema": "UnImplementedSchema",
1225
- "location": {
1226
- "filePath": "ipc-events.main.runtime.ts",
1227
- "line": 87,
1228
- "character": 1
1229
- },
1230
- "name": "IpcEventsAspect.addRuntime(IpcEventsMain);",
1231
- "type": "ExpressionStatement"
1232
- }
1233
- ]
1234
- },
1235
- {
1236
- "__schema": "ModuleSchema",
1237
- "location": {
1238
- "filePath": "ipc-events.aspect.ts",
1239
- "line": 1,
1240
- "character": 1
1241
- },
1242
- "exports": [
1243
- {
1244
- "__schema": "VariableLikeSchema",
1245
- "location": {
1246
- "filePath": "ipc-events.aspect.ts",
1247
- "line": 3,
1248
- "character": 14
1249
- },
1250
- "signature": "const IpcEventsAspect: Aspect",
1251
- "name": "IpcEventsAspect",
1252
- "type": {
1253
- "__schema": "TypeRefSchema",
1254
- "location": {
1255
- "filePath": "ipc-events.aspect.ts",
1256
- "line": 3,
1257
- "character": 14
1258
- },
1259
- "name": "Aspect",
1260
- "componentId": {
1261
- "scope": "teambit.harmony",
1262
- "name": "harmony",
1263
- "version": "0.4.6"
1264
- }
1265
- },
1266
- "isOptional": false,
1267
- "defaultValue": "Aspect.create({\n id: 'teambit.harmony/ipc-events',\n})"
1268
- }
1269
- ],
1270
- "internals": []
1271
- }
1272
- ],
1273
- "componentId": {
1274
- "scope": "teambit.harmony",
1275
- "name": "ipc-events",
1276
- "version": "1.0.186"
1277
- },
1278
- "taggedModuleExports": []
1279
- }