@cumulus/common 13.4.0 → 14.1.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.d.ts CHANGED
@@ -8,4 +8,5 @@ export * as log from './log';
8
8
  export * as testUtils from './test-utils';
9
9
  export * as util from './util';
10
10
  export * as workflows from './workflows';
11
+ export * from './sleep';
11
12
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -22,6 +22,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
+ };
25
28
  Object.defineProperty(exports, "__esModule", { value: true });
26
29
  exports.workflows = exports.util = exports.testUtils = exports.log = exports.keyPairProvider = exports.fakeProvider = exports.envUtils = exports.cliUtils = exports.BucketsConfig = void 0;
27
30
  const BucketsConfig = require("./BucketsConfig");
@@ -34,4 +37,5 @@ exports.log = __importStar(require("./log"));
34
37
  exports.testUtils = __importStar(require("./test-utils"));
35
38
  exports.util = __importStar(require("./util"));
36
39
  exports.workflows = __importStar(require("./workflows"));
40
+ __exportStar(require("./sleep"), exports);
37
41
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cumulus/common",
3
- "version": "13.4.0",
3
+ "version": "14.1.0",
4
4
  "description": "Common utilities used across tasks",
5
5
  "keywords": [
6
6
  "GIBS",
@@ -43,9 +43,9 @@
43
43
  "dependencies": {
44
44
  "@aws-sdk/client-s3": "^3.58.0",
45
45
  "@aws-sdk/signature-v4-crt": "^3.58.0",
46
- "@cumulus/aws-client": "13.4.0",
47
- "@cumulus/errors": "13.4.0",
48
- "@cumulus/logger": "13.4.0",
46
+ "@cumulus/aws-client": "14.1.0",
47
+ "@cumulus/errors": "14.1.0",
48
+ "@cumulus/logger": "14.1.0",
49
49
  "ajv": "^6.12.3",
50
50
  "aws-sdk": "^2.585.0",
51
51
  "follow-redirects": "^1.2.4",
@@ -67,5 +67,5 @@
67
67
  "@types/node-forge": "^0.9.5",
68
68
  "@types/url-join": "^4.0.0"
69
69
  },
70
- "gitHead": "cd4377ccf97a1daba19775fb95f9f7fa0f2a29f3"
70
+ "gitHead": "d97b5b37913944c0f0ecf958f2a567ec3714816c"
71
71
  }
package/sleep.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Sleep for the given number of milliseconds
3
+ */
4
+ export declare const sleep: (duration: number) => Promise<void>;
5
+ //# sourceMappingURL=sleep.d.ts.map
package/sleep.js ADDED
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sleep = void 0;
4
+ /**
5
+ * Sleep for the given number of milliseconds
6
+ */
7
+ const sleep = (duration) => new Promise((resolve) => setTimeout(resolve, duration));
8
+ exports.sleep = sleep;
9
+ //# sourceMappingURL=sleep.js.map
package/util.d.ts CHANGED
@@ -27,7 +27,7 @@ export declare const deprecate: (name: string, version: string, alternative?: st
27
27
  *
28
28
  * @alias module:util
29
29
  */
30
- export declare const removeNilProperties: <T extends object>(obj: T) => T;
30
+ export declare const removeNilProperties: <T extends object>(obj: T) => { [P in keyof T]: Exclude<T[P], null>; };
31
31
  /**
32
32
  * Test if a value is included in a list of items
33
33
  *