@pi-r/azure 0.6.5 → 0.6.6

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/client/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
2
  exports.executeBatchQuery = exports.executeQuery = exports.deleteObjectsV2 = exports.deleteObjects = exports.setBucketWebsite = exports.createBucketV2 = exports.createBucket = exports.createDatabaseClient = exports.createStorageClient = exports.validateDatabase = exports.validateStorage = void 0;
4
3
  const path = require("path");
5
4
  const storage = require("@azure/storage-blob");
package/download/index.js CHANGED
@@ -3,7 +3,7 @@ const types_1 = require("@e-mc/types");
3
3
  const Module = require("@e-mc/module");
4
4
  const Cloud = require("@e-mc/cloud");
5
5
  const client_1 = require("@pi-r/azure");
6
- function download(credential, service = 'azure') {
6
+ module.exports = function download(credential, service = 'azure') {
7
7
  const blobServiceClient = client_1.createStorageClient.call(this, credential);
8
8
  return (data, callback) => {
9
9
  const { bucket: Bucket, download: target } = data;
@@ -30,6 +30,4 @@ function download(credential, service = 'azure') {
30
30
  })
31
31
  .catch(err => callback(err));
32
32
  };
33
- }
34
-
35
- module.exports = download;
33
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/azure",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "description": "Azure cloud functions for E-mc.",
5
5
  "main": "client/index.js",
6
6
  "publishConfig": {
@@ -20,9 +20,9 @@
20
20
  "license": "MIT",
21
21
  "homepage": "https://github.com/anpham6/pi-r#readme",
22
22
  "dependencies": {
23
- "@e-mc/cloud": "^0.8.6",
24
- "@e-mc/module": "^0.8.6",
25
- "@e-mc/types": "^0.8.6",
23
+ "@e-mc/cloud": "^0.8.7",
24
+ "@e-mc/module": "^0.8.7",
25
+ "@e-mc/types": "^0.8.7",
26
26
  "@azure/cosmos": "^4.0.0",
27
27
  "@azure/identity": "^4.0.1",
28
28
  "@azure/storage-blob": "^12.17.0"
package/upload/index.js CHANGED
@@ -8,7 +8,7 @@ const client_1 = require("@pi-r/azure");
8
8
  const BUCKET_SESSION = new Set();
9
9
  const BUCKET_RESPONSE = {};
10
10
  const getBucketKey = (credential, bucket, acl = '') => Module.asString(credential, true) + bucket + '_' + acl;
11
- function upload(credential, service = 'azure') {
11
+ module.exports = function upload(credential, service = 'azure') {
12
12
  const blobServiceClient = client_1.createStorageClient.call(this, credential);
13
13
  return async (data, callback) => {
14
14
  var _a, _b;
@@ -126,6 +126,4 @@ function upload(credential, service = 'azure') {
126
126
  });
127
127
  }
128
128
  };
129
- }
130
-
131
- module.exports = upload;
129
+ };