@cumulus/collection-config-store 11.0.0 → 12.0.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/index.js +2 -2
- package/package.json +6 -6
package/index.js
CHANGED
|
@@ -66,11 +66,11 @@ class CollectionConfigStore {
|
|
|
66
66
|
// Attempt to fetch the collection config from S3
|
|
67
67
|
collectionConfig = await getJsonS3Object(this.bucket, this.configKey(collectionId));
|
|
68
68
|
} catch (error) {
|
|
69
|
-
if (error.
|
|
69
|
+
if (error.name === 'NoSuchKey') {
|
|
70
70
|
throw new Error(`A collection config for data type "${collectionId}" was not found.`);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
if (error.
|
|
73
|
+
if (error.name === 'NoSuchBucket') {
|
|
74
74
|
throw new Error(`Collection config bucket does not exist: ${this.bucket}`);
|
|
75
75
|
}
|
|
76
76
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cumulus/collection-config-store",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "Utility for persisting collection configuration to S3 and retrieving it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CUMULUS",
|
|
7
7
|
"NASA"
|
|
8
8
|
],
|
|
9
9
|
"engines": {
|
|
10
|
-
"node": ">=
|
|
10
|
+
"node": ">=14.19.1"
|
|
11
11
|
},
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"access": "public"
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"author": "Cumulus Authors",
|
|
33
33
|
"license": "Apache-2.0",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@cumulus/aws-client": "
|
|
36
|
-
"@cumulus/common": "
|
|
37
|
-
"@cumulus/message": "
|
|
35
|
+
"@cumulus/aws-client": "12.0.0",
|
|
36
|
+
"@cumulus/common": "12.0.0",
|
|
37
|
+
"@cumulus/message": "12.0.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "2d84198510f37d64444715736b8b08360f61c766"
|
|
40
40
|
}
|