@stryker-mutator/dashboard-data-access 0.14.4-pr-888.15 → 0.14.4-pr-888.17
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.
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BlobServiceClient, StorageSharedKeyCredential } from '@azure/storage-blob';
|
|
1
|
+
import { BlobServiceClient } from '@azure/storage-blob';
|
|
3
2
|
export const createBlobServiceClient = () => {
|
|
4
3
|
const connectionString = process.env.AZURE_STORAGE_CONNECTION_STRING;
|
|
5
4
|
if (connectionString) {
|
|
6
5
|
return BlobServiceClient.fromConnectionString(connectionString);
|
|
7
6
|
}
|
|
8
7
|
else {
|
|
9
|
-
|
|
10
|
-
const accessKey = process.env.AZURE_STORAGE_ACCESS_KEY;
|
|
11
|
-
if (storageAccount) {
|
|
12
|
-
const credential = accessKey
|
|
13
|
-
? new StorageSharedKeyCredential(storageAccount, accessKey)
|
|
14
|
-
: new DefaultAzureCredential();
|
|
15
|
-
return new BlobServiceClient(`https://${storageAccount}.blob.core.windows.net`, credential);
|
|
16
|
-
}
|
|
8
|
+
throw new Error('AZURE_STORAGE_CONNECTION_STRING is not set');
|
|
17
9
|
}
|
|
18
|
-
throw new Error('AZURE_STORAGE_CONNECTION_STRING is not set');
|
|
19
10
|
};
|
|
20
11
|
//# sourceMappingURL=BlobServiceClient.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TableClient
|
|
1
|
+
import { TableClient } from '@azure/data-tables';
|
|
2
2
|
export const createTableClient = (tableName) => {
|
|
3
3
|
const connectionString = process.env.AZURE_STORAGE_CONNECTION_STRING;
|
|
4
4
|
if (connectionString) {
|
|
@@ -7,12 +7,7 @@ export const createTableClient = (tableName) => {
|
|
|
7
7
|
});
|
|
8
8
|
}
|
|
9
9
|
else {
|
|
10
|
-
|
|
11
|
-
const accessKey = process.env.AZURE_STORAGE_ACCESS_KEY;
|
|
12
|
-
if (storageAccount && accessKey) {
|
|
13
|
-
return new TableClient(`https://${storageAccount}.table.core.windows.net`, tableName, new AzureNamedKeyCredential(storageAccount, accessKey));
|
|
14
|
-
}
|
|
10
|
+
throw new Error('AZURE_STORAGE_CONNECTION_STRING is not set');
|
|
15
11
|
}
|
|
16
|
-
throw new Error('AZURE_STORAGE_CONNECTION_STRING is not set');
|
|
17
12
|
};
|
|
18
13
|
//# sourceMappingURL=TableClient.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryker-mutator/dashboard-data-access",
|
|
3
|
-
"version": "0.14.4-pr-888.
|
|
3
|
+
"version": "0.14.4-pr-888.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "This package contains the data access layer of the stryker dashboard application.",
|
|
6
6
|
"scripts": {
|
|
@@ -23,11 +23,10 @@
|
|
|
23
23
|
"license": "ISC",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@azure/data-tables": "13.2.2",
|
|
26
|
-
"@azure/identity": "4.4.1",
|
|
27
26
|
"@azure/storage-blob": "12.24.0",
|
|
28
|
-
"@stryker-mutator/dashboard-common": "0.14.4-pr-888.
|
|
27
|
+
"@stryker-mutator/dashboard-common": "0.14.4-pr-888.17",
|
|
29
28
|
"mutation-testing-metrics": "3.2.0",
|
|
30
29
|
"mutation-testing-report-schema": "3.1.1"
|
|
31
30
|
},
|
|
32
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "7356225f4d58059c1dd562674ab7fe314698bacc"
|
|
33
32
|
}
|