Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • jw_sonar
  • jw_sonar_backup
  • main
  • move-to-esm-only
  • open_tool_for_self_hosting
  • v5.0
  • v4.1
  • v4.2
8 results

Target

Select target project
  • dojo_project/projects/shared/nodesharedcode
1 result
Select Git revision
  • jw_sonar
  • jw_sonar_backup
  • main
  • move-to-esm-only
  • open_tool_for_self_hosting
  • v5.0
  • v4.1
  • v4.2
8 results
Show changes
Commits on Source (3)
......@@ -7,7 +7,7 @@ This repo contains some code that can be shared across node projects of Dojo.
These packages are needed :
- `ajv`
- `hjson`
- `json5`
- `winston`
## How to use it
......
import Ajv, { ErrorObject, JTDSchemaType } from 'ajv/dist/jtd';
import fs from 'fs';
import ExerciceResultsFile from '../types/Dojo/ExerciceResultsFile';
import hjson from 'hjson';
import JSON5 from 'json5';
class ExerciceHelper {
......@@ -34,7 +34,7 @@ class ExerciceHelper {
const validator = ajv.compile(schema);
const results = hjson.parse(fs.readFileSync(resultsFilePath, 'utf8'));
const results = JSON5.parse(fs.readFileSync(resultsFilePath, 'utf8'));
const isValid = validator(results);
return {
......
......@@ -2,7 +2,7 @@ interface DojoResponse<T> {
timestamp: string;
code: number;
description: string;
sessionToken: string;
sessionToken: string | null;
data: T;
}
......