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 (4)
import AssignmentFile from '../../types/Dojo/AssignmentFile';
import DojoStatusCode from '../../types/Dojo/DojoStatusCode';
import Json5FileValidator from '../Json5FileValidator';
import AssignmentFile from '../../types/Dojo/AssignmentFile.js';
import DojoStatusCode from '../../types/Dojo/DojoStatusCode.js';
import Json5FileValidator from '../Json5FileValidator.js';
import * as Gitlab from '@gitbeaker/rest';
import GitlabPipelineStatus from '../../types/Gitlab/GitlabPipelineStatus';
import GitlabManager from '../../../managers/GitlabManager';
import GitlabPipelineStatus from '../../types/Gitlab/GitlabPipelineStatus.js';
import GitlabManager from '../../../managers/GitlabManager.js';
class SharedAssignmentHelper {
......
......@@ -9,7 +9,7 @@ class LazyVal<T> {
get value(): Promise<T> {
return new Promise<T>(resolve => {
if ( this.val === undefined ) {
Promise.resolve(this.valLoader()).then((value: T) => {
void Promise.resolve(this.valLoader()).then((value: T) => {
this.val = value;
resolve(value);
});
......
......@@ -51,6 +51,10 @@ class Toolbox {
public getKeysWithPrefix(obj: object, prefix: string): Array<string> {
return Object.keys(obj).filter(key => key.startsWith(prefix));
}
public isString(value: unknown): value is string {
return typeof value === 'string' || value instanceof String;
}
}
......
......@@ -75,9 +75,9 @@ class RecursiveFilesStats {
if ( callback ) {
fileDir.forEach(item => {
this.getStat(item.path, absoluteBasePath, options).then(stat => {
void this.getStat(item.path, absoluteBasePath, options).then(stat => {
if ( stat.isDirectory!() ) {
this.getFiles(absoluteBasePath, item.path, options, [], callback).then();
void this.getFiles(absoluteBasePath, item.path, options, [], callback).then();
}
callback(item.path, stat);
});
......
import winston from 'winston';
import SharedConfig from '../config/SharedConfig';
import SharedConfig from '../config/SharedConfig.js';
import * as Transport from 'winston-transport';
......
import axios from 'axios';
import SharedConfig from '../config/SharedConfig';
import SharedConfig from '../config/SharedConfig.js';
import * as GitlabCore from '@gitbeaker/core';
import { GitbeakerRequestError } from '@gitbeaker/requester-utils';
import { Gitlab, PipelineSchema, ProjectSchema, UserSchema } from '@gitbeaker/rest';
import GitlabToken from '../types/Gitlab/GitlabToken';
import GitlabToken from '../types/Gitlab/GitlabToken.js';
class SharedGitlabManager {
......
import ImmutableFileDescriptor from './ImmutableFileDescriptor';
import ImmutableFileDescriptor from './ImmutableFileDescriptor.js';
import { z } from 'zod';
......
import Icon from '../Icon';
import Icon from '../Icon.js';
import { z } from 'zod';
......@@ -19,7 +19,7 @@ const ExerciseResultsFile = z.object({
icon : z.enum(Object.keys(Icon) as [ firstKey: string, ...otherKeys: Array<string> ]).optional(),
itemsOrInformations: z.union([ z.array(z.string()), z.string() ])
}))
.optional()
.optional()
}).strict().transform(value => {
if ( value.successfulTests === undefined && value.successfulTestsList !== undefined ) {
value.successfulTests = value.successfulTestsList.length;
......