@naturalcycles/cloud-storage-lib 1.5.4 → 1.6.0

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.
@@ -5,6 +5,7 @@ import { Storage, StorageOptions } from '@google-cloud/storage';
5
5
  import { ReadableTyped } from '@naturalcycles/nodejs-lib';
6
6
  import { CommonStorage, CommonStorageGetOptions, FileEntry } from './commonStorage';
7
7
  import { GCPServiceAccount } from './model';
8
+ export { Storage, type StorageOptions, };
8
9
  /**
9
10
  * This object is intentionally made to NOT extend StorageOptions,
10
11
  * because StorageOptions is complicated and provides just too many ways
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CloudStorage = void 0;
3
+ exports.CloudStorage = exports.Storage = void 0;
4
4
  const js_lib_1 = require("@naturalcycles/js-lib");
5
5
  const storage_1 = require("@google-cloud/storage");
6
+ Object.defineProperty(exports, "Storage", { enumerable: true, get: function () { return storage_1.Storage; } });
6
7
  const nodejs_lib_1 = require("@naturalcycles/nodejs-lib");
7
8
  class CloudStorage {
8
9
  /**
package/package.json CHANGED
@@ -35,7 +35,7 @@
35
35
  "engines": {
36
36
  "node": ">=18.12.0"
37
37
  },
38
- "version": "1.5.4",
38
+ "version": "1.6.0",
39
39
  "description": "",
40
40
  "author": "Natural Cycles Team",
41
41
  "license": "MIT"
@@ -5,6 +5,12 @@ import { ReadableTyped, transformMap, transformMapSimple } from '@naturalcycles/
5
5
  import { CommonStorage, CommonStorageGetOptions, FileEntry } from './commonStorage'
6
6
  import { GCPServiceAccount } from './model'
7
7
 
8
+ export {
9
+ // This is the latest version, to be imported by consumers
10
+ Storage,
11
+ type StorageOptions,
12
+ }
13
+
8
14
  /**
9
15
  * This object is intentionally made to NOT extend StorageOptions,
10
16
  * because StorageOptions is complicated and provides just too many ways