@forge/lint 0.0.0-experimental-9489df9 → 0.0.0-experimental-c8e9749

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.
package/CHANGELOG.md CHANGED
@@ -1,16 +1,559 @@
1
1
  # @forge/lint
2
2
 
3
- ## 0.0.0-experimental-9489df9
3
+ ## 0.0.0-experimental-c8e9749
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [acf78b5]
8
- - Updated dependencies [0da5775]
7
+ - Updated dependencies [aa19308]
8
+ - @forge/egress@0.0.0-experimental-c8e9749
9
+
10
+ ## 3.2.14-next.0
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [aa193085]
15
+ - @forge/egress@1.1.2-next.0
16
+
17
+ ## 3.2.13
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [30a32d0]
22
+ - Updated dependencies [8ac7fd3]
23
+ - Updated dependencies [734a5de]
24
+ - Updated dependencies [40b251c]
25
+ - Updated dependencies [2c490ad]
26
+ - Updated dependencies [4471be8]
27
+ - Updated dependencies [e975f19]
28
+ - Updated dependencies [38e4ae4]
29
+ - @forge/manifest@4.6.0
30
+ - @forge/cli-shared@3.5.1
31
+
32
+ ## 3.2.13-next.7
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [2c490ad]
37
+ - @forge/manifest@4.6.0-next.5
38
+ - @forge/cli-shared@3.5.1-next.7
39
+
40
+ ## 3.2.13-next.6
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [e975f19]
45
+ - @forge/manifest@4.6.0-next.4
46
+ - @forge/cli-shared@3.5.1-next.6
47
+
48
+ ## 3.2.13-next.5
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies [30a32d0]
53
+ - @forge/manifest@4.6.0-next.3
54
+ - @forge/cli-shared@3.5.1-next.5
55
+
56
+ ## 3.2.13-next.4
57
+
58
+ ### Patch Changes
59
+
60
+ - Updated dependencies [38e4ae44]
61
+ - @forge/cli-shared@3.5.1-next.4
62
+
63
+ ## 3.2.13-next.3
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies [4471be8]
68
+ - @forge/manifest@4.6.0-next.2
69
+ - @forge/cli-shared@3.5.1-next.3
70
+
71
+ ## 3.2.13-next.2
72
+
73
+ ### Patch Changes
74
+
75
+ - Updated dependencies [8ac7fd3c]
76
+ - @forge/cli-shared@3.5.1-next.2
77
+
78
+ ## 3.2.13-next.1
79
+
80
+ ### Patch Changes
81
+
82
+ - Updated dependencies [734a5dec]
83
+ - @forge/manifest@4.6.0-next.1
84
+ - @forge/cli-shared@3.5.1-next.1
85
+
86
+ ## 3.2.13-next.0
87
+
88
+ ### Patch Changes
89
+
90
+ - Updated dependencies [40b251cf]
91
+ - @forge/manifest@4.5.4-next.0
92
+ - @forge/cli-shared@3.5.1-next.0
93
+
94
+ ## 3.2.12
95
+
96
+ ### Patch Changes
97
+
98
+ - Updated dependencies [bae4bce]
99
+ - Updated dependencies [b7428f7]
100
+ - Updated dependencies [a36488f]
101
+ - Updated dependencies [6cda566]
102
+ - Updated dependencies [8d0dc10]
103
+ - Updated dependencies [bbca9be]
104
+ - Updated dependencies [fed846f]
105
+ - Updated dependencies [4ac7253]
106
+ - Updated dependencies [8f01fae]
107
+ - @forge/cli-shared@3.5.0
108
+ - @forge/manifest@4.5.3
109
+
110
+ ## 3.2.12-next.5
111
+
112
+ ### Patch Changes
113
+
114
+ - Updated dependencies [b7428f75]
115
+ - Updated dependencies [a36488fc]
116
+ - Updated dependencies [8d0dc104]
117
+ - Updated dependencies [bbca9bed]
118
+ - @forge/cli-shared@3.5.0-next.5
119
+
120
+ ## 3.2.12-next.4
121
+
122
+ ### Patch Changes
123
+
124
+ - Updated dependencies [8f01fae]
125
+ - @forge/manifest@4.5.3-next.1
126
+ - @forge/cli-shared@3.4.1-next.4
127
+
128
+ ## 3.2.12-next.3
129
+
130
+ ### Patch Changes
131
+
132
+ - Updated dependencies [bae4bce4]
133
+ - @forge/cli-shared@3.4.1-next.3
134
+
135
+ ## 3.2.12-next.2
136
+
137
+ ### Patch Changes
138
+
139
+ - Updated dependencies [6cda566]
140
+ - @forge/cli-shared@3.4.1-next.2
141
+
142
+ ## 3.2.12-next.1
143
+
144
+ ### Patch Changes
145
+
146
+ - Updated dependencies [fed846f]
147
+ - @forge/cli-shared@3.4.1-next.1
148
+
149
+ ## 3.2.12-next.0
150
+
151
+ ### Patch Changes
152
+
153
+ - Updated dependencies [4ac7253]
154
+ - @forge/manifest@4.5.3-next.0
155
+ - @forge/cli-shared@3.4.1-next.0
156
+
157
+ ## 3.2.11
158
+
159
+ ### Patch Changes
160
+
161
+ - Updated dependencies [269a493]
162
+ - Updated dependencies [cfded19]
163
+ - Updated dependencies [814c1f1]
164
+ - Updated dependencies [e37918e]
165
+ - Updated dependencies [ac570166]
166
+ - @forge/manifest@4.5.2
167
+ - @forge/cli-shared@3.4.0
168
+
169
+ ## 3.2.11-next.4
170
+
171
+ ### Patch Changes
172
+
173
+ - Updated dependencies [cfded19]
174
+ - @forge/cli-shared@3.4.0-next.4
175
+
176
+ ## 3.2.11-next.3
177
+
178
+ ### Patch Changes
179
+
180
+ - Updated dependencies [814c1f16]
181
+ - @forge/cli-shared@3.4.0-next.3
182
+
183
+ ## 3.2.11-next.2
184
+
185
+ ### Patch Changes
186
+
187
+ - Updated dependencies [269a493a]
188
+ - @forge/manifest@4.5.2-next.0
189
+ - @forge/cli-shared@3.4.0-next.2
190
+
191
+ ## 3.2.11-next.1
192
+
193
+ ### Patch Changes
194
+
195
+ - Updated dependencies [e37918e4]
196
+ - @forge/cli-shared@3.4.0-next.1
197
+
198
+ ## 3.2.11-next.0
199
+
200
+ ### Patch Changes
201
+
202
+ - Updated dependencies [ac570166]
203
+ - @forge/cli-shared@3.4.0-next.0
204
+
205
+ ## 3.2.10
206
+
207
+ ### Patch Changes
208
+
209
+ - Updated dependencies [c6e4bec]
210
+ - Updated dependencies [b469c80]
211
+ - @forge/cli-shared@3.3.0
212
+ - @forge/manifest@4.5.1
213
+
214
+ ## 3.2.10-next.1
215
+
216
+ ### Patch Changes
217
+
218
+ - Updated dependencies [b469c802]
219
+ - @forge/manifest@4.5.1-next.0
220
+ - @forge/cli-shared@3.3.0-next.1
221
+
222
+ ## 3.2.10-next.0
223
+
224
+ ### Patch Changes
225
+
226
+ - Updated dependencies [c6e4bec0]
227
+ - @forge/cli-shared@3.3.0-next.0
228
+
229
+ ## 3.2.9
230
+
231
+ ### Patch Changes
232
+
233
+ - 8e2a5a6: Update node-fetch version
234
+ - Updated dependencies [be216ec]
235
+ - Updated dependencies [34d81d4]
236
+ - Updated dependencies [72f098e]
237
+ - Updated dependencies [8e2a5a6]
238
+ - @forge/manifest@4.5.0
239
+ - @forge/cli-shared@3.2.3
240
+
241
+ ## 3.2.9-next.3
242
+
243
+ ### Patch Changes
244
+
245
+ - Updated dependencies [72f098e]
246
+ - @forge/manifest@4.5.0-next.3
247
+ - @forge/cli-shared@3.2.3-next.3
248
+
249
+ ## 3.2.9-next.2
250
+
251
+ ### Patch Changes
252
+
253
+ - Updated dependencies [be216ec6]
254
+ - @forge/manifest@4.5.0-next.2
255
+ - @forge/cli-shared@3.2.3-next.2
256
+
257
+ ## 3.2.9-next.1
258
+
259
+ ### Patch Changes
260
+
261
+ - 8e2a5a6: Update node-fetch version
262
+ - Updated dependencies [8e2a5a6]
263
+ - @forge/cli-shared@3.2.3-next.1
264
+ - @forge/manifest@4.4.2-next.1
265
+
266
+ ## 3.2.9-next.0
267
+
268
+ ### Patch Changes
269
+
270
+ - Updated dependencies [34d81d4e]
271
+ - @forge/manifest@4.4.2-next.0
272
+ - @forge/cli-shared@3.2.3-next.0
273
+
274
+ ## 3.2.8
275
+
276
+ ### Patch Changes
277
+
278
+ - 652e9f2: Bump Typescript and ESlint to latest
279
+ - Updated dependencies [138bb0a]
280
+ - Updated dependencies [652e9f2]
281
+ - @forge/manifest@4.4.1
282
+ - @forge/cli-shared@3.2.2
283
+
284
+ ## 3.2.8-next.1
285
+
286
+ ### Patch Changes
287
+
288
+ - 652e9f23: Bump Typescript and ESlint to latest
289
+ - Updated dependencies [652e9f23]
290
+ - @forge/cli-shared@3.2.2-next.1
291
+
292
+ ## 3.2.8-next.0
293
+
294
+ ### Patch Changes
295
+
296
+ - Updated dependencies [138bb0a]
297
+ - @forge/manifest@4.4.1-next.0
298
+ - @forge/cli-shared@3.2.2-next.0
299
+
300
+ ## 3.2.7
301
+
302
+ ### Patch Changes
303
+
304
+ - Updated dependencies [567bf35]
305
+ - @forge/cli-shared@3.2.1
306
+
307
+ ## 3.2.7-next.0
308
+
309
+ ### Patch Changes
310
+
311
+ - Updated dependencies [567bf35]
312
+ - @forge/cli-shared@3.2.1-next.0
313
+
314
+ ## 3.2.6
315
+
316
+ ### Patch Changes
317
+
318
+ - Updated dependencies [b372c40]
319
+ - Updated dependencies [7a27bcd]
320
+ - Updated dependencies [dfc74ba]
321
+ - Updated dependencies [94c798f]
322
+ - Updated dependencies [f93ae31]
323
+ - Updated dependencies [a1c8607]
324
+ - Updated dependencies [05b306b]
325
+ - Updated dependencies [d6ec15d]
326
+ - @forge/cli-shared@3.2.0
327
+ - @forge/manifest@4.4.0
328
+
329
+ ## 3.2.6-next.7
330
+
331
+ ### Patch Changes
332
+
333
+ - Updated dependencies [05b306b]
334
+ - @forge/manifest@4.4.0-next.3
335
+ - @forge/cli-shared@3.2.0-next.7
336
+
337
+ ## 3.2.6-next.6
338
+
339
+ ### Patch Changes
340
+
341
+ - Updated dependencies [dfc74ba]
342
+ - @forge/manifest@4.4.0-next.2
343
+ - @forge/cli-shared@3.2.0-next.6
344
+
345
+ ## 3.2.6-next.5
346
+
347
+ ### Patch Changes
348
+
349
+ - Updated dependencies [b372c40]
350
+ - @forge/cli-shared@3.2.0-next.5
351
+
352
+ ## 3.2.6-next.4
353
+
354
+ ### Patch Changes
355
+
356
+ - Updated dependencies [f93ae31]
357
+ - @forge/manifest@4.3.1-next.1
358
+ - @forge/cli-shared@3.2.0-next.4
359
+
360
+ ## 3.2.6-next.3
361
+
362
+ ### Patch Changes
363
+
364
+ - Updated dependencies [a1c8607]
365
+ - @forge/cli-shared@3.2.0-next.3
366
+
367
+ ## 3.2.6-next.2
368
+
369
+ ### Patch Changes
370
+
371
+ - Updated dependencies [94c798f]
372
+ - @forge/cli-shared@3.2.0-next.2
373
+
374
+ ## 3.2.6-next.1
375
+
376
+ ### Patch Changes
377
+
378
+ - Updated dependencies [d6ec15d]
379
+ - @forge/manifest@4.3.1-next.0
380
+ - @forge/cli-shared@3.2.0-next.1
381
+
382
+ ## 3.2.6-next.0
383
+
384
+ ### Patch Changes
385
+
386
+ - Updated dependencies [7a27bcd]
387
+ - @forge/cli-shared@3.2.0-next.0
388
+
389
+ ## 3.2.5
390
+
391
+ ### Patch Changes
392
+
393
+ - Updated dependencies [0871a3b]
394
+ - Updated dependencies [1c51c99]
395
+ - Updated dependencies [63d168c]
396
+ - Updated dependencies [f8d567a]
397
+ - Updated dependencies [47a47a4]
398
+ - Updated dependencies [aa3a70e]
399
+ - @forge/manifest@4.3.0
400
+ - @forge/egress@1.1.1
401
+ - @forge/cli-shared@3.1.1
402
+
403
+ ## 3.2.5-next.4
404
+
405
+ ### Patch Changes
406
+
407
+ - Updated dependencies [63d168c]
408
+ - Updated dependencies [aa3a70e]
409
+ - @forge/egress@1.1.1-next.0
410
+ - @forge/manifest@4.3.0-next.4
411
+ - @forge/cli-shared@3.1.1-next.4
412
+
413
+ ## 3.2.5-next.3
414
+
415
+ ### Patch Changes
416
+
417
+ - Updated dependencies [47a47a4]
418
+ - @forge/manifest@4.3.0-next.3
419
+ - @forge/cli-shared@3.1.1-next.3
420
+
421
+ ## 3.2.5-next.2
422
+
423
+ ### Patch Changes
424
+
425
+ - Updated dependencies [0871a3b]
426
+ - @forge/manifest@4.3.0-next.2
427
+ - @forge/cli-shared@3.1.1-next.2
428
+
429
+ ## 3.2.5-next.1
430
+
431
+ ### Patch Changes
432
+
433
+ - Updated dependencies [f8d567a3]
434
+ - @forge/manifest@4.2.1-next.1
435
+ - @forge/cli-shared@3.1.1-next.1
436
+
437
+ ## 3.2.5-next.0
438
+
439
+ ### Patch Changes
440
+
441
+ - Updated dependencies [1c51c99]
442
+ - @forge/manifest@4.2.1-next.0
443
+ - @forge/cli-shared@3.1.1-next.0
444
+
445
+ ## 3.2.4
446
+
447
+ ### Patch Changes
448
+
449
+ - 3c0ac54: Move egress related services out of @forge/csp into new @forge/egress package
450
+ - Updated dependencies [3c0ac54]
451
+ - Updated dependencies [174deac]
452
+ - Updated dependencies [89ae99e]
453
+ - Updated dependencies [237e3c7]
454
+ - Updated dependencies [151c4d8]
455
+ - @forge/egress@1.1.0
456
+ - @forge/cli-shared@3.1.0
457
+ - @forge/manifest@4.2.0
458
+
459
+ ## 3.2.4-next.4
460
+
461
+ ### Patch Changes
462
+
463
+ - Updated dependencies [174deac]
464
+ - @forge/egress@1.1.0-next.1
465
+
466
+ ## 3.2.4-next.3
467
+
468
+ ### Patch Changes
469
+
470
+ - Updated dependencies [237e3c72]
471
+ - @forge/manifest@4.2.0-next.1
472
+ - @forge/cli-shared@3.1.0-next.2
473
+
474
+ ## 3.2.4-next.2
475
+
476
+ ### Patch Changes
477
+
478
+ - 3c0ac54: Move egress related services out of @forge/csp into new @forge/egress package
479
+ - Updated dependencies [3c0ac54]
480
+ - @forge/egress@1.0.1-next.0
481
+
482
+ ## 3.2.4-next.1
483
+
484
+ ### Patch Changes
485
+
486
+ - Updated dependencies [151c4d8]
487
+ - @forge/manifest@4.2.0-next.0
488
+ - @forge/cli-shared@3.1.0-next.1
489
+
490
+ ## 3.2.4-next.0
491
+
492
+ ### Patch Changes
493
+
494
+ - Updated dependencies [89ae99e0]
495
+ - @forge/cli-shared@3.1.0-next.0
496
+
497
+ ## 3.2.3
498
+
499
+ ### Patch Changes
500
+
501
+ - Updated dependencies [5424f97]
502
+ - Updated dependencies [35172f2]
503
+ - Updated dependencies [edab85a]
504
+ - Updated dependencies [c9f0e83]
505
+ - Updated dependencies [5972825c]
506
+ - @forge/cli-shared@3.0.0
507
+ - @forge/manifest@4.1.0
508
+
509
+ ## 3.2.3-next.3
510
+
511
+ ### Patch Changes
512
+
513
+ - Updated dependencies [5424f97]
514
+ - @forge/cli-shared@3.0.0-next.3
515
+
516
+ ## 3.2.3-next.2
517
+
518
+ ### Patch Changes
519
+
520
+ - Updated dependencies [35172f2]
521
+ - @forge/cli-shared@3.0.0-next.2
522
+
523
+ ## 3.2.3-next.1
524
+
525
+ ### Patch Changes
526
+
527
+ - Updated dependencies [c9f0e83]
528
+ - @forge/manifest@4.1.0-next.0
529
+ - @forge/cli-shared@3.0.0-next.1
530
+
531
+ ## 3.2.3-next.0
532
+
533
+ ### Patch Changes
534
+
535
+ - Updated dependencies [edab85a5]
536
+ - Updated dependencies [5972825c]
537
+ - @forge/cli-shared@3.0.0-next.0
538
+
539
+ ## 3.2.2
540
+
541
+ ### Patch Changes
542
+
543
+ - Updated dependencies [c0c88f0]
9
544
  - Updated dependencies [6728c67]
10
545
  - Updated dependencies [c1c93a4]
11
546
  - Updated dependencies [b1684fd]
12
- - @forge/manifest@0.0.0-experimental-9489df9
13
- - @forge/cli-shared@0.0.0-experimental-9489df9
547
+ - @forge/manifest@4.0.0
548
+ - @forge/cli-shared@2.6.2
549
+
550
+ ## 3.2.2-next.5
551
+
552
+ ### Patch Changes
553
+
554
+ - Updated dependencies [c0c88f09]
555
+ - @forge/manifest@4.0.0-next.5
556
+ - @forge/cli-shared@2.6.2-next.5
14
557
 
15
558
  ## 3.2.2-next.4
16
559
 
@@ -29,7 +29,7 @@ class BaseLinter extends abstract_linter_1.AbstractLinter {
29
29
  const lintIssues = await Promise.all(Object.entries(lintCriteriaMatches).map(async ([matchCategory, matches]) => {
30
30
  return this.verifiers[matchCategory].process(matches);
31
31
  }));
32
- return cli_shared_1.flat(lintIssues);
32
+ return (0, cli_shared_1.flat)(lintIssues);
33
33
  }
34
34
  async execute({ ast, filepath, fixer }) {
35
35
  const lintResult = new linter_interface_1.LintResult(filepath, fixer);
@@ -1 +1 @@
1
- {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../src/lint/lint.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,MAAM,IAAI,CAAC;AAIpB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAkB,MAAM,oBAAoB,CAAC;AAQxG,qBAAa,iBAAkB,SAAQ,KAAK;CAAG;AAE/C,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,iBAAiB,WAAY,UAAU,eAAe,UAAU,EAAE,4BAAuB,IA+CrG,CAAC;AAEF,eAAO,MAAM,YAAY,gBAAiB,UAAU,EAAE,KAAG,YAQxD,CAAC;AAEF,eAAO,MAAM,eAAe,aAChB,MAAM,UACR,OAAO,QAAQ,oBACN,OAAO,EAAE,CAAC,QAAQ,CAAC,aAAa,KAChD,OAAO,CAAC,SAAS,CAOnB,CAAC;AAEF,eAAO,MAAM,IAAI,gBACF,MAAM,EAAE,YACX,QAAQ,eACL,MAAM,UACX,UAAU,6BAhBR,MAAM,UACR,OAAO,QAAQ,oBACN,OAAO,EAAE,CAAC,QAAQ,CAAC,aAAa,KAChD,OAAO,CAAC,SAAS,CAAC,YAeV,eAAe,EAAE,KAOzB,OAAO,CAAC,UAAU,EAAE,CAmCtB,CAAC;AAEF,eAAO,MAAM,QAAQ,WACX,UAAU,WACV,eAAe,KACtB,OAAO,CAAC,UAAU,EAAE,CAGtB,CAAC"}
1
+ {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../src/lint/lint.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,MAAM,IAAI,CAAC;AAIpB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAkB,MAAM,oBAAoB,CAAC;AAQxG,qBAAa,iBAAkB,SAAQ,KAAK;CAAG;AAE/C,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,iBAAiB,WAAY,UAAU,eAAe,UAAU,EAAE,4BAAuB,IA+CrG,CAAC;AAEF,eAAO,MAAM,YAAY,gBAAiB,UAAU,EAAE,KAAG,YAQxD,CAAC;AAEF,eAAO,MAAM,eAAe,aAChB,MAAM,UACR,eAAe,oBACN,OAAO,GAAG,QAAQ,CAAC,aAAa,KAChD,QAAQ,SAAS,CAOnB,CAAC;AAEF,eAAO,MAAM,IAAI,gBACF,MAAM,EAAE,YACX,QAAQ,eACL,MAAM,UACX,UAAU,6BAhBR,MAAM,UACR,eAAe,oBACN,OAAO,GAAG,QAAQ,CAAC,aAAa,KAChD,QAAQ,SAAS,CAAC,YAeV,eAAe,EAAE,KAOzB,QAAQ,UAAU,EAAE,CAmCtB,CAAC;AAEF,eAAO,MAAM,QAAQ,WACX,UAAU,WACV,eAAe,KACtB,QAAQ,UAAU,EAAE,CAGtB,CAAC"}
package/out/lint/lint.js CHANGED
@@ -16,7 +16,7 @@ const deprecated_csp_permissions_manifest_linter_1 = require("./linters/manifest
16
16
  class FailedLinterError extends Error {
17
17
  }
18
18
  exports.FailedLinterError = FailedLinterError;
19
- exports.reportLintResults = (logger, lintResults, showSummary = true) => {
19
+ const reportLintResults = (logger, lintResults, showSummary = true) => {
20
20
  let numErrors = 0, numWarnings = 0;
21
21
  let noProblemsFound = true;
22
22
  if (lintResults.length) {
@@ -60,13 +60,15 @@ exports.reportLintResults = (logger, lintResults, showSummary = true) => {
60
60
  }
61
61
  }
62
62
  };
63
- exports.problemCount = (lintResults) => {
63
+ exports.reportLintResults = reportLintResults;
64
+ const problemCount = (lintResults) => {
64
65
  return lintResults.reduce((prev, curr) => ({
65
66
  errors: prev.errors + curr.errors.length,
66
67
  warnings: prev.warnings + curr.warnings.length
67
68
  }), { errors: 0, warnings: 0 });
68
69
  };
69
- exports.parseSourceFile = async (filepath, parser, readFilePromise = util_1.promisify(fs_1.default.readFile)) => {
70
+ exports.problemCount = problemCount;
71
+ const parseSourceFile = async (filepath, parser, readFilePromise = (0, util_1.promisify)(fs_1.default.readFile)) => {
70
72
  const code = await readFilePromise(filepath, { encoding: 'utf-8' });
71
73
  const parseResult = await parser(code, filepath);
72
74
  return {
@@ -74,14 +76,15 @@ exports.parseSourceFile = async (filepath, parser, readFilePromise = util_1.prom
74
76
  filepath
75
77
  };
76
78
  };
77
- exports.lint = async (filesToLint, manifest, environment, logger, parseFunction = exports.parseSourceFile, linters = [
79
+ exports.parseSourceFile = parseSourceFile;
80
+ const lint = async (filesToLint, manifest, environment, logger, parseFunction = exports.parseSourceFile, linters = [
78
81
  new permission_linter_1.PermissionLinter(environment, manifest, logger),
79
82
  new permissions_manifest_linter_1.PermissionsManifestLinter(logger),
80
83
  new deprecated_csp_permissions_manifest_linter_1.DeprecatedCspPermissionsManifestLinter(logger),
81
84
  new full_manifest_linter_1.FullManifestLinter(logger),
82
85
  new handler_linter_1.HandlerLinter(environment, manifest, logger)
83
86
  ]) => {
84
- const { include, exclude } = await cli_shared_1.listTSConfigIncludeExclude(new cli_shared_1.FileSystemReader());
87
+ const { include, exclude } = await (0, cli_shared_1.listTSConfigIncludeExclude)(new cli_shared_1.FileSystemReader());
85
88
  const tsInclude = new Set(include);
86
89
  const tsExclude = new Set(exclude);
87
90
  const lintInputs = (await Promise.all(filesToLint.map(async (filepath) => {
@@ -108,7 +111,9 @@ exports.lint = async (filesToLint, manifest, environment, logger, parseFunction
108
111
  return result;
109
112
  });
110
113
  };
111
- exports.litelint = async (logger, linter = new basic_manifest_linter_1.BasicManifestLinter(logger)) => {
114
+ exports.lint = lint;
115
+ const litelint = async (logger, linter = new basic_manifest_linter_1.BasicManifestLinter(logger)) => {
112
116
  await linter.bootstrap();
113
117
  return linter.batchExecute();
114
118
  };
119
+ exports.litelint = litelint;
@@ -14,7 +14,7 @@ class HandlerLinter extends base_linter_1.default {
14
14
  }
15
15
  async bootstrap() {
16
16
  this.nodeVisitors = [new visitors_1.ExportedFunctionNodeVisitor()];
17
- const humanReadableEnvironment = cli_shared_1.environmentToOption(this.environment);
17
+ const humanReadableEnvironment = (0, cli_shared_1.environmentToOption)(this.environment);
18
18
  this.verifiers = {
19
19
  functionHandlers: new handlers_verifier_1.HandlersVerifier(humanReadableEnvironment, this.manifest)
20
20
  };
@@ -9,7 +9,7 @@ interface SwaggerFormat {
9
9
  };
10
10
  }
11
11
  export declare const NON_FWD_SLASH_REGEX = "[^\\/\\s]*";
12
- export declare const findMissingPermissions: (errors: LintResultRule[], warnings: LintResultRule[], permissionsType: 'missingPermission' | 'missingExternalFetchPermission' | 'missingContentStylePermission', state?: LintFixState | undefined) => Set<string>;
12
+ export declare const findMissingPermissions: (errors: LintResultRule[], warnings: LintResultRule[], permissionsType: 'missingPermission' | 'missingExternalFetchPermission' | 'missingContentStylePermission', state?: LintFixState) => Set<string>;
13
13
  export declare const fixMissingPermissions: (errors: LintResultRule[], warnings: LintResultRule[], state: LintFixState) => Promise<LintFixState>;
14
14
  interface PermissionLintCriteriaMatches {
15
15
  [key: string]: ApiCall[];
@@ -1 +1 @@
1
- {"version":3,"file":"permission-linter.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/permission-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AAQ,EAAE,cAAc,EAAE,EAAE,KAAK,EAAE,YAAY,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC,GACtG,SAAS;IAIb,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IAsB3D,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAWtE,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAKrE,OAAO,CAAC,YAAY;CAarB"}
@@ -12,7 +12,7 @@ const fs_1 = tslib_1.__importDefault(require("fs"));
12
12
  exports.NON_FWD_SLASH_REGEX = '[^\\/\\s]*';
13
13
  const CACHE_KEY = 'PERMISSIONS_LINTER';
14
14
  const ONE_HOUR_MS = 1000 * 60 * 60;
15
- exports.findMissingPermissions = (errors, warnings, permissionsType, state) => {
15
+ const findMissingPermissions = (errors, warnings, permissionsType, state) => {
16
16
  const missingPermissions = new Set();
17
17
  errors.forEach(({ metadata }) => {
18
18
  if (metadata && metadata[permissionsType]) {
@@ -30,11 +30,12 @@ exports.findMissingPermissions = (errors, warnings, permissionsType, state) => {
30
30
  });
31
31
  return missingPermissions;
32
32
  };
33
- exports.fixMissingPermissions = async (errors, warnings, state) => {
33
+ exports.findMissingPermissions = findMissingPermissions;
34
+ const fixMissingPermissions = async (errors, warnings, state) => {
34
35
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
35
- const missingScopes = exports.findMissingPermissions(errors, warnings, 'missingPermission', state);
36
- const missingExternalFetchBackend = exports.findMissingPermissions(errors, warnings, 'missingExternalFetchPermission', state);
37
- const missingContentStyle = exports.findMissingPermissions(errors, warnings, 'missingContentStylePermission', state);
36
+ const missingScopes = (0, exports.findMissingPermissions)(errors, warnings, 'missingPermission', state);
37
+ const missingExternalFetchBackend = (0, exports.findMissingPermissions)(errors, warnings, 'missingExternalFetchPermission', state);
38
+ const missingContentStyle = (0, exports.findMissingPermissions)(errors, warnings, 'missingContentStylePermission', state);
38
39
  const currentPermissions = (_b = (_a = (await state.configFile.readConfig())) === null || _a === void 0 ? void 0 : _a.permissions) !== null && _b !== void 0 ? _b : {};
39
40
  const currentRemotes = (_d = (_c = (await state.configFile.readConfig())) === null || _c === void 0 ? void 0 : _c.remotes) !== null && _d !== void 0 ? _d : [];
40
41
  const currentScopes = (_e = currentPermissions === null || currentPermissions === void 0 ? void 0 : currentPermissions.scopes) !== null && _e !== void 0 ? _e : [];
@@ -75,6 +76,7 @@ exports.fixMissingPermissions = async (errors, warnings, state) => {
75
76
  : {})));
76
77
  return state;
77
78
  };
79
+ exports.fixMissingPermissions = fixMissingPermissions;
78
80
  class PermissionLinter extends base_linter_1.default {
79
81
  constructor(environment, manifest, logger) {
80
82
  super(environment, logger);
@@ -114,7 +116,7 @@ class PermissionLinter extends base_linter_1.default {
114
116
  new visitors_1.ExternalApiCallVisitor(),
115
117
  new visitors_1.ContentPropertyVisitor()
116
118
  ];
117
- const humanReadableEnvironment = cli_shared_1.environmentToOption(this.environment);
119
+ const humanReadableEnvironment = (0, cli_shared_1.environmentToOption)(this.environment);
118
120
  this.verifiers = {
119
121
  confluence: new verifiers_1.ProductVerifier(humanReadableEnvironment, this.manifest, this.confluence, 'confluence'),
120
122
  jira: new verifiers_1.ProductVerifier(humanReadableEnvironment, this.manifest, this.jira, 'jira'),
@@ -163,7 +165,7 @@ class PermissionLinter extends base_linter_1.default {
163
165
  var _a, _b;
164
166
  const cached = (_a = this.cache) === null || _a === void 0 ? void 0 : _a.get(cacheKey);
165
167
  if (!cached) {
166
- const response = await node_fetch_1.default(url);
168
+ const response = await (0, node_fetch_1.default)(url);
167
169
  const jsonBody = await response.json();
168
170
  void ((_b = this.cache) === null || _b === void 0 ? void 0 : _b.set(cacheKey, jsonBody, 12 * ONE_HOUR_MS));
169
171
  return jsonBody;
@@ -90,7 +90,7 @@ class ContentPropertyVerifier extends verifier_interface_1.BaseLintIssueVerifier
90
90
  getMissingScopes({ context, method }) {
91
91
  var _a, _b;
92
92
  const existingScopes = (_b = (_a = this.manifest) === null || _a === void 0 ? void 0 : _a.permissions) === null || _b === void 0 ? void 0 : _b.scopes;
93
- return manifest_1.getMissingScopes(existingScopes, exports.CONTENT_PROPERTY_PERMISSIONS_MAP[context][method]);
93
+ return (0, manifest_1.getMissingScopes)(existingScopes, exports.CONTENT_PROPERTY_PERMISSIONS_MAP[context][method]);
94
94
  }
95
95
  }
96
96
  exports.ContentPropertyVerifier = ContentPropertyVerifier;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ExternalFetchVerifier = void 0;
4
- const csp_1 = require("@forge/csp");
4
+ const egress_1 = require("@forge/egress");
5
5
  const linter_interface_1 = require("../../../linter-interface");
6
6
  const verifier_interface_1 = require("../../verifier-interface");
7
7
  const text_1 = require("../../../text");
@@ -24,7 +24,7 @@ class ExternalFetchVerifier extends verifier_interface_1.BaseLintIssueVerifier {
24
24
  const collectedRemotes = allowList
25
25
  .map((item) => { var _a; return typeof item !== 'string' && ((_a = remoteList.find((remoteItem) => remoteItem.key === item.remote)) === null || _a === void 0 ? void 0 : _a.baseUrl); })
26
26
  .filter((x) => typeof x === 'string');
27
- this.egressFilteringService = new csp_1.EgressFilteringService(collectedUrls.concat(collectedRemotes));
27
+ this.egressFilteringService = new egress_1.EgressFilteringService(collectedUrls.concat(collectedRemotes));
28
28
  }
29
29
  getLintClass() {
30
30
  return linter_interface_1.LintClass.Error;
@@ -35,7 +35,7 @@ class ProductVerifier extends verifier_interface_1.BaseLintIssueVerifier {
35
35
  for (const permission of missingScopes) {
36
36
  rules.push({
37
37
  class: this.getLintClass(),
38
- message: text_1.messages.verifiers.product.message(cli_shared_1.capitalise(this.product), apiCall.method.toUpperCase(), (_a = this.pathMap.get(apiCall.regex)) === null || _a === void 0 ? void 0 : _a.originalPath, permission),
38
+ message: text_1.messages.verifiers.product.message((0, cli_shared_1.capitalise)(this.product), apiCall.method.toUpperCase(), (_a = this.pathMap.get(apiCall.regex)) === null || _a === void 0 ? void 0 : _a.originalPath, permission),
39
39
  reference: text_1.messages.verifiers.product.reference,
40
40
  line: apiCall.line,
41
41
  column: apiCall.column,
@@ -59,7 +59,7 @@ class ProductVerifier extends verifier_interface_1.BaseLintIssueVerifier {
59
59
  var _a, _b;
60
60
  const current = this.getRequiredScopes(apiCall);
61
61
  const beta = this.getBetaScopes(apiCall);
62
- return manifest_1.getMissingScopes((_b = (_a = this.manifest) === null || _a === void 0 ? void 0 : _a.permissions) === null || _b === void 0 ? void 0 : _b.scopes, { current, beta });
62
+ return (0, manifest_1.getMissingScopes)((_b = (_a = this.manifest) === null || _a === void 0 ? void 0 : _a.permissions) === null || _b === void 0 ? void 0 : _b.scopes, { current, beta });
63
63
  }
64
64
  getRequiredScopes({ regex, method }) {
65
65
  var _a, _b, _c, _d;
@@ -67,7 +67,7 @@ class ProductVerifier extends verifier_interface_1.BaseLintIssueVerifier {
67
67
  return [];
68
68
  const oAuth2Scopes = (_b = (_a = this.pathMap.get(regex)) === null || _a === void 0 ? void 0 : _a.methods[method]) === null || _b === void 0 ? void 0 : _b['x-atlassian-oauth2-scopes'];
69
69
  if (oAuth2Scopes) {
70
- return array_prototype_flatmap_1.default(oAuth2Scopes.filter((scope) => scope.state === 'Current').map((scope) => scope.scopes), (x) => x);
70
+ return (0, array_prototype_flatmap_1.default)(oAuth2Scopes.filter((scope) => scope.state === 'Current').map((scope) => scope.scopes), (x) => x);
71
71
  }
72
72
  const swaggerEntries = (_d = (_c = this.pathMap.get(regex)) === null || _c === void 0 ? void 0 : _c.methods[method]) === null || _d === void 0 ? void 0 : _d.security;
73
73
  if (!swaggerEntries)
@@ -81,7 +81,7 @@ class ProductVerifier extends verifier_interface_1.BaseLintIssueVerifier {
81
81
  const oAuth2Scopes = (_b = (_a = this.pathMap.get(regex)) === null || _a === void 0 ? void 0 : _a.methods[method]) === null || _b === void 0 ? void 0 : _b['x-atlassian-oauth2-scopes'];
82
82
  if (!oAuth2Scopes)
83
83
  return [];
84
- return array_prototype_flatmap_1.default(oAuth2Scopes.filter((scope) => scope.state === 'Beta').map((scope) => scope.scopes), (x) => x);
84
+ return (0, array_prototype_flatmap_1.default)(oAuth2Scopes.filter((scope) => scope.state === 'Beta').map((scope) => scope.scopes), (x) => x);
85
85
  }
86
86
  }
87
87
  exports.ProductVerifier = ProductVerifier;
@@ -30,7 +30,7 @@ class UIHookVerifier extends verifier_interface_1.BaseLintIssueVerifier {
30
30
  const requiredPermissions = FORGE_UI_HOOK_PERMISSIONS[apiCall.hookName];
31
31
  if (!requiredPermissions)
32
32
  return rules;
33
- const missingPermissions = await manifest_1.getMissingScopes((_a = this.manifest.permissions) === null || _a === void 0 ? void 0 : _a.scopes, requiredPermissions);
33
+ const missingPermissions = await (0, manifest_1.getMissingScopes)((_a = this.manifest.permissions) === null || _a === void 0 ? void 0 : _a.scopes, requiredPermissions);
34
34
  missingPermissions.forEach((perm) => rules.push(this.getHookRule(apiCall, perm)));
35
35
  }
36
36
  return rules;
@@ -1 +1 @@
1
- {"version":3,"file":"product-node-visitor.d.ts","sourceRoot":"","sources":["../../../../../src/lint/linters/permission-linter/visitors/product-node-visitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAgC,MAAM,uBAAuB,CAAC;AAE9E,eAAO,MAAM,cAAc,SAAS,CAAC;AACrC,qBAAa,kBAAmB,YAAW,WAAW,CAAC,OAAO,CAAC;IACtD,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,EAAE,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI;IAoChH,OAAO,CAAC,uBAAuB;IAK/B,OAAO,CAAC,sBAAsB;CAsE/B"}
1
+ {"version":3,"file":"product-node-visitor.d.ts","sourceRoot":"","sources":["../../../../../src/lint/linters/permission-linter/visitors/product-node-visitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAgC,MAAM,uBAAuB,CAAC;AAE9E,eAAO,MAAM,cAAc,SAAS,CAAC;AACrC,qBAAa,kBAAmB,YAAW,WAAW,CAAC,OAAO,CAAC;IACtD,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,EAAE,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI;IAoChH,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,sBAAsB;CAsE/B"}
@@ -15,5 +15,5 @@ export interface ParseOptions {
15
15
  project?: string;
16
16
  }
17
17
  export declare const createParseOptions: (absoluteFilePath: string, fileSystemReader: FileSystemReader) => ParseOptions;
18
- export declare const tsParser: (code: string, filepath: string, parseOptions?: Partial<ParseOptions> | undefined) => Promise<ASTParseResult>;
18
+ export declare const tsParser: (code: string, filepath: string, parseOptions?: Partial<ParseOptions>) => Promise<ASTParseResult>;
19
19
  //# sourceMappingURL=parser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../src/parse/parser.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EACL,GAAG,EAGH,QAAQ,EACR,eAAe,EAChB,MAAM,sCAAsC,CAAC;AAG9C,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,GAAG,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC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AAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,kBAAkB,qBAAsB,MAAM,oBAAoB,gBAAgB,KAAG,YAWjG,CAAC;AAEF,eAAO,MAAM,QAAQ,SACb,MAAM,YACF,MAAM,iBACD,QAAQ,YAAY,CAAC,KACnC,QAAQ,cAAc,CAYxB,CAAC"}
@@ -6,19 +6,21 @@ const cli_shared_1 = require("@forge/cli-shared");
6
6
  const typescript_estree_1 = require("@typescript-eslint/typescript-estree");
7
7
  const path_1 = tslib_1.__importDefault(require("path"));
8
8
  const TSCONFIG_PATH = './tsconfig.json';
9
- exports.createParseOptions = (absoluteFilePath, fileSystemReader) => {
9
+ const createParseOptions = (absoluteFilePath, fileSystemReader) => {
10
10
  const tsconfigOptions = fileSystemReader.fileExists(TSCONFIG_PATH)
11
11
  ? { tsconfigRootDir: process.cwd(), project: TSCONFIG_PATH }
12
12
  : {};
13
13
  return Object.assign({ errorOnTypeScriptSyntacticAndSemanticIssues: true, loc: true, filePath: absoluteFilePath }, tsconfigOptions);
14
14
  };
15
- exports.tsParser = async (code, filepath, parseOptions) => {
15
+ exports.createParseOptions = createParseOptions;
16
+ const tsParser = async (code, filepath, parseOptions) => {
16
17
  const absoluteFilePath = path_1.default.resolve(process.cwd(), filepath);
17
- const parseResult = typescript_estree_1.parseAndGenerateServices(code, Object.assign(Object.assign({}, exports.createParseOptions(absoluteFilePath, new cli_shared_1.FileSystemReader())), parseOptions));
18
+ const parseResult = (0, typescript_estree_1.parseAndGenerateServices)(code, Object.assign(Object.assign({}, (0, exports.createParseOptions)(absoluteFilePath, new cli_shared_1.FileSystemReader())), parseOptions));
18
19
  return {
19
20
  parsed: parseResult.ast,
20
21
  traverse: (options) => {
21
- typescript_estree_1.simpleTraverse(parseResult.ast, options);
22
+ (0, typescript_estree_1.simpleTraverse)(parseResult.ast, options);
22
23
  }
23
24
  };
24
25
  };
26
+ exports.tsParser = tsParser;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/lint",
3
- "version": "0.0.0-experimental-9489df9",
3
+ "version": "0.0.0-experimental-c8e9749",
4
4
  "description": "Linting for forge apps",
5
5
  "main": "out/index.js",
6
6
  "license": "UNLICENSED",
@@ -15,12 +15,12 @@
15
15
  "@types/node-fetch": "^2.5.7"
16
16
  },
17
17
  "dependencies": {
18
- "@forge/cli-shared": "0.0.0-experimental-9489df9",
19
- "@forge/csp": "1.11.0",
20
- "@forge/manifest": "0.0.0-experimental-9489df9",
21
- "@typescript-eslint/typescript-estree": "^3.5.0",
18
+ "@forge/cli-shared": "3.5.1",
19
+ "@forge/egress": "^0.0.0-experimental-c8e9749",
20
+ "@forge/manifest": "4.6.0",
21
+ "@typescript-eslint/typescript-estree": "^5.40.0",
22
+ "atlassian-openapi": "^1.0.13",
22
23
  "cross-spawn": "^7.0.1",
23
- "node-fetch": "2.6.1",
24
- "atlassian-openapi": "^1.0.13"
24
+ "node-fetch": "2.6.7"
25
25
  }
26
26
  }