@player-tools/complexity-check-plugin 0.10.0-next.0 → 0.10.0

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/package.json CHANGED
@@ -6,11 +6,11 @@
6
6
  "types"
7
7
  ],
8
8
  "name": "@player-tools/complexity-check-plugin",
9
- "version": "0.10.0-next.0",
9
+ "version": "0.10.0",
10
10
  "main": "dist/cjs/index.cjs",
11
11
  "dependencies": {
12
- "@player-tools/json-language-service": "0.10.0-next.0",
13
- "@player-ui/player": "0.7.3",
12
+ "@player-tools/json-language-service": "0.10.0",
13
+ "@player-ui/player": "0.10.4",
14
14
  "jsonc-parser": "^2.3.1",
15
15
  "typescript-template-language-service-decorator": "^2.3.1",
16
16
  "vscode-languageserver-types": "^3.15.1",
@@ -19,7 +19,7 @@ describe("complexity plugin", () => {
19
19
  service.addLSPPlugin(
20
20
  new ComplexityCheck({
21
21
  maxAcceptableComplexity: 60,
22
- })
22
+ }),
23
23
  );
24
24
  await service.setAssetTypesFromModule([
25
25
  Types,
@@ -78,7 +78,7 @@ describe("complexity plugin", () => {
78
78
  },
79
79
  },
80
80
  },
81
- })
81
+ }),
82
82
  );
83
83
 
84
84
  const validations = await service.validateTextDocument(textDocument);
@@ -176,7 +176,7 @@ describe("complexity plugin", () => {
176
176
  },
177
177
  },
178
178
  },
179
- })
179
+ }),
180
180
  );
181
181
 
182
182
  const validations = await service.validateTextDocument(textDocument);
@@ -266,7 +266,7 @@ describe("complexity plugin", () => {
266
266
  },
267
267
  },
268
268
  },
269
- })
269
+ }),
270
270
  );
271
271
 
272
272
  const validations = await service.validateTextDocument(textDocument);
@@ -293,7 +293,7 @@ describe("complexity plugin", () => {
293
293
  new ComplexityCheck({
294
294
  maxAcceptableComplexity: 60,
295
295
  typeWeights: { text: 1, info: 2, table: 5 },
296
- })
296
+ }),
297
297
  );
298
298
  await customService.setAssetTypesFromModule([
299
299
  Types,
@@ -350,7 +350,7 @@ describe("complexity plugin", () => {
350
350
  },
351
351
  },
352
352
  },
353
- })
353
+ }),
354
354
  );
355
355
 
356
356
  const validations = await customService.validateTextDocument(textDocument);
@@ -378,7 +378,7 @@ describe("complexity plugin", () => {
378
378
  new ComplexityCheck({
379
379
  maxAcceptableComplexity: 20,
380
380
  maxWarningLevel: 10,
381
- })
381
+ }),
382
382
  );
383
383
  await customService.setAssetTypesFromModule([
384
384
  Types,
@@ -435,7 +435,7 @@ describe("complexity plugin", () => {
435
435
  },
436
436
  },
437
437
  },
438
- })
438
+ }),
439
439
  );
440
440
 
441
441
  const validations = await customService.validateTextDocument(textDocument);
@@ -452,7 +452,7 @@ describe("complexity plugin", () => {
452
452
  "Content complexity is 18, Warning: 10"
453
453
  `);
454
454
  expect(validations?.map((v) => v.severity)[0]).toBe(
455
- DiagnosticSeverity.Warning
455
+ DiagnosticSeverity.Warning,
456
456
  );
457
457
  });
458
458
 
@@ -467,7 +467,7 @@ describe("complexity plugin", () => {
467
467
  baseWeightOverrides: {
468
468
  assetNode: 4,
469
469
  },
470
- })
470
+ }),
471
471
  );
472
472
  await customService.setAssetTypesFromModule([
473
473
  Types,
@@ -524,7 +524,7 @@ describe("complexity plugin", () => {
524
524
  },
525
525
  },
526
526
  },
527
- })
527
+ }),
528
528
  );
529
529
 
530
530
  const validations = await customService.validateTextDocument(textDocument);
@@ -541,7 +541,7 @@ describe("complexity plugin", () => {
541
541
  "Content complexity is 24, Maximum: 20"
542
542
  `);
543
543
  expect(validations?.map((v) => v.severity)[0]).toBe(
544
- DiagnosticSeverity.Error
544
+ DiagnosticSeverity.Error,
545
545
  );
546
546
  });
547
547
  });