@8ms/helpers 1.1.43 → 1.1.44

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.
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Write a file to Google Drive.
2
+ * Write a file to Google Cloud Storage.
3
3
  */
4
4
  export declare const writeFile: ({ GoogleStorageLib, bucket, credentials, data, key }: {
5
5
  GoogleStorageLib: any;
@@ -42,7 +42,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
42
42
  exports.writeFile = void 0;
43
43
  var stream_1 = __importDefault(require("stream"));
44
44
  /**
45
- * Write a file to Google Drive.
45
+ * Write a file to Google Cloud Storage.
46
46
  */
47
47
  var writeFile = function (_a) {
48
48
  var GoogleStorageLib = _a.GoogleStorageLib, bucket = _a.bucket, credentials = _a.credentials, data = _a.data, key = _a.key;
@@ -53,10 +53,7 @@ var writeFile = function (_a) {
53
53
  case 0:
54
54
  Storage = GoogleStorageLib.Storage;
55
55
  storage = new Storage({
56
- credentials: {
57
- client_email: credentials.client_email,
58
- private_key: credentials.private_key,
59
- },
56
+ credentials: credentials,
60
57
  });
61
58
  data_stream = new stream_1.default.PassThrough();
62
59
  google_file = storage.bucket(bucket)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@8ms/helpers",
3
- "version": "1.1.43",
3
+ "version": "1.1.44",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"