@cumulus/common 18.3.0 → 18.3.2
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/package.json +5 -5
- package/sleep.d.ts +3 -0
- package/sleep.js +3 -0
- package/test-utils.d.ts +1 -0
- package/test-utils.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cumulus/common",
|
|
3
|
-
"version": "18.3.
|
|
3
|
+
"version": "18.3.2",
|
|
4
4
|
"description": "Common utilities used across tasks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"GIBS",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@aws-sdk/client-s3": "^3.447.0",
|
|
48
48
|
"@aws-sdk/signature-v4-crt": "^3.447.0",
|
|
49
|
-
"@cumulus/aws-client": "18.3.
|
|
50
|
-
"@cumulus/errors": "18.3.
|
|
51
|
-
"@cumulus/logger": "18.3.
|
|
49
|
+
"@cumulus/aws-client": "18.3.2",
|
|
50
|
+
"@cumulus/errors": "18.3.2",
|
|
51
|
+
"@cumulus/logger": "18.3.2",
|
|
52
52
|
"ajv": "^6.12.3",
|
|
53
53
|
"follow-redirects": "^1.2.4",
|
|
54
54
|
"fs-extra": "^5.0.0",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"@types/node-forge": "^0.9.5",
|
|
71
71
|
"@types/url-join": "^4.0.0"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "8c143e0c25d02585653d50ccec150df2ec3b3160"
|
|
74
74
|
}
|
package/sleep.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Sleep for the given number of milliseconds
|
|
3
|
+
*
|
|
4
|
+
* @param {number} duration - The number of milliseconds to sleep.
|
|
5
|
+
* @returns {Promise} A `Promise` that resolves after the given duration.
|
|
3
6
|
*/
|
|
4
7
|
export declare const sleep: (duration: number) => Promise<void>;
|
|
5
8
|
//# sourceMappingURL=sleep.d.ts.map
|
package/sleep.js
CHANGED
|
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.sleep = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Sleep for the given number of milliseconds
|
|
6
|
+
*
|
|
7
|
+
* @param {number} duration - The number of milliseconds to sleep.
|
|
8
|
+
* @returns {Promise} A `Promise` that resolves after the given duration.
|
|
6
9
|
*/
|
|
7
10
|
const sleep = (duration) => new Promise((resolve) => setTimeout(resolve, duration));
|
|
8
11
|
exports.sleep = sleep;
|
package/test-utils.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { readJsonFile as readJsonFixture } from './FileUtils';
|
|
|
8
8
|
export declare const inTestMode: (env?: NodeJS.ProcessEnv) => boolean;
|
|
9
9
|
/**
|
|
10
10
|
* Helper function to throw error for unit test exports
|
|
11
|
+
*
|
|
11
12
|
* @throws {Error}
|
|
12
13
|
*/
|
|
13
14
|
export declare const throwTestError: () => never;
|
package/test-utils.js
CHANGED