@stryker-mutator/dashboard-data-access 0.15.1-pr-897.3 → 0.15.1-pr-906.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.
@@ -3,7 +3,7 @@ export interface ModelClass<TModel, TPartitionKeyFields extends keyof TModel, TR
3
3
  createPartitionKey(entity: Pick<TModel, TPartitionKeyFields>): string;
4
4
  createRowKey(entity: Pick<TModel, TRowKeyFields>): string | undefined;
5
5
  identify(entity: Partial<TModel>, partitionKeyValue: string, rowKeyValue: string): void;
6
- readonly persistedFields: ReadonlyArray<Exclude<keyof TModel, TRowKeyFields>>;
6
+ readonly persistedFields: readonly Exclude<keyof TModel, TRowKeyFields>[];
7
7
  readonly tableName: string;
8
8
  }
9
9
  //# sourceMappingURL=ModelClass.d.ts.map
@@ -96,6 +96,7 @@ export default class TableStorageMapper {
96
96
  partitionKey: encodeKey(this.ModelClass.createPartitionKey(entity)),
97
97
  rowKey: encodeKey(this.ModelClass.createRowKey(entity) || ''),
98
98
  };
99
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
99
100
  this.ModelClass.persistedFields.forEach((field) => (data[field] = entity[field]));
100
101
  return data;
101
102
  }
@@ -7,8 +7,8 @@ export declare class RealTimeMutantsBlobService {
7
7
  constructor(blobService?: BlobServiceClient);
8
8
  createStorageIfNotExists(): Promise<void>;
9
9
  createReport(id: ReportIdentifier): Promise<void>;
10
- appendToReport(id: ReportIdentifier, mutants: Array<Partial<MutantResult>>): Promise<void>;
11
- getReport(id: ReportIdentifier): Promise<Array<Partial<MutantResult>>>;
10
+ appendToReport(id: ReportIdentifier, mutants: Partial<MutantResult>[]): Promise<void>;
11
+ getReport(id: ReportIdentifier): Promise<Partial<MutantResult>[]>;
12
12
  delete(id: ReportIdentifier): Promise<void>;
13
13
  }
14
14
  //# sourceMappingURL=RealTimeMutantsBlobService.d.ts.map
package/dist/src/utils.js CHANGED
@@ -11,9 +11,11 @@ export function isStorageError(maybeStorageError) {
11
11
  export function hasErrorCode(err, code) {
12
12
  if (!isStorageError(err))
13
13
  return false;
14
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
14
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment
15
15
  const details = err.details;
16
- return (typeof details === 'object' && details !== null && (details.errorCode === code || details.odataError?.code === code));
16
+ return (
17
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
18
+ typeof details === 'object' && details !== null && (details.errorCode === code || details.odataError?.code === code));
17
19
  }
18
20
  export function toBlobName({ projectName, version, moduleName, realTime }) {
19
21
  const slug = [projectName, version, moduleName, realTime ? 'real-time' : realTime].filter(Boolean).join('/');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryker-mutator/dashboard-data-access",
3
- "version": "0.15.1-pr-897.3",
3
+ "version": "0.15.1-pr-906.0",
4
4
  "type": "module",
5
5
  "description": "This package contains the data access layer of the stryker dashboard application.",
6
6
  "scripts": {
@@ -24,9 +24,9 @@
24
24
  "dependencies": {
25
25
  "@azure/data-tables": "13.2.2",
26
26
  "@azure/storage-blob": "12.24.0",
27
- "@stryker-mutator/dashboard-common": "0.15.1-pr-897.3",
27
+ "@stryker-mutator/dashboard-common": "0.15.1-pr-906.0",
28
28
  "mutation-testing-metrics": "3.2.0",
29
29
  "mutation-testing-report-schema": "3.1.1"
30
30
  },
31
- "gitHead": "d08a4ea5e40bd3506ca873af2efe319ef0703548"
31
+ "gitHead": "18b565b58e926f38b79ccc5d25229f094c4e40a0"
32
32
  }