@teambit/ipc-events 1.0.257 → 1.0.259

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.257" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.harmony/ipc-events@1.0.259" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -14,517 +14,526 @@
14
14
  },
15
15
  "exports": [
16
16
  {
17
- "__schema": "ClassSchema",
17
+ "__schema": "ExportSchema",
18
18
  "location": {
19
- "filePath": "ipc-events.main.runtime.ts",
20
- "line": 32,
21
- "character": 1
19
+ "filePath": "index.ts",
20
+ "line": 3,
21
+ "character": 15
22
22
  },
23
- "doc": {
24
- "__schema": "DocSchema",
23
+ "name": "IpcEventsMain",
24
+ "exportNode": {
25
+ "__schema": "ClassSchema",
25
26
  "location": {
26
27
  "filePath": "ipc-events.main.runtime.ts",
27
- "line": 17,
28
+ "line": 32,
28
29
  "character": 1
29
30
  },
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",
31
+ "doc": {
32
+ "__schema": "DocSchema",
38
33
  "location": {
39
34
  "filePath": "ipc-events.main.runtime.ts",
40
- "line": 33,
41
- "character": 3
35
+ "line": 17,
36
+ "character": 1
42
37
  },
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",
38
+ "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 */",
39
+ "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."
40
+ },
41
+ "signature": "class IpcEventsMain",
42
+ "name": "IpcEventsMain",
43
+ "members": [
44
+ {
45
+ "__schema": "ConstructorSchema",
46
+ "location": {
47
+ "filePath": "ipc-events.main.runtime.ts",
48
+ "line": 33,
49
+ "character": 3
50
+ },
51
+ "signature": "constructor IpcEventsMain(scope: ScopeMain, gotEventSlot: GotEventSlot, logger: Logger): IpcEventsMain",
52
+ "name": "constructor",
53
+ "params": [
54
+ {
55
+ "__schema": "ParameterSchema",
56
56
  "location": {
57
57
  "filePath": "ipc-events.main.runtime.ts",
58
58
  "line": 33,
59
- "character": 30
59
+ "character": 15
60
60
  },
61
- "name": "ScopeMain",
62
- "componentId": {
63
- "scope": "teambit.scope",
64
- "name": "scope"
65
- }
66
- },
67
- "isOptional": false,
68
- "isSpread": false
69
- },
70
- {
71
- "__schema": "ParameterSchema",
72
- "location": {
73
- "filePath": "ipc-events.main.runtime.ts",
74
- "line": 33,
75
- "character": 41
61
+ "name": "scope",
62
+ "type": {
63
+ "__schema": "TypeRefSchema",
64
+ "location": {
65
+ "filePath": "ipc-events.main.runtime.ts",
66
+ "line": 33,
67
+ "character": 30
68
+ },
69
+ "name": "ScopeMain",
70
+ "componentId": {
71
+ "scope": "teambit.scope",
72
+ "name": "scope"
73
+ }
74
+ },
75
+ "isOptional": false,
76
+ "isSpread": false
76
77
  },
77
- "name": "gotEventSlot",
78
- "type": {
79
- "__schema": "TypeRefSchema",
78
+ {
79
+ "__schema": "ParameterSchema",
80
80
  "location": {
81
81
  "filePath": "ipc-events.main.runtime.ts",
82
82
  "line": 33,
83
- "character": 63
83
+ "character": 41
84
84
  },
85
- "name": "GotEventSlot",
86
- "internalFilePath": "ipc-events.main.runtime.ts"
87
- },
88
- "isOptional": false,
89
- "isSpread": false
90
- },
91
- {
92
- "__schema": "ParameterSchema",
93
- "location": {
94
- "filePath": "ipc-events.main.runtime.ts",
95
- "line": 33,
96
- "character": 77
85
+ "name": "gotEventSlot",
86
+ "type": {
87
+ "__schema": "TypeRefSchema",
88
+ "location": {
89
+ "filePath": "ipc-events.main.runtime.ts",
90
+ "line": 33,
91
+ "character": 63
92
+ },
93
+ "name": "GotEventSlot",
94
+ "internalFilePath": "ipc-events.main.runtime.ts"
95
+ },
96
+ "isOptional": false,
97
+ "isSpread": false
97
98
  },
98
- "name": "logger",
99
- "type": {
100
- "__schema": "TypeRefSchema",
99
+ {
100
+ "__schema": "ParameterSchema",
101
101
  "location": {
102
102
  "filePath": "ipc-events.main.runtime.ts",
103
103
  "line": 33,
104
- "character": 93
104
+ "character": 77
105
105
  },
106
- "name": "Logger",
107
- "componentId": {
108
- "scope": "teambit.harmony",
109
- "name": "logger"
110
- }
106
+ "name": "logger",
107
+ "type": {
108
+ "__schema": "TypeRefSchema",
109
+ "location": {
110
+ "filePath": "ipc-events.main.runtime.ts",
111
+ "line": 33,
112
+ "character": 93
113
+ },
114
+ "name": "Logger",
115
+ "componentId": {
116
+ "scope": "teambit.harmony",
117
+ "name": "logger"
118
+ }
119
+ },
120
+ "isOptional": false,
121
+ "isSpread": false
122
+ }
123
+ ],
124
+ "returnType": {
125
+ "__schema": "ThisTypeSchema",
126
+ "location": {
127
+ "filePath": "ipc-events.main.runtime.ts",
128
+ "line": 32,
129
+ "character": 1
111
130
  },
112
- "isOptional": false,
113
- "isSpread": false
114
- }
115
- ],
116
- "returnType": {
117
- "__schema": "ThisTypeSchema",
131
+ "name": "IpcEventsMain"
132
+ },
133
+ "modifiers": []
134
+ },
135
+ {
136
+ "__schema": "FunctionLikeSchema",
118
137
  "location": {
119
138
  "filePath": "ipc-events.main.runtime.ts",
120
- "line": 32,
121
- "character": 1
139
+ "line": 35,
140
+ "character": 3
122
141
  },
123
- "name": "IpcEventsMain"
124
- },
125
- "modifiers": []
126
- },
127
- {
128
- "__schema": "FunctionLikeSchema",
129
- "location": {
130
- "filePath": "ipc-events.main.runtime.ts",
131
- "line": 35,
132
- "character": 3
133
- },
134
- "signature": "(method) IpcEventsMain.registerGotEventSlot(fn: GotEvent): void",
135
- "name": "registerGotEventSlot",
136
- "params": [
137
- {
138
- "__schema": "ParameterSchema",
139
- "location": {
140
- "filePath": "ipc-events.main.runtime.ts",
141
- "line": 35,
142
- "character": 24
143
- },
144
- "name": "fn",
145
- "type": {
146
- "__schema": "TypeRefSchema",
142
+ "signature": "(method) IpcEventsMain.registerGotEventSlot(fn: GotEvent): void",
143
+ "name": "registerGotEventSlot",
144
+ "params": [
145
+ {
146
+ "__schema": "ParameterSchema",
147
147
  "location": {
148
148
  "filePath": "ipc-events.main.runtime.ts",
149
149
  "line": 35,
150
- "character": 28
150
+ "character": 24
151
151
  },
152
- "name": "GotEvent",
153
- "internalFilePath": "ipc-events.main.runtime.ts"
152
+ "name": "fn",
153
+ "type": {
154
+ "__schema": "TypeRefSchema",
155
+ "location": {
156
+ "filePath": "ipc-events.main.runtime.ts",
157
+ "line": 35,
158
+ "character": 28
159
+ },
160
+ "name": "GotEvent",
161
+ "internalFilePath": "ipc-events.main.runtime.ts"
162
+ },
163
+ "isOptional": false,
164
+ "isSpread": false
165
+ }
166
+ ],
167
+ "returnType": {
168
+ "__schema": "InferenceTypeSchema",
169
+ "location": {
170
+ "filePath": "ipc-events.main.runtime.ts",
171
+ "line": 35,
172
+ "character": 3
154
173
  },
155
- "isOptional": false,
156
- "isSpread": false
157
- }
158
- ],
159
- "returnType": {
160
- "__schema": "InferenceTypeSchema",
161
- "location": {
162
- "filePath": "ipc-events.main.runtime.ts",
163
- "line": 35,
164
- "character": 3
174
+ "type": "void"
165
175
  },
166
- "type": "void"
167
- },
168
- "modifiers": []
169
- },
170
- {
171
- "__schema": "FunctionLikeSchema",
172
- "location": {
173
- "filePath": "ipc-events.main.runtime.ts",
174
- "line": 43,
175
- "character": 3
176
+ "modifiers": []
176
177
  },
177
- "doc": {
178
- "__schema": "DocSchema",
178
+ {
179
+ "__schema": "FunctionLikeSchema",
179
180
  "location": {
180
181
  "filePath": "ipc-events.main.runtime.ts",
181
- "line": 39,
182
+ "line": 43,
182
183
  "character": 3
183
184
  },
184
- "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 */",
185
- "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"
186
- },
187
- "signature": "(method) IpcEventsMain.triggerGotEvent(eventName: EventName): Promise<void>",
188
- "name": "triggerGotEvent",
189
- "params": [
190
- {
191
- "__schema": "ParameterSchema",
185
+ "doc": {
186
+ "__schema": "DocSchema",
192
187
  "location": {
193
188
  "filePath": "ipc-events.main.runtime.ts",
194
- "line": 43,
195
- "character": 25
189
+ "line": 39,
190
+ "character": 3
196
191
  },
197
- "name": "eventName",
198
- "type": {
199
- "__schema": "TypeRefSchema",
192
+ "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 */",
193
+ "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"
194
+ },
195
+ "signature": "(method) IpcEventsMain.triggerGotEvent(eventName: EventName): Promise<void>",
196
+ "name": "triggerGotEvent",
197
+ "params": [
198
+ {
199
+ "__schema": "ParameterSchema",
200
200
  "location": {
201
201
  "filePath": "ipc-events.main.runtime.ts",
202
202
  "line": 43,
203
- "character": 36
203
+ "character": 25
204
204
  },
205
- "name": "EventName",
206
- "internalFilePath": "ipc-events.main.runtime.ts"
205
+ "name": "eventName",
206
+ "type": {
207
+ "__schema": "TypeRefSchema",
208
+ "location": {
209
+ "filePath": "ipc-events.main.runtime.ts",
210
+ "line": 43,
211
+ "character": 36
212
+ },
213
+ "name": "EventName",
214
+ "internalFilePath": "ipc-events.main.runtime.ts"
215
+ },
216
+ "isOptional": false,
217
+ "isSpread": false
218
+ }
219
+ ],
220
+ "returnType": {
221
+ "__schema": "InferenceTypeSchema",
222
+ "location": {
223
+ "filePath": "ipc-events.main.runtime.ts",
224
+ "line": 43,
225
+ "character": 3
207
226
  },
208
- "isOptional": false,
209
- "isSpread": false
210
- }
211
- ],
212
- "returnType": {
213
- "__schema": "InferenceTypeSchema",
214
- "location": {
215
- "filePath": "ipc-events.main.runtime.ts",
216
- "line": 43,
217
- "character": 3
227
+ "type": "Promise<void>"
218
228
  },
219
- "type": "Promise<void>"
220
- },
221
- "modifiers": [
222
- "async"
223
- ]
224
- },
225
- {
226
- "__schema": "FunctionLikeSchema",
227
- "location": {
228
- "filePath": "ipc-events.main.runtime.ts",
229
- "line": 52,
230
- "character": 3
229
+ "modifiers": [
230
+ "async"
231
+ ]
231
232
  },
232
- "doc": {
233
- "__schema": "DocSchema",
233
+ {
234
+ "__schema": "FunctionLikeSchema",
234
235
  "location": {
235
236
  "filePath": "ipc-events.main.runtime.ts",
236
- "line": 48,
237
+ "line": 52,
237
238
  "character": 3
238
239
  },
239
- "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 */",
240
- "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."
241
- },
242
- "signature": "(method) IpcEventsMain.publishIpcEvent(eventName: EventName, data?: Record<string, any>): Promise<void>",
243
- "name": "publishIpcEvent",
244
- "params": [
245
- {
246
- "__schema": "ParameterSchema",
240
+ "doc": {
241
+ "__schema": "DocSchema",
247
242
  "location": {
248
243
  "filePath": "ipc-events.main.runtime.ts",
249
- "line": 52,
250
- "character": 25
244
+ "line": 48,
245
+ "character": 3
251
246
  },
252
- "name": "eventName",
253
- "type": {
254
- "__schema": "TypeRefSchema",
247
+ "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 */",
248
+ "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."
249
+ },
250
+ "signature": "(method) IpcEventsMain.publishIpcEvent(eventName: EventName, data?: Record<string, any>): Promise<void>",
251
+ "name": "publishIpcEvent",
252
+ "params": [
253
+ {
254
+ "__schema": "ParameterSchema",
255
255
  "location": {
256
256
  "filePath": "ipc-events.main.runtime.ts",
257
257
  "line": 52,
258
- "character": 36
258
+ "character": 25
259
259
  },
260
- "name": "EventName",
261
- "internalFilePath": "ipc-events.main.runtime.ts"
262
- },
263
- "isOptional": false,
264
- "isSpread": false
265
- },
266
- {
267
- "__schema": "ParameterSchema",
268
- "location": {
269
- "filePath": "ipc-events.main.runtime.ts",
270
- "line": 52,
271
- "character": 47
260
+ "name": "eventName",
261
+ "type": {
262
+ "__schema": "TypeRefSchema",
263
+ "location": {
264
+ "filePath": "ipc-events.main.runtime.ts",
265
+ "line": 52,
266
+ "character": 36
267
+ },
268
+ "name": "EventName",
269
+ "internalFilePath": "ipc-events.main.runtime.ts"
270
+ },
271
+ "isOptional": false,
272
+ "isSpread": false
272
273
  },
273
- "name": "data",
274
- "type": {
275
- "__schema": "TypeRefSchema",
274
+ {
275
+ "__schema": "ParameterSchema",
276
276
  "location": {
277
277
  "filePath": "ipc-events.main.runtime.ts",
278
278
  "line": 52,
279
- "character": 54
279
+ "character": 47
280
280
  },
281
- "name": "Record",
282
- "typeArgs": [
283
- {
284
- "__schema": "KeywordTypeSchema",
285
- "location": {
286
- "filePath": "ipc-events.main.runtime.ts",
287
- "line": 52,
288
- "character": 61
289
- },
290
- "name": "string"
281
+ "name": "data",
282
+ "type": {
283
+ "__schema": "TypeRefSchema",
284
+ "location": {
285
+ "filePath": "ipc-events.main.runtime.ts",
286
+ "line": 52,
287
+ "character": 54
291
288
  },
292
- {
293
- "__schema": "KeywordTypeSchema",
294
- "location": {
295
- "filePath": "ipc-events.main.runtime.ts",
296
- "line": 52,
297
- "character": 69
289
+ "name": "Record",
290
+ "typeArgs": [
291
+ {
292
+ "__schema": "KeywordTypeSchema",
293
+ "location": {
294
+ "filePath": "ipc-events.main.runtime.ts",
295
+ "line": 52,
296
+ "character": 61
297
+ },
298
+ "name": "string"
298
299
  },
299
- "name": "any"
300
- }
301
- ]
300
+ {
301
+ "__schema": "KeywordTypeSchema",
302
+ "location": {
303
+ "filePath": "ipc-events.main.runtime.ts",
304
+ "line": 52,
305
+ "character": 69
306
+ },
307
+ "name": "any"
308
+ }
309
+ ]
310
+ },
311
+ "isOptional": true,
312
+ "isSpread": false
313
+ }
314
+ ],
315
+ "returnType": {
316
+ "__schema": "InferenceTypeSchema",
317
+ "location": {
318
+ "filePath": "ipc-events.main.runtime.ts",
319
+ "line": 52,
320
+ "character": 3
302
321
  },
303
- "isOptional": true,
304
- "isSpread": false
305
- }
306
- ],
307
- "returnType": {
308
- "__schema": "InferenceTypeSchema",
309
- "location": {
310
- "filePath": "ipc-events.main.runtime.ts",
311
- "line": 52,
312
- "character": 3
322
+ "type": "Promise<void>"
313
323
  },
314
- "type": "Promise<void>"
315
- },
316
- "modifiers": [
317
- "async"
318
- ]
319
- },
320
- {
321
- "__schema": "GetAccessorSchema",
322
- "location": {
323
- "filePath": "ipc-events.main.runtime.ts",
324
- "line": 58,
325
- "character": 3
324
+ "modifiers": [
325
+ "async"
326
+ ]
326
327
  },
327
- "signature": "(getter) IpcEventsMain.eventsDir: string",
328
- "name": "eventsDir",
329
- "type": {
330
- "__schema": "InferenceTypeSchema",
328
+ {
329
+ "__schema": "GetAccessorSchema",
331
330
  "location": {
332
331
  "filePath": "ipc-events.main.runtime.ts",
333
332
  "line": 58,
334
333
  "character": 3
335
334
  },
336
- "type": "string"
337
- }
338
- },
339
- {
340
- "__schema": "VariableLikeSchema",
341
- "location": {
342
- "filePath": "ipc-events.main.runtime.ts",
343
- "line": 62,
344
- "character": 3
335
+ "signature": "(getter) IpcEventsMain.eventsDir: string",
336
+ "name": "eventsDir",
337
+ "type": {
338
+ "__schema": "InferenceTypeSchema",
339
+ "location": {
340
+ "filePath": "ipc-events.main.runtime.ts",
341
+ "line": 58,
342
+ "character": 3
343
+ },
344
+ "type": "string"
345
+ }
345
346
  },
346
- "signature": "(property) IpcEventsMain.slots: ((registerFn: () => string) => SlotRegistry<GotEventSlot>)[]",
347
- "name": "slots",
348
- "type": {
349
- "__schema": "InferenceTypeSchema",
347
+ {
348
+ "__schema": "VariableLikeSchema",
350
349
  "location": {
351
350
  "filePath": "ipc-events.main.runtime.ts",
352
351
  "line": 62,
353
352
  "character": 3
354
353
  },
355
- "type": "((registerFn: () => string) => SlotRegistry<GotEventSlot>)[]"
356
- },
357
- "isOptional": true,
358
- "defaultValue": "[Slot.withType<GotEventSlot>()]"
359
- },
360
- {
361
- "__schema": "VariableLikeSchema",
362
- "location": {
363
- "filePath": "ipc-events.main.runtime.ts",
364
- "line": 63,
365
- "character": 3
354
+ "signature": "(property) IpcEventsMain.slots: ((registerFn: () => string) => SlotRegistry<GotEventSlot>)[]",
355
+ "name": "slots",
356
+ "type": {
357
+ "__schema": "InferenceTypeSchema",
358
+ "location": {
359
+ "filePath": "ipc-events.main.runtime.ts",
360
+ "line": 62,
361
+ "character": 3
362
+ },
363
+ "type": "((registerFn: () => string) => SlotRegistry<GotEventSlot>)[]"
364
+ },
365
+ "isOptional": true,
366
+ "defaultValue": "[Slot.withType<GotEventSlot>()]"
366
367
  },
367
- "signature": "(property) IpcEventsMain.dependencies: Aspect[]",
368
- "name": "dependencies",
369
- "type": {
370
- "__schema": "InferenceTypeSchema",
368
+ {
369
+ "__schema": "VariableLikeSchema",
371
370
  "location": {
372
371
  "filePath": "ipc-events.main.runtime.ts",
373
372
  "line": 63,
374
373
  "character": 3
375
374
  },
376
- "type": "Aspect[]"
377
- },
378
- "isOptional": true,
379
- "defaultValue": "[ScopeAspect, LoggerAspect]"
380
- },
381
- {
382
- "__schema": "VariableLikeSchema",
383
- "location": {
384
- "filePath": "ipc-events.main.runtime.ts",
385
- "line": 64,
386
- "character": 3
375
+ "signature": "(property) IpcEventsMain.dependencies: Aspect[]",
376
+ "name": "dependencies",
377
+ "type": {
378
+ "__schema": "InferenceTypeSchema",
379
+ "location": {
380
+ "filePath": "ipc-events.main.runtime.ts",
381
+ "line": 63,
382
+ "character": 3
383
+ },
384
+ "type": "Aspect[]"
385
+ },
386
+ "isOptional": true,
387
+ "defaultValue": "[ScopeAspect, LoggerAspect]"
387
388
  },
388
- "signature": "(property) IpcEventsMain.runtime: RuntimeDefinition",
389
- "name": "runtime",
390
- "type": {
391
- "__schema": "InferenceTypeSchema",
389
+ {
390
+ "__schema": "VariableLikeSchema",
392
391
  "location": {
393
392
  "filePath": "ipc-events.main.runtime.ts",
394
393
  "line": 64,
395
394
  "character": 3
396
395
  },
397
- "type": "RuntimeDefinition"
398
- },
399
- "isOptional": true,
400
- "defaultValue": "MainRuntime"
401
- },
402
- {
403
- "__schema": "FunctionLikeSchema",
404
- "location": {
405
- "filePath": "ipc-events.main.runtime.ts",
406
- "line": 66,
407
- "character": 3
408
- },
409
- "signature": "(method) IpcEventsMain.provider([scope, loggerMain]: [ScopeMain, LoggerMain], _: any, [gotEventSlot]: [GotEventSlot]): Promise<IpcEventsMain>",
410
- "name": "provider",
411
- "params": [
412
- {
413
- "__schema": "ParameterSchema",
396
+ "signature": "(property) IpcEventsMain.runtime: RuntimeDefinition",
397
+ "name": "runtime",
398
+ "type": {
399
+ "__schema": "InferenceTypeSchema",
414
400
  "location": {
415
401
  "filePath": "ipc-events.main.runtime.ts",
416
- "line": 66,
417
- "character": 25
402
+ "line": 64,
403
+ "character": 3
418
404
  },
419
- "name": "[ scope, loggerMain ]",
420
- "type": {
421
- "__schema": "TupleTypeSchema",
405
+ "type": "RuntimeDefinition"
406
+ },
407
+ "isOptional": true,
408
+ "defaultValue": "MainRuntime"
409
+ },
410
+ {
411
+ "__schema": "FunctionLikeSchema",
412
+ "location": {
413
+ "filePath": "ipc-events.main.runtime.ts",
414
+ "line": 66,
415
+ "character": 3
416
+ },
417
+ "signature": "(method) IpcEventsMain.provider([scope, loggerMain]: [ScopeMain, LoggerMain], _: any, [gotEventSlot]: [GotEventSlot]): Promise<IpcEventsMain>",
418
+ "name": "provider",
419
+ "params": [
420
+ {
421
+ "__schema": "ParameterSchema",
422
422
  "location": {
423
423
  "filePath": "ipc-events.main.runtime.ts",
424
424
  "line": 66,
425
- "character": 46
425
+ "character": 25
426
426
  },
427
- "elements": [
428
- {
429
- "__schema": "TypeRefSchema",
430
- "location": {
431
- "filePath": "ipc-events.main.runtime.ts",
432
- "line": 66,
433
- "character": 47
434
- },
435
- "name": "ScopeMain",
436
- "componentId": {
437
- "scope": "teambit.scope",
438
- "name": "scope"
439
- }
427
+ "name": "[ scope, loggerMain ]",
428
+ "type": {
429
+ "__schema": "TupleTypeSchema",
430
+ "location": {
431
+ "filePath": "ipc-events.main.runtime.ts",
432
+ "line": 66,
433
+ "character": 46
440
434
  },
441
- {
442
- "__schema": "TypeRefSchema",
443
- "location": {
444
- "filePath": "ipc-events.main.runtime.ts",
445
- "line": 66,
446
- "character": 58
435
+ "elements": [
436
+ {
437
+ "__schema": "TypeRefSchema",
438
+ "location": {
439
+ "filePath": "ipc-events.main.runtime.ts",
440
+ "line": 66,
441
+ "character": 47
442
+ },
443
+ "name": "ScopeMain",
444
+ "componentId": {
445
+ "scope": "teambit.scope",
446
+ "name": "scope"
447
+ }
447
448
  },
448
- "name": "LoggerMain",
449
- "componentId": {
450
- "scope": "teambit.harmony",
451
- "name": "logger"
449
+ {
450
+ "__schema": "TypeRefSchema",
451
+ "location": {
452
+ "filePath": "ipc-events.main.runtime.ts",
453
+ "line": 66,
454
+ "character": 58
455
+ },
456
+ "name": "LoggerMain",
457
+ "componentId": {
458
+ "scope": "teambit.harmony",
459
+ "name": "logger"
460
+ }
452
461
  }
453
- }
454
- ]
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": 71
462
+ ]
463
+ },
464
+ "isOptional": false,
465
+ "isSpread": false
465
466
  },
466
- "name": "_",
467
- "type": {
468
- "__schema": "InferenceTypeSchema",
467
+ {
468
+ "__schema": "ParameterSchema",
469
469
  "location": {
470
470
  "filePath": "ipc-events.main.runtime.ts",
471
471
  "line": 66,
472
472
  "character": 71
473
473
  },
474
- "type": "any"
475
- },
476
- "isOptional": false,
477
- "isSpread": false
478
- },
479
- {
480
- "__schema": "ParameterSchema",
481
- "location": {
482
- "filePath": "ipc-events.main.runtime.ts",
483
- "line": 66,
484
- "character": 74
474
+ "name": "_",
475
+ "type": {
476
+ "__schema": "InferenceTypeSchema",
477
+ "location": {
478
+ "filePath": "ipc-events.main.runtime.ts",
479
+ "line": 66,
480
+ "character": 71
481
+ },
482
+ "type": "any"
483
+ },
484
+ "isOptional": false,
485
+ "isSpread": false
485
486
  },
486
- "name": "[ gotEventSlot ]",
487
- "type": {
488
- "__schema": "TupleTypeSchema",
487
+ {
488
+ "__schema": "ParameterSchema",
489
489
  "location": {
490
490
  "filePath": "ipc-events.main.runtime.ts",
491
491
  "line": 66,
492
- "character": 90
492
+ "character": 74
493
493
  },
494
- "elements": [
495
- {
496
- "__schema": "TypeRefSchema",
497
- "location": {
498
- "filePath": "ipc-events.main.runtime.ts",
499
- "line": 66,
500
- "character": 91
501
- },
502
- "name": "GotEventSlot",
503
- "internalFilePath": "ipc-events.main.runtime.ts"
504
- }
505
- ]
494
+ "name": "[ gotEventSlot ]",
495
+ "type": {
496
+ "__schema": "TupleTypeSchema",
497
+ "location": {
498
+ "filePath": "ipc-events.main.runtime.ts",
499
+ "line": 66,
500
+ "character": 90
501
+ },
502
+ "elements": [
503
+ {
504
+ "__schema": "TypeRefSchema",
505
+ "location": {
506
+ "filePath": "ipc-events.main.runtime.ts",
507
+ "line": 66,
508
+ "character": 91
509
+ },
510
+ "name": "GotEventSlot",
511
+ "internalFilePath": "ipc-events.main.runtime.ts"
512
+ }
513
+ ]
514
+ },
515
+ "isOptional": false,
516
+ "isSpread": false
517
+ }
518
+ ],
519
+ "returnType": {
520
+ "__schema": "InferenceTypeSchema",
521
+ "location": {
522
+ "filePath": "ipc-events.main.runtime.ts",
523
+ "line": 66,
524
+ "character": 3
506
525
  },
507
- "isOptional": false,
508
- "isSpread": false
509
- }
510
- ],
511
- "returnType": {
512
- "__schema": "InferenceTypeSchema",
513
- "location": {
514
- "filePath": "ipc-events.main.runtime.ts",
515
- "line": 66,
516
- "character": 3
526
+ "type": "Promise<IpcEventsMain>"
517
527
  },
518
- "type": "Promise<IpcEventsMain>"
519
- },
520
- "modifiers": [
521
- "static",
522
- "async"
523
- ]
524
- }
525
- ],
526
- "extendsNodes": [],
527
- "implementNodes": []
528
+ "modifiers": [
529
+ "static",
530
+ "async"
531
+ ]
532
+ }
533
+ ],
534
+ "extendsNodes": [],
535
+ "implementNodes": []
536
+ }
528
537
  },
529
538
  {
530
539
  "__schema": "UnImplementedSchema",
@@ -537,30 +546,39 @@
537
546
  "type": "Identifier"
538
547
  },
539
548
  {
540
- "__schema": "VariableLikeSchema",
549
+ "__schema": "ExportSchema",
541
550
  "location": {
542
- "filePath": "ipc-events.aspect.ts",
543
- "line": 3,
544
- "character": 14
551
+ "filePath": "index.ts",
552
+ "line": 5,
553
+ "character": 10
545
554
  },
546
- "signature": "const IpcEventsAspect: Aspect",
547
555
  "name": "IpcEventsAspect",
548
- "type": {
549
- "__schema": "TypeRefSchema",
556
+ "exportNode": {
557
+ "__schema": "VariableLikeSchema",
550
558
  "location": {
551
559
  "filePath": "ipc-events.aspect.ts",
552
560
  "line": 3,
553
561
  "character": 14
554
562
  },
555
- "name": "Aspect",
556
- "componentId": {
557
- "scope": "teambit.harmony",
558
- "name": "harmony",
559
- "version": "0.4.6"
560
- }
561
- },
562
- "isOptional": false,
563
- "defaultValue": "Aspect.create({\n id: 'teambit.harmony/ipc-events',\n})"
563
+ "signature": "const IpcEventsAspect: Aspect",
564
+ "name": "IpcEventsAspect",
565
+ "type": {
566
+ "__schema": "TypeRefSchema",
567
+ "location": {
568
+ "filePath": "ipc-events.aspect.ts",
569
+ "line": 3,
570
+ "character": 14
571
+ },
572
+ "name": "Aspect",
573
+ "componentId": {
574
+ "scope": "teambit.harmony",
575
+ "name": "harmony",
576
+ "version": "0.4.6"
577
+ }
578
+ },
579
+ "isOptional": false,
580
+ "defaultValue": "Aspect.create({\n id: 'teambit.harmony/ipc-events',\n})"
581
+ }
564
582
  }
565
583
  ],
566
584
  "internals": []
@@ -1322,7 +1340,7 @@
1322
1340
  "componentId": {
1323
1341
  "scope": "teambit.harmony",
1324
1342
  "name": "ipc-events",
1325
- "version": "1.0.257"
1343
+ "version": "1.0.259"
1326
1344
  },
1327
1345
  "taggedModuleExports": []
1328
1346
  }
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@teambit/ipc-events",
3
- "version": "1.0.257",
3
+ "version": "1.0.259",
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.257"
9
+ "version": "1.0.259"
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.862",
16
- "@teambit/logger": "0.0.955",
17
- "@teambit/scope": "1.0.257"
15
+ "@teambit/cli": "0.0.863",
16
+ "@teambit/logger": "0.0.956",
17
+ "@teambit/scope": "1.0.259"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/fs-extra": "9.0.7",