@teambit/prettier 1.0.512 → 1.0.513

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.defender/prettier@1.0.512" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.defender/prettier@1.0.513" 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.defender/prettier-preview"]=t():e["teambit.defender/prettier-preview"]=t()}(self,(()=>(()=>{"use strict";var e={695:(e,t,o)=>{var r={id:"teambit.defender/prettier@1.0.512",homepage:"https://bit.cloud/teambit/defender/prettier",exported:!0};function i(){const e=n(o(594));return i=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,i.__bit_component=r,n.__bit_component=r;const d=()=>i().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},i().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/brands/logo-prettier.svg"}));d.__bit_component=r,t.Logo=d},594:e=>{e.exports=React}},t={};function o(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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 r={};o.r(r),o.d(r,{compositions:()=>i,compositions_metadata:()=>d,overview:()=>n});const i=[o(695)],n=[],d={compositions:[{displayName:"Logo",identifier:"Logo"}]};return r})()));
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.defender/prettier-preview"]=t():e["teambit.defender/prettier-preview"]=t()}(self,(()=>(()=>{"use strict";var e={744:(e,t,o)=>{var r={id:"teambit.defender/prettier@1.0.513",homepage:"https://bit.cloud/teambit/defender/prettier",exported:!0};function i(){const e=n(o(594));return i=function(){return e},e}function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,i.__bit_component=r,n.__bit_component=r;const d=()=>i().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},i().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/brands/logo-prettier.svg"}));d.__bit_component=r,t.Logo=d},594:e=>{e.exports=React}},t={};function o(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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 r={};o.r(r),o.d(r,{compositions:()=>i,compositions_metadata:()=>d,overview:()=>n});const i=[o(744)],n=[],d={compositions:[{displayName:"Logo",identifier:"Logo"}]};return r})()));
@@ -0,0 +1,1036 @@
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": "ExportSchema",
18
+ "location": {
19
+ "filePath": "index.ts",
20
+ "line": 3,
21
+ "character": 10
22
+ },
23
+ "signature": "const PrettierAspect: Aspect",
24
+ "name": "PrettierAspect",
25
+ "exportNode": {
26
+ "__schema": "VariableLikeSchema",
27
+ "location": {
28
+ "filePath": "prettier.aspect.ts",
29
+ "line": 3,
30
+ "character": 14
31
+ },
32
+ "signature": "const PrettierAspect: Aspect",
33
+ "name": "PrettierAspect",
34
+ "type": {
35
+ "__schema": "TypeRefSchema",
36
+ "location": {
37
+ "filePath": "prettier.aspect.ts",
38
+ "line": 3,
39
+ "character": 14
40
+ },
41
+ "name": "Aspect",
42
+ "componentId": {
43
+ "scope": "teambit.harmony",
44
+ "name": "harmony",
45
+ "version": "0.4.6"
46
+ }
47
+ },
48
+ "isOptional": false,
49
+ "defaultValue": "Aspect.create({\n id: 'teambit.defender/prettier',\n})"
50
+ }
51
+ },
52
+ {
53
+ "__schema": "ExportSchema",
54
+ "location": {
55
+ "filePath": "index.ts",
56
+ "line": 4,
57
+ "character": 15
58
+ },
59
+ "signature": "class PrettierMain",
60
+ "name": "PrettierMain",
61
+ "exportNode": {
62
+ "__schema": "ClassSchema",
63
+ "location": {
64
+ "filePath": "prettier.main.runtime.ts",
65
+ "line": 24,
66
+ "character": 1
67
+ },
68
+ "signature": "class PrettierMain",
69
+ "name": "PrettierMain",
70
+ "members": [
71
+ {
72
+ "__schema": "ConstructorSchema",
73
+ "location": {
74
+ "filePath": "prettier.main.runtime.ts",
75
+ "line": 25,
76
+ "character": 3
77
+ },
78
+ "signature": "constructor PrettierMain(logger: Logger): PrettierMain",
79
+ "name": "constructor",
80
+ "params": [
81
+ {
82
+ "__schema": "ParameterSchema",
83
+ "location": {
84
+ "filePath": "prettier.main.runtime.ts",
85
+ "line": 25,
86
+ "character": 15
87
+ },
88
+ "name": "logger",
89
+ "type": {
90
+ "__schema": "TypeRefSchema",
91
+ "location": {
92
+ "filePath": "prettier.main.runtime.ts",
93
+ "line": 25,
94
+ "character": 31
95
+ },
96
+ "name": "Logger"
97
+ },
98
+ "isOptional": false,
99
+ "isSpread": false
100
+ }
101
+ ],
102
+ "returnType": {
103
+ "__schema": "ThisTypeSchema",
104
+ "location": {
105
+ "filePath": "prettier.main.runtime.ts",
106
+ "line": 24,
107
+ "character": 1
108
+ },
109
+ "name": "PrettierMain"
110
+ },
111
+ "modifiers": []
112
+ },
113
+ {
114
+ "__schema": "FunctionLikeSchema",
115
+ "location": {
116
+ "filePath": "prettier.main.runtime.ts",
117
+ "line": 32,
118
+ "character": 3
119
+ },
120
+ "doc": {
121
+ "__schema": "DocSchema",
122
+ "location": {
123
+ "filePath": "prettier.main.runtime.ts",
124
+ "line": 26,
125
+ "character": 3
126
+ },
127
+ "raw": "/**\n * @deprecated use prettier formatter from https://bit.cloud/teambit/defender/prettier-formatter\n * create a prettier formatter instance.\n * @param options prettier options.\n * @param PrettierModule reference to an `prettier` module.\n */",
128
+ "comment": "",
129
+ "tags": [
130
+ {
131
+ "__schema": "TagSchema",
132
+ "location": {
133
+ "filePath": "prettier.main.runtime.ts",
134
+ "line": 27,
135
+ "character": 6
136
+ },
137
+ "tagName": "deprecated",
138
+ "comment": "use prettier formatter from https://bit.cloud/teambit/defender/prettier-formatter\ncreate a prettier formatter instance."
139
+ },
140
+ {
141
+ "__schema": "PropertyLikeTagSchema",
142
+ "location": {
143
+ "filePath": "prettier.main.runtime.ts",
144
+ "line": 29,
145
+ "character": 6
146
+ },
147
+ "name": "options",
148
+ "tagName": "parameter",
149
+ "comment": "prettier options."
150
+ },
151
+ {
152
+ "__schema": "PropertyLikeTagSchema",
153
+ "location": {
154
+ "filePath": "prettier.main.runtime.ts",
155
+ "line": 30,
156
+ "character": 6
157
+ },
158
+ "name": "PrettierModule",
159
+ "tagName": "parameter",
160
+ "comment": "reference to an `prettier` module."
161
+ }
162
+ ]
163
+ },
164
+ "signature": "(method) PrettierMain.createFormatter(formatterOptions: FormatterOptions | undefined, options: PrettierOptions, transformers?: PrettierConfigTransformer[], PrettierModule?: any): Formatter",
165
+ "name": "createFormatter",
166
+ "params": [
167
+ {
168
+ "__schema": "ParameterSchema",
169
+ "location": {
170
+ "filePath": "prettier.main.runtime.ts",
171
+ "line": 33,
172
+ "character": 5
173
+ },
174
+ "name": "formatterOptions",
175
+ "type": {
176
+ "__schema": "TypeRefSchema",
177
+ "location": {
178
+ "filePath": "prettier.main.runtime.ts",
179
+ "line": 33,
180
+ "character": 23
181
+ },
182
+ "name": "FormatterOptions"
183
+ },
184
+ "isOptional": true,
185
+ "defaultValue": "{}",
186
+ "isSpread": false
187
+ },
188
+ {
189
+ "__schema": "ParameterSchema",
190
+ "location": {
191
+ "filePath": "prettier.main.runtime.ts",
192
+ "line": 34,
193
+ "character": 5
194
+ },
195
+ "name": "options",
196
+ "type": {
197
+ "__schema": "TypeRefSchema",
198
+ "location": {
199
+ "filePath": "prettier.main.runtime.ts",
200
+ "line": 34,
201
+ "character": 14
202
+ },
203
+ "name": "PrettierOptions"
204
+ },
205
+ "isOptional": false,
206
+ "isSpread": false
207
+ },
208
+ {
209
+ "__schema": "ParameterSchema",
210
+ "location": {
211
+ "filePath": "prettier.main.runtime.ts",
212
+ "line": 35,
213
+ "character": 5
214
+ },
215
+ "name": "transformers",
216
+ "type": {
217
+ "__schema": "TypeArraySchema",
218
+ "location": {
219
+ "filePath": "prettier.main.runtime.ts",
220
+ "line": 35,
221
+ "character": 19
222
+ },
223
+ "type": {
224
+ "__schema": "TypeRefSchema",
225
+ "location": {
226
+ "filePath": "prettier.main.runtime.ts",
227
+ "line": 35,
228
+ "character": 19
229
+ },
230
+ "name": "PrettierConfigTransformer"
231
+ }
232
+ },
233
+ "isOptional": true,
234
+ "defaultValue": "[]",
235
+ "isSpread": false
236
+ },
237
+ {
238
+ "__schema": "ParameterSchema",
239
+ "location": {
240
+ "filePath": "prettier.main.runtime.ts",
241
+ "line": 36,
242
+ "character": 5
243
+ },
244
+ "name": "PrettierModule",
245
+ "type": {
246
+ "__schema": "KeywordTypeSchema",
247
+ "location": {
248
+ "filePath": "prettier.main.runtime.ts",
249
+ "line": 36,
250
+ "character": 22
251
+ },
252
+ "name": "any"
253
+ },
254
+ "isOptional": true,
255
+ "isSpread": false
256
+ }
257
+ ],
258
+ "returnType": {
259
+ "__schema": "TypeRefSchema",
260
+ "location": {
261
+ "filePath": "prettier.main.runtime.ts",
262
+ "line": 32,
263
+ "character": 3
264
+ },
265
+ "name": "Formatter",
266
+ "componentId": {
267
+ "scope": "teambit.defender",
268
+ "name": "formatter"
269
+ }
270
+ },
271
+ "modifiers": []
272
+ },
273
+ {
274
+ "__schema": "VariableLikeSchema",
275
+ "location": {
276
+ "filePath": "prettier.main.runtime.ts",
277
+ "line": 47,
278
+ "character": 3
279
+ },
280
+ "signature": "(property) PrettierMain.runtime: RuntimeDefinition",
281
+ "name": "runtime",
282
+ "type": {
283
+ "__schema": "InferenceTypeSchema",
284
+ "location": {
285
+ "filePath": "prettier.main.runtime.ts",
286
+ "line": 47,
287
+ "character": 3
288
+ },
289
+ "type": "RuntimeDefinition"
290
+ },
291
+ "isOptional": true,
292
+ "defaultValue": "MainRuntime"
293
+ },
294
+ {
295
+ "__schema": "VariableLikeSchema",
296
+ "location": {
297
+ "filePath": "prettier.main.runtime.ts",
298
+ "line": 49,
299
+ "character": 3
300
+ },
301
+ "signature": "(property) PrettierMain.dependencies: Aspect[]",
302
+ "name": "dependencies",
303
+ "type": {
304
+ "__schema": "InferenceTypeSchema",
305
+ "location": {
306
+ "filePath": "prettier.main.runtime.ts",
307
+ "line": 49,
308
+ "character": 3
309
+ },
310
+ "type": "Aspect[]"
311
+ },
312
+ "isOptional": true,
313
+ "defaultValue": "[LoggerAspect]"
314
+ },
315
+ {
316
+ "__schema": "FunctionLikeSchema",
317
+ "location": {
318
+ "filePath": "prettier.main.runtime.ts",
319
+ "line": 51,
320
+ "character": 3
321
+ },
322
+ "signature": "(method) PrettierMain.provider([loggerExt]: [LoggerMain, FormatterMain, WorkspaceConfigFilesMain]): Promise<PrettierMain>",
323
+ "name": "provider",
324
+ "params": [
325
+ {
326
+ "__schema": "ParameterSchema",
327
+ "location": {
328
+ "filePath": "prettier.main.runtime.ts",
329
+ "line": 51,
330
+ "character": 25
331
+ },
332
+ "name": "[ loggerExt ]",
333
+ "type": {
334
+ "__schema": "TupleTypeSchema",
335
+ "location": {
336
+ "filePath": "prettier.main.runtime.ts",
337
+ "line": 51,
338
+ "character": 38
339
+ },
340
+ "elements": [
341
+ {
342
+ "__schema": "TypeRefSchema",
343
+ "location": {
344
+ "filePath": "prettier.main.runtime.ts",
345
+ "line": 51,
346
+ "character": 39
347
+ },
348
+ "name": "LoggerMain"
349
+ },
350
+ {
351
+ "__schema": "TypeRefSchema",
352
+ "location": {
353
+ "filePath": "prettier.main.runtime.ts",
354
+ "line": 51,
355
+ "character": 51
356
+ },
357
+ "name": "FormatterMain"
358
+ },
359
+ {
360
+ "__schema": "TypeRefSchema",
361
+ "location": {
362
+ "filePath": "prettier.main.runtime.ts",
363
+ "line": 51,
364
+ "character": 66
365
+ },
366
+ "name": "WorkspaceConfigFilesMain"
367
+ }
368
+ ]
369
+ },
370
+ "isOptional": false,
371
+ "isSpread": false
372
+ }
373
+ ],
374
+ "returnType": {
375
+ "__schema": "TypeRefSchema",
376
+ "location": {
377
+ "filePath": "prettier.main.runtime.ts",
378
+ "line": 51,
379
+ "character": 94
380
+ },
381
+ "name": "Promise",
382
+ "typeArgs": [
383
+ {
384
+ "__schema": "TypeRefSchema",
385
+ "location": {
386
+ "filePath": "prettier.main.runtime.ts",
387
+ "line": 51,
388
+ "character": 102
389
+ },
390
+ "name": "PrettierMain"
391
+ }
392
+ ]
393
+ },
394
+ "modifiers": [
395
+ "static",
396
+ "async"
397
+ ]
398
+ }
399
+ ],
400
+ "extendsNodes": [],
401
+ "implementNodes": []
402
+ }
403
+ },
404
+ {
405
+ "__schema": "ExportSchema",
406
+ "location": {
407
+ "filePath": "index.ts",
408
+ "line": 4,
409
+ "character": 29
410
+ },
411
+ "signature": "type PrettierOptions = {\n config: PrettierModuleOptions;\n}",
412
+ "name": "PrettierOptions",
413
+ "exportNode": {
414
+ "__schema": "TypeSchema",
415
+ "location": {
416
+ "filePath": "prettier.main.runtime.ts",
417
+ "line": 15,
418
+ "character": 1
419
+ },
420
+ "signature": "type PrettierOptions = {\n config: PrettierModuleOptions;\n}",
421
+ "name": "PrettierOptions",
422
+ "type": {
423
+ "__schema": "TypeLiteralSchema",
424
+ "location": {
425
+ "filePath": "prettier.main.runtime.ts",
426
+ "line": 15,
427
+ "character": 31
428
+ },
429
+ "members": [
430
+ {
431
+ "__schema": "VariableLikeSchema",
432
+ "location": {
433
+ "filePath": "prettier.main.runtime.ts",
434
+ "line": 19,
435
+ "character": 3
436
+ },
437
+ "doc": {
438
+ "__schema": "DocSchema",
439
+ "location": {
440
+ "filePath": "prettier.main.runtime.ts",
441
+ "line": 16,
442
+ "character": 3
443
+ },
444
+ "raw": "/**\n * formatter config for prettier.\n */",
445
+ "comment": "formatter config for prettier.",
446
+ "tags": []
447
+ },
448
+ "signature": "(property) config: PrettierModuleOptions",
449
+ "name": "config",
450
+ "type": {
451
+ "__schema": "TypeRefSchema",
452
+ "location": {
453
+ "filePath": "prettier.main.runtime.ts",
454
+ "line": 19,
455
+ "character": 11
456
+ },
457
+ "name": "PrettierModuleOptions"
458
+ },
459
+ "isOptional": false
460
+ }
461
+ ]
462
+ }
463
+ }
464
+ },
465
+ {
466
+ "__schema": "UnImplementedSchema",
467
+ "location": {
468
+ "filePath": "index.ts",
469
+ "line": 5,
470
+ "character": 16
471
+ },
472
+ "name": "PrettierAspect",
473
+ "type": "Identifier"
474
+ }
475
+ ],
476
+ "internals": []
477
+ },
478
+ "internals": [
479
+ {
480
+ "__schema": "ModuleSchema",
481
+ "location": {
482
+ "filePath": "prettier.aspect.ts",
483
+ "line": 1,
484
+ "character": 1
485
+ },
486
+ "exports": [
487
+ {
488
+ "__schema": "VariableLikeSchema",
489
+ "location": {
490
+ "filePath": "prettier.aspect.ts",
491
+ "line": 3,
492
+ "character": 14
493
+ },
494
+ "signature": "const PrettierAspect: Aspect",
495
+ "name": "PrettierAspect",
496
+ "type": {
497
+ "__schema": "TypeRefSchema",
498
+ "location": {
499
+ "filePath": "prettier.aspect.ts",
500
+ "line": 3,
501
+ "character": 14
502
+ },
503
+ "name": "Aspect",
504
+ "componentId": {
505
+ "scope": "teambit.harmony",
506
+ "name": "harmony",
507
+ "version": "0.4.6"
508
+ }
509
+ },
510
+ "isOptional": false,
511
+ "defaultValue": "Aspect.create({\n id: 'teambit.defender/prettier',\n})"
512
+ }
513
+ ],
514
+ "internals": []
515
+ },
516
+ {
517
+ "__schema": "ModuleSchema",
518
+ "location": {
519
+ "filePath": "prettier.main.runtime.ts",
520
+ "line": 1,
521
+ "character": 1
522
+ },
523
+ "exports": [
524
+ {
525
+ "__schema": "TypeSchema",
526
+ "location": {
527
+ "filePath": "prettier.main.runtime.ts",
528
+ "line": 15,
529
+ "character": 1
530
+ },
531
+ "signature": "type PrettierOptions = {\n config: PrettierModuleOptions;\n}",
532
+ "name": "PrettierOptions",
533
+ "type": {
534
+ "__schema": "TypeLiteralSchema",
535
+ "location": {
536
+ "filePath": "prettier.main.runtime.ts",
537
+ "line": 15,
538
+ "character": 31
539
+ },
540
+ "members": [
541
+ {
542
+ "__schema": "VariableLikeSchema",
543
+ "location": {
544
+ "filePath": "prettier.main.runtime.ts",
545
+ "line": 19,
546
+ "character": 3
547
+ },
548
+ "doc": {
549
+ "__schema": "DocSchema",
550
+ "location": {
551
+ "filePath": "prettier.main.runtime.ts",
552
+ "line": 16,
553
+ "character": 3
554
+ },
555
+ "raw": "/**\n * formatter config for prettier.\n */",
556
+ "comment": "formatter config for prettier.",
557
+ "tags": []
558
+ },
559
+ "signature": "(property) config: PrettierModuleOptions",
560
+ "name": "config",
561
+ "type": {
562
+ "__schema": "TypeRefSchema",
563
+ "location": {
564
+ "filePath": "prettier.main.runtime.ts",
565
+ "line": 19,
566
+ "character": 11
567
+ },
568
+ "name": "PrettierModuleOptions"
569
+ },
570
+ "isOptional": false
571
+ }
572
+ ]
573
+ }
574
+ },
575
+ {
576
+ "__schema": "ClassSchema",
577
+ "location": {
578
+ "filePath": "prettier.main.runtime.ts",
579
+ "line": 24,
580
+ "character": 1
581
+ },
582
+ "signature": "class PrettierMain",
583
+ "name": "PrettierMain",
584
+ "members": [
585
+ {
586
+ "__schema": "ConstructorSchema",
587
+ "location": {
588
+ "filePath": "prettier.main.runtime.ts",
589
+ "line": 25,
590
+ "character": 3
591
+ },
592
+ "signature": "constructor PrettierMain(logger: Logger): PrettierMain",
593
+ "name": "constructor",
594
+ "params": [
595
+ {
596
+ "__schema": "ParameterSchema",
597
+ "location": {
598
+ "filePath": "prettier.main.runtime.ts",
599
+ "line": 25,
600
+ "character": 15
601
+ },
602
+ "name": "logger",
603
+ "type": {
604
+ "__schema": "TypeRefSchema",
605
+ "location": {
606
+ "filePath": "prettier.main.runtime.ts",
607
+ "line": 25,
608
+ "character": 31
609
+ },
610
+ "name": "Logger"
611
+ },
612
+ "isOptional": false,
613
+ "isSpread": false
614
+ }
615
+ ],
616
+ "returnType": {
617
+ "__schema": "ThisTypeSchema",
618
+ "location": {
619
+ "filePath": "prettier.main.runtime.ts",
620
+ "line": 24,
621
+ "character": 1
622
+ },
623
+ "name": "PrettierMain"
624
+ },
625
+ "modifiers": []
626
+ },
627
+ {
628
+ "__schema": "FunctionLikeSchema",
629
+ "location": {
630
+ "filePath": "prettier.main.runtime.ts",
631
+ "line": 32,
632
+ "character": 3
633
+ },
634
+ "doc": {
635
+ "__schema": "DocSchema",
636
+ "location": {
637
+ "filePath": "prettier.main.runtime.ts",
638
+ "line": 26,
639
+ "character": 3
640
+ },
641
+ "raw": "/**\n * @deprecated use prettier formatter from https://bit.cloud/teambit/defender/prettier-formatter\n * create a prettier formatter instance.\n * @param options prettier options.\n * @param PrettierModule reference to an `prettier` module.\n */",
642
+ "comment": "",
643
+ "tags": [
644
+ {
645
+ "__schema": "TagSchema",
646
+ "location": {
647
+ "filePath": "prettier.main.runtime.ts",
648
+ "line": 27,
649
+ "character": 6
650
+ },
651
+ "tagName": "deprecated",
652
+ "comment": "use prettier formatter from https://bit.cloud/teambit/defender/prettier-formatter\ncreate a prettier formatter instance."
653
+ },
654
+ {
655
+ "__schema": "PropertyLikeTagSchema",
656
+ "location": {
657
+ "filePath": "prettier.main.runtime.ts",
658
+ "line": 29,
659
+ "character": 6
660
+ },
661
+ "name": "options",
662
+ "tagName": "parameter",
663
+ "comment": "prettier options."
664
+ },
665
+ {
666
+ "__schema": "PropertyLikeTagSchema",
667
+ "location": {
668
+ "filePath": "prettier.main.runtime.ts",
669
+ "line": 30,
670
+ "character": 6
671
+ },
672
+ "name": "PrettierModule",
673
+ "tagName": "parameter",
674
+ "comment": "reference to an `prettier` module."
675
+ }
676
+ ]
677
+ },
678
+ "signature": "(method) PrettierMain.createFormatter(formatterOptions: FormatterOptions | undefined, options: PrettierOptions, transformers?: PrettierConfigTransformer[], PrettierModule?: any): Formatter",
679
+ "name": "createFormatter",
680
+ "params": [
681
+ {
682
+ "__schema": "ParameterSchema",
683
+ "location": {
684
+ "filePath": "prettier.main.runtime.ts",
685
+ "line": 33,
686
+ "character": 5
687
+ },
688
+ "name": "formatterOptions",
689
+ "type": {
690
+ "__schema": "TypeRefSchema",
691
+ "location": {
692
+ "filePath": "prettier.main.runtime.ts",
693
+ "line": 33,
694
+ "character": 23
695
+ },
696
+ "name": "FormatterOptions"
697
+ },
698
+ "isOptional": true,
699
+ "defaultValue": "{}",
700
+ "isSpread": false
701
+ },
702
+ {
703
+ "__schema": "ParameterSchema",
704
+ "location": {
705
+ "filePath": "prettier.main.runtime.ts",
706
+ "line": 34,
707
+ "character": 5
708
+ },
709
+ "name": "options",
710
+ "type": {
711
+ "__schema": "TypeRefSchema",
712
+ "location": {
713
+ "filePath": "prettier.main.runtime.ts",
714
+ "line": 34,
715
+ "character": 14
716
+ },
717
+ "name": "PrettierOptions"
718
+ },
719
+ "isOptional": false,
720
+ "isSpread": false
721
+ },
722
+ {
723
+ "__schema": "ParameterSchema",
724
+ "location": {
725
+ "filePath": "prettier.main.runtime.ts",
726
+ "line": 35,
727
+ "character": 5
728
+ },
729
+ "name": "transformers",
730
+ "type": {
731
+ "__schema": "TypeArraySchema",
732
+ "location": {
733
+ "filePath": "prettier.main.runtime.ts",
734
+ "line": 35,
735
+ "character": 19
736
+ },
737
+ "type": {
738
+ "__schema": "TypeRefSchema",
739
+ "location": {
740
+ "filePath": "prettier.main.runtime.ts",
741
+ "line": 35,
742
+ "character": 19
743
+ },
744
+ "name": "PrettierConfigTransformer"
745
+ }
746
+ },
747
+ "isOptional": true,
748
+ "defaultValue": "[]",
749
+ "isSpread": false
750
+ },
751
+ {
752
+ "__schema": "ParameterSchema",
753
+ "location": {
754
+ "filePath": "prettier.main.runtime.ts",
755
+ "line": 36,
756
+ "character": 5
757
+ },
758
+ "name": "PrettierModule",
759
+ "type": {
760
+ "__schema": "KeywordTypeSchema",
761
+ "location": {
762
+ "filePath": "prettier.main.runtime.ts",
763
+ "line": 36,
764
+ "character": 22
765
+ },
766
+ "name": "any"
767
+ },
768
+ "isOptional": true,
769
+ "isSpread": false
770
+ }
771
+ ],
772
+ "returnType": {
773
+ "__schema": "TypeRefSchema",
774
+ "location": {
775
+ "filePath": "prettier.main.runtime.ts",
776
+ "line": 32,
777
+ "character": 3
778
+ },
779
+ "name": "Formatter",
780
+ "componentId": {
781
+ "scope": "teambit.defender",
782
+ "name": "formatter"
783
+ }
784
+ },
785
+ "modifiers": []
786
+ },
787
+ {
788
+ "__schema": "VariableLikeSchema",
789
+ "location": {
790
+ "filePath": "prettier.main.runtime.ts",
791
+ "line": 47,
792
+ "character": 3
793
+ },
794
+ "signature": "(property) PrettierMain.runtime: RuntimeDefinition",
795
+ "name": "runtime",
796
+ "type": {
797
+ "__schema": "InferenceTypeSchema",
798
+ "location": {
799
+ "filePath": "prettier.main.runtime.ts",
800
+ "line": 47,
801
+ "character": 3
802
+ },
803
+ "type": "RuntimeDefinition"
804
+ },
805
+ "isOptional": true,
806
+ "defaultValue": "MainRuntime"
807
+ },
808
+ {
809
+ "__schema": "VariableLikeSchema",
810
+ "location": {
811
+ "filePath": "prettier.main.runtime.ts",
812
+ "line": 49,
813
+ "character": 3
814
+ },
815
+ "signature": "(property) PrettierMain.dependencies: Aspect[]",
816
+ "name": "dependencies",
817
+ "type": {
818
+ "__schema": "InferenceTypeSchema",
819
+ "location": {
820
+ "filePath": "prettier.main.runtime.ts",
821
+ "line": 49,
822
+ "character": 3
823
+ },
824
+ "type": "Aspect[]"
825
+ },
826
+ "isOptional": true,
827
+ "defaultValue": "[LoggerAspect]"
828
+ },
829
+ {
830
+ "__schema": "FunctionLikeSchema",
831
+ "location": {
832
+ "filePath": "prettier.main.runtime.ts",
833
+ "line": 51,
834
+ "character": 3
835
+ },
836
+ "signature": "(method) PrettierMain.provider([loggerExt]: [LoggerMain, FormatterMain, WorkspaceConfigFilesMain]): Promise<PrettierMain>",
837
+ "name": "provider",
838
+ "params": [
839
+ {
840
+ "__schema": "ParameterSchema",
841
+ "location": {
842
+ "filePath": "prettier.main.runtime.ts",
843
+ "line": 51,
844
+ "character": 25
845
+ },
846
+ "name": "[ loggerExt ]",
847
+ "type": {
848
+ "__schema": "TupleTypeSchema",
849
+ "location": {
850
+ "filePath": "prettier.main.runtime.ts",
851
+ "line": 51,
852
+ "character": 38
853
+ },
854
+ "elements": [
855
+ {
856
+ "__schema": "TypeRefSchema",
857
+ "location": {
858
+ "filePath": "prettier.main.runtime.ts",
859
+ "line": 51,
860
+ "character": 39
861
+ },
862
+ "name": "LoggerMain"
863
+ },
864
+ {
865
+ "__schema": "TypeRefSchema",
866
+ "location": {
867
+ "filePath": "prettier.main.runtime.ts",
868
+ "line": 51,
869
+ "character": 51
870
+ },
871
+ "name": "FormatterMain"
872
+ },
873
+ {
874
+ "__schema": "TypeRefSchema",
875
+ "location": {
876
+ "filePath": "prettier.main.runtime.ts",
877
+ "line": 51,
878
+ "character": 66
879
+ },
880
+ "name": "WorkspaceConfigFilesMain"
881
+ }
882
+ ]
883
+ },
884
+ "isOptional": false,
885
+ "isSpread": false
886
+ }
887
+ ],
888
+ "returnType": {
889
+ "__schema": "TypeRefSchema",
890
+ "location": {
891
+ "filePath": "prettier.main.runtime.ts",
892
+ "line": 51,
893
+ "character": 94
894
+ },
895
+ "name": "Promise",
896
+ "typeArgs": [
897
+ {
898
+ "__schema": "TypeRefSchema",
899
+ "location": {
900
+ "filePath": "prettier.main.runtime.ts",
901
+ "line": 51,
902
+ "character": 102
903
+ },
904
+ "name": "PrettierMain"
905
+ }
906
+ ]
907
+ },
908
+ "modifiers": [
909
+ "static",
910
+ "async"
911
+ ]
912
+ }
913
+ ],
914
+ "extendsNodes": [],
915
+ "implementNodes": []
916
+ },
917
+ {
918
+ "__schema": "FunctionLikeSchema",
919
+ "location": {
920
+ "filePath": "prettier.main.runtime.ts",
921
+ "line": 59,
922
+ "character": 1
923
+ },
924
+ "signature": "function runTransformersWithContext(config: PrettierConfigMutator, transformers: PrettierConfigTransformer[] | undefined, context: PrettierConfigTransformContext): PrettierConfigMutator",
925
+ "name": "runTransformersWithContext",
926
+ "params": [
927
+ {
928
+ "__schema": "ParameterSchema",
929
+ "location": {
930
+ "filePath": "prettier.main.runtime.ts",
931
+ "line": 60,
932
+ "character": 3
933
+ },
934
+ "name": "config",
935
+ "type": {
936
+ "__schema": "TypeRefSchema",
937
+ "location": {
938
+ "filePath": "prettier.main.runtime.ts",
939
+ "line": 60,
940
+ "character": 11
941
+ },
942
+ "name": "PrettierConfigMutator"
943
+ },
944
+ "isOptional": false,
945
+ "isSpread": false
946
+ },
947
+ {
948
+ "__schema": "ParameterSchema",
949
+ "location": {
950
+ "filePath": "prettier.main.runtime.ts",
951
+ "line": 61,
952
+ "character": 3
953
+ },
954
+ "name": "transformers",
955
+ "type": {
956
+ "__schema": "TypeArraySchema",
957
+ "location": {
958
+ "filePath": "prettier.main.runtime.ts",
959
+ "line": 61,
960
+ "character": 17
961
+ },
962
+ "type": {
963
+ "__schema": "TypeRefSchema",
964
+ "location": {
965
+ "filePath": "prettier.main.runtime.ts",
966
+ "line": 61,
967
+ "character": 17
968
+ },
969
+ "name": "PrettierConfigTransformer"
970
+ }
971
+ },
972
+ "isOptional": true,
973
+ "defaultValue": "[]",
974
+ "isSpread": false
975
+ },
976
+ {
977
+ "__schema": "ParameterSchema",
978
+ "location": {
979
+ "filePath": "prettier.main.runtime.ts",
980
+ "line": 62,
981
+ "character": 3
982
+ },
983
+ "name": "context",
984
+ "type": {
985
+ "__schema": "TypeRefSchema",
986
+ "location": {
987
+ "filePath": "prettier.main.runtime.ts",
988
+ "line": 62,
989
+ "character": 12
990
+ },
991
+ "name": "PrettierConfigTransformContext"
992
+ },
993
+ "isOptional": false,
994
+ "isSpread": false
995
+ }
996
+ ],
997
+ "returnType": {
998
+ "__schema": "TypeRefSchema",
999
+ "location": {
1000
+ "filePath": "prettier.main.runtime.ts",
1001
+ "line": 59,
1002
+ "character": 1
1003
+ },
1004
+ "name": "PrettierConfigMutator",
1005
+ "componentId": {
1006
+ "scope": "teambit.defender",
1007
+ "name": "prettier/config-mutator",
1008
+ "version": "0.0.103"
1009
+ }
1010
+ },
1011
+ "modifiers": [
1012
+ "export"
1013
+ ]
1014
+ }
1015
+ ],
1016
+ "internals": [
1017
+ {
1018
+ "__schema": "UnImplementedSchema",
1019
+ "location": {
1020
+ "filePath": "prettier.main.runtime.ts",
1021
+ "line": 57,
1022
+ "character": 1
1023
+ },
1024
+ "name": "PrettierAspect.addRuntime(PrettierMain);",
1025
+ "type": "ExpressionStatement"
1026
+ }
1027
+ ]
1028
+ }
1029
+ ],
1030
+ "componentId": {
1031
+ "scope": "teambit.defender",
1032
+ "name": "prettier",
1033
+ "version": "1.0.513"
1034
+ },
1035
+ "taggedModuleExports": []
1036
+ }
@@ -1,4 +1,4 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_prettier@1.0.512/dist/prettier.composition.js';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.defender_prettier@1.0.513/dist/prettier.composition.js';
2
2
  ;
3
3
 
4
4
  export const compositions = [compositions_0];
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@teambit/prettier",
3
- "version": "1.0.512",
3
+ "version": "1.0.513",
4
4
  "homepage": "https://bit.cloud/teambit/defender/prettier",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.defender",
8
8
  "name": "prettier",
9
- "version": "1.0.512"
9
+ "version": "1.0.513"
10
10
  },
11
11
  "dependencies": {
12
12
  "p-map-series": "2.1.0",
13
13
  "prettier": "3.3.3",
14
14
  "@teambit/harmony": "0.4.6",
15
15
  "@teambit/component.sources": "0.0.71",
16
- "@teambit/envs": "1.0.512",
17
- "@teambit/formatter": "1.0.512",
18
- "@teambit/logger": "0.0.1182",
19
- "@teambit/cli": "0.0.1089",
16
+ "@teambit/envs": "1.0.513",
17
+ "@teambit/formatter": "1.0.513",
18
+ "@teambit/logger": "0.0.1183",
19
+ "@teambit/cli": "0.0.1090",
20
20
  "@teambit/defender.prettier.config-mutator": "0.0.103",
21
21
  "@teambit/legacy.constants": "0.0.5",
22
- "@teambit/workspace-config-files": "1.0.512"
22
+ "@teambit/workspace-config-files": "1.0.513"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/prettier": "2.7.3",