@cumulus/common 9.8.0 → 10.0.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/BucketsConfig.d.ts +3 -3
- package/package.json +6 -6
- 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.1",
|
|
4
4
|
"description": "Common utilities used across tasks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"GIBS",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build-docs": "npm run tsc && ../../node_modules/.bin/jsdoc2md --template templates/docs-API.hbs URLUtils.js util.js > docs/API.md",
|
|
27
|
-
"clean": "
|
|
27
|
+
"clean": "git clean -d -x -e node_modules -f",
|
|
28
28
|
"test": "../../node_modules/.bin/ava",
|
|
29
29
|
"test:coverage": "../../node_modules/.bin/nyc npm test",
|
|
30
30
|
"prepare": "npm run tsc",
|
|
@@ -41,15 +41,15 @@
|
|
|
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.1",
|
|
45
|
+
"@cumulus/logger": "10.0.1",
|
|
46
46
|
"ajv": "^6.12.3",
|
|
47
47
|
"aws-sdk": "^2.585.0",
|
|
48
48
|
"follow-redirects": "^1.2.4",
|
|
49
49
|
"fs-extra": "^5.0.0",
|
|
50
50
|
"jsonpath-plus": "^3.0.0",
|
|
51
51
|
"lodash": "^4.17.20",
|
|
52
|
-
"node-forge": "^0.
|
|
52
|
+
"node-forge": "^1.0.0",
|
|
53
53
|
"p-limit": "^2.0.0",
|
|
54
54
|
"p-map": "^1.2.0",
|
|
55
55
|
"p-retry": "^4.2.0",
|
|
@@ -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": "49c3c88336838184f22f35fbce298c71cd269138"
|
|
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;
|