rads-db 3.0.7 → 3.0.9

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.
@@ -143,7 +143,7 @@ function getBlobServiceClient(options) {
143
143
  return blobServiceClientCache[options.connectionString];
144
144
  }
145
145
  function getContainerClient(options) {
146
- const containerName = options.defaultContainer || "radsdb";
146
+ const containerName = options.defaultContainer || "rads";
147
147
  const key = `${options.connectionString}|${containerName}`;
148
148
  if (!containerClientCache[key]) {
149
149
  const blobServiceClient = getBlobServiceClient(options);
@@ -126,7 +126,7 @@ function getBlobServiceClient(options) {
126
126
  return blobServiceClientCache[options.connectionString];
127
127
  }
128
128
  function getContainerClient(options) {
129
- const containerName = options.defaultContainer || "radsdb";
129
+ const containerName = options.defaultContainer || "rads";
130
130
  const key = `${options.connectionString}|${containerName}`;
131
131
  if (!containerClientCache[key]) {
132
132
  const blobServiceClient = getBlobServiceClient(options);
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  module.exports = void 0;
7
7
  var _storageBlob = require("@azure/storage-blob");
8
8
  var _default = options => {
9
- const defaultContainer = options.defaultContainer || "files";
9
+ const defaultContainer = options.defaultContainer || "rads";
10
10
  const connectionString = options.connectionString;
11
- const client = new _storageBlob.BlobServiceClient(connectionString, void 0, {
11
+ const client = _storageBlob.BlobServiceClient.fromConnectionString(connectionString, {
12
12
  retryOptions: {
13
13
  maxTries: 1
14
14
  }
@@ -1,8 +1,8 @@
1
1
  import { BlobServiceClient } from "@azure/storage-blob";
2
2
  export default (options) => {
3
- const defaultContainer = options.defaultContainer || "files";
3
+ const defaultContainer = options.defaultContainer || "rads";
4
4
  const connectionString = options.connectionString;
5
- const client = new BlobServiceClient(connectionString, void 0, { retryOptions: { maxTries: 1 } });
5
+ const client = BlobServiceClient.fromConnectionString(connectionString, { retryOptions: { maxTries: 1 } });
6
6
  const driver = {
7
7
  driverName: "azureStorageBlob",
8
8
  async uploadFile(args) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rads-db",
3
- "version": "3.0.7",
3
+ "version": "3.0.9",
4
4
  "files": [
5
5
  "dist",
6
6
  "drivers",