@stryker-mutator/dashboard-data-access 0.14.4-pr-888.15 → 0.14.4-pr-888.16

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 { DefaultAzureCredential } from '@azure/identity';
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
- const storageAccount = process.env.AZURE_STORAGE_ACCOUNT;
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, AzureNamedKeyCredential } from '@azure/data-tables';
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
- const storageAccount = process.env.AZURE_STORAGE_ACCOUNT;
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.15",
3
+ "version": "0.14.4-pr-888.16",
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.15",
27
+ "@stryker-mutator/dashboard-common": "0.14.4-pr-888.16",
29
28
  "mutation-testing-metrics": "3.2.0",
30
29
  "mutation-testing-report-schema": "3.1.1"
31
30
  },
32
- "gitHead": "34a5169835904a07304b0cfa1f813f90426befde"
31
+ "gitHead": "2122b5616ba1cf73a16d34488d9e18c6752479f5"
33
32
  }