@stryker-mutator/dashboard-data-access 0.19.2-pr-1429.2 → 0.19.2-pr-1429.4
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/dist/src/utils.d.ts +0 -2
- package/dist/src/utils.js +3 -6
- package/package.json +3 -3
package/dist/src/utils.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { RestError } from '@azure/storage-blob';
|
|
2
1
|
import type { ReportIdentifier } from '@stryker-mutator/dashboard-common';
|
|
3
2
|
export declare function encodeKey(inputWithSlashes: string): string;
|
|
4
3
|
export declare function decodeKey(inputWithSemiColons: string): string;
|
|
5
|
-
export declare function isStorageError(maybeStorageError: unknown): maybeStorageError is RestError;
|
|
6
4
|
export declare function hasErrorCode(err: unknown, code: string): boolean;
|
|
7
5
|
export declare function toBlobName({ projectName, version, moduleName, realTime }: ReportIdentifier): string;
|
|
8
6
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/src/utils.js
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isRestError } from '@azure/core-rest-pipeline';
|
|
2
2
|
export function encodeKey(inputWithSlashes) {
|
|
3
3
|
return inputWithSlashes.replace(/\//g, ';');
|
|
4
4
|
}
|
|
5
5
|
export function decodeKey(inputWithSemiColons) {
|
|
6
6
|
return inputWithSemiColons.replace(/;/g, '/');
|
|
7
7
|
}
|
|
8
|
-
export function isStorageError(maybeStorageError) {
|
|
9
|
-
return maybeStorageError instanceof RestError;
|
|
10
|
-
}
|
|
11
8
|
export function hasErrorCode(err, code) {
|
|
12
|
-
if (!
|
|
13
|
-
|
|
9
|
+
if (!isRestError(err))
|
|
10
|
+
return false;
|
|
14
11
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment
|
|
15
12
|
const details = err.details;
|
|
16
13
|
return (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryker-mutator/dashboard-data-access",
|
|
3
|
-
"version": "0.19.2-pr-1429.
|
|
3
|
+
"version": "0.19.2-pr-1429.4",
|
|
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.3.0",
|
|
26
26
|
"@azure/storage-blob": "12.27.0",
|
|
27
|
-
"@stryker-mutator/dashboard-common": "0.19.2-pr-1429.
|
|
27
|
+
"@stryker-mutator/dashboard-common": "0.19.2-pr-1429.4",
|
|
28
28
|
"mutation-testing-metrics": "3.5.1",
|
|
29
29
|
"mutation-testing-report-schema": "3.5.1"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "86f737442febe1a76edff1fca2c9d11519a9cf26"
|
|
32
32
|
}
|