@cumulus/common 9.9.0 → 10.0.0-beta.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.
- package/BucketsConfig.d.ts +3 -3
- package/package.json +4 -4
- package/types.d.ts +1 -2
package/BucketsConfig.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BucketsConfigObject
|
|
1
|
+
import { BucketsConfigObject } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Class representing cumulus bucket configuration.
|
|
4
4
|
*/
|
|
@@ -16,7 +16,7 @@ declare class BucketsConfig {
|
|
|
16
16
|
* @param {string} bucketName
|
|
17
17
|
* @returns {string} matching bucket's type
|
|
18
18
|
*/
|
|
19
|
-
type(bucketName: string):
|
|
19
|
+
type(bucketName: string): string;
|
|
20
20
|
/**
|
|
21
21
|
* returns bucket object who's name field matches bucketName
|
|
22
22
|
* @param {string} bucketName
|
|
@@ -47,7 +47,7 @@ declare class BucketsConfig {
|
|
|
47
47
|
* @param {string/Array} types - types of buckets to return
|
|
48
48
|
* @returns {Array<Object>} - array of buckets that are of desired types
|
|
49
49
|
*/
|
|
50
|
-
bucketsOfType(types:
|
|
50
|
+
bucketsOfType(types: string | string[]): import("./types").BucketConfig[];
|
|
51
51
|
/** @returns {Array} list of private buckets */
|
|
52
52
|
privateBuckets(): import("./types").BucketConfig[];
|
|
53
53
|
/** @returns {Array} list of protected buckets */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cumulus/common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0-beta.0",
|
|
4
4
|
"description": "Common utilities used across tasks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"GIBS",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"author": "Cumulus Authors",
|
|
42
42
|
"license": "Apache-2.0",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@cumulus/errors": "
|
|
45
|
-
"@cumulus/logger": "
|
|
44
|
+
"@cumulus/errors": "10.0.0-beta.0",
|
|
45
|
+
"@cumulus/logger": "10.0.0-beta.0",
|
|
46
46
|
"ajv": "^6.12.3",
|
|
47
47
|
"aws-sdk": "^2.585.0",
|
|
48
48
|
"follow-redirects": "^1.2.4",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"@types/node-forge": "^0.9.5",
|
|
64
64
|
"@types/url-join": "^4.0.0"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "bc283986be627ba06a4084cabd4e01d1540d14c7"
|
|
67
67
|
}
|
package/types.d.ts
CHANGED
|
@@ -12,10 +12,9 @@ export declare type AwsCloudWatchEvent = {
|
|
|
12
12
|
output?: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
export declare type BucketType = 'internal' | 'private' | 'protected' | 'public' | 'shared';
|
|
16
15
|
export declare type BucketConfig = {
|
|
17
16
|
name: string;
|
|
18
|
-
type:
|
|
17
|
+
type: string;
|
|
19
18
|
};
|
|
20
19
|
export declare type BucketsConfigObject = {
|
|
21
20
|
[key: string]: BucketConfig;
|