@naturalcycles/cloud-storage-lib 1.5.4 → 1.6.1
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/dist/cloudStorage.d.ts +1 -0
- package/dist/cloudStorage.js +2 -1
- package/dist/index.d.ts +7 -9
- package/dist/index.js +8 -11
- package/package.json +1 -1
- package/src/cloudStorage.ts +6 -0
- package/src/index.ts +7 -24
package/dist/cloudStorage.d.ts
CHANGED
|
@@ -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
|
package/dist/cloudStorage.js
CHANGED
|
@@ -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/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export type { CommonStorage, CloudStorageCfg, CommonStorageGetOptions, GCPServiceAccount, CommonStorageBucketCfg, CommonStorageKeyValueDBCfg, };
|
|
9
|
-
export { CloudStorage, CommonStorageKeyValueDB, CommonStorageBucket, InMemoryCommonStorage, runCommonStorageTest, };
|
|
1
|
+
export * from './cloudStorage';
|
|
2
|
+
export * from './commonStorage';
|
|
3
|
+
export * from './commonStorageBucket';
|
|
4
|
+
export * from './commonStorageKeyValueDB';
|
|
5
|
+
export * from './inMemoryCommonStorage';
|
|
6
|
+
export * from './model';
|
|
7
|
+
export * from './testing/commonStorageTest';
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Object.defineProperty(exports, "InMemoryCommonStorage", { enumerable: true, get: function () { return inMemoryCommonStorage_1.InMemoryCommonStorage; } });
|
|
12
|
-
const commonStorageTest_1 = require("./testing/commonStorageTest");
|
|
13
|
-
Object.defineProperty(exports, "runCommonStorageTest", { enumerable: true, get: function () { return commonStorageTest_1.runCommonStorageTest; } });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./cloudStorage"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./commonStorage"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./commonStorageBucket"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./commonStorageKeyValueDB"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./inMemoryCommonStorage"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./model"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./testing/commonStorageTest"), exports);
|
package/package.json
CHANGED
package/src/cloudStorage.ts
CHANGED
|
@@ -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
|
package/src/index.ts
CHANGED
|
@@ -1,24 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export type {
|
|
10
|
-
CommonStorage,
|
|
11
|
-
CloudStorageCfg,
|
|
12
|
-
CommonStorageGetOptions,
|
|
13
|
-
GCPServiceAccount,
|
|
14
|
-
CommonStorageBucketCfg,
|
|
15
|
-
CommonStorageKeyValueDBCfg,
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export {
|
|
19
|
-
CloudStorage,
|
|
20
|
-
CommonStorageKeyValueDB,
|
|
21
|
-
CommonStorageBucket,
|
|
22
|
-
InMemoryCommonStorage,
|
|
23
|
-
runCommonStorageTest,
|
|
24
|
-
}
|
|
1
|
+
export * from './cloudStorage'
|
|
2
|
+
export * from './commonStorage'
|
|
3
|
+
export * from './commonStorageBucket'
|
|
4
|
+
export * from './commonStorageKeyValueDB'
|
|
5
|
+
export * from './inMemoryCommonStorage'
|
|
6
|
+
export * from './model'
|
|
7
|
+
export * from './testing/commonStorageTest'
|