@cumulus/common 18.2.1 → 18.3.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/execution-history.d.ts +3 -3
- package/importEsm.js +16 -0
- package/index.d.ts +1 -0
- package/index.js +2 -1
- package/package.json +10 -8
package/execution-history.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const getStepExitedEvent: (events:
|
|
3
|
-
export declare const getTaskExitedEventOutput: (event:
|
|
1
|
+
import { HistoryEvent } from '@cumulus/aws-client/StepFunctions';
|
|
2
|
+
export declare const getStepExitedEvent: (events: HistoryEvent[], lastStepEvent: HistoryEvent) => HistoryEvent | undefined;
|
|
3
|
+
export declare const getTaskExitedEventOutput: (event: HistoryEvent) => string | undefined;
|
|
4
4
|
//# sourceMappingURL=execution-history.d.ts.map
|
package/importEsm.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asynchronously imports the 'got' module.
|
|
3
|
+
*
|
|
4
|
+
* This function uses dynamic imports to import the ESM-only 'got' module at runtime.
|
|
5
|
+
* This should be used for importing the non-compat module in to CommonJS TS/webpacked
|
|
6
|
+
* modules.
|
|
7
|
+
*
|
|
8
|
+
* @returns {Promise<Function>} A promise that resolves to the 'got' function.
|
|
9
|
+
* @throws {Error} If an error occurs while importing the module.
|
|
10
|
+
*/
|
|
11
|
+
const importGot = async () => {
|
|
12
|
+
const { default: got } = await import('got');
|
|
13
|
+
return got;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
module.exports = { importGot };
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -26,9 +26,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.workflows = exports.util = exports.testUtils = exports.log = exports.keyPairProvider = exports.fakeProvider = exports.envUtils = exports.cliUtils = exports.BucketsConfig = void 0;
|
|
29
|
+
exports.workflows = exports.util = exports.testUtils = exports.log = exports.keyPairProvider = exports.fakeProvider = exports.envUtils = exports.cliUtils = exports.importEsm = exports.BucketsConfig = void 0;
|
|
30
30
|
const BucketsConfig = require("./BucketsConfig");
|
|
31
31
|
exports.BucketsConfig = BucketsConfig;
|
|
32
|
+
exports.importEsm = __importStar(require("./importEsm"));
|
|
32
33
|
exports.cliUtils = __importStar(require("./cli-utils"));
|
|
33
34
|
exports.envUtils = __importStar(require("./env"));
|
|
34
35
|
exports.fakeProvider = __importStar(require("./fake-provider"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cumulus/common",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.3.0",
|
|
4
4
|
"description": "Common utilities used across tasks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"GIBS",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"NASA"
|
|
9
9
|
],
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": ">=
|
|
11
|
+
"node": ">=20.12.2"
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
14
|
"*.js",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"build-docs": "npm run tsc && ../../node_modules/.bin/jsdoc2md --template templates/docs-API.hbs URLUtils.js util.js > docs/API.md",
|
|
27
27
|
"clean": "git clean -d -x -e node_modules -f",
|
|
28
28
|
"test": "../../node_modules/.bin/ava",
|
|
29
|
+
"test:ci": "../../scripts/run_package_ci_unit.sh",
|
|
29
30
|
"test:coverage": "../../node_modules/.bin/nyc npm test",
|
|
30
31
|
"prepare": "npm run tsc",
|
|
31
32
|
"tsc": "../../node_modules/.bin/tsc",
|
|
@@ -37,20 +38,21 @@
|
|
|
37
38
|
"files": [
|
|
38
39
|
"tests/**"
|
|
39
40
|
],
|
|
40
|
-
"verbose": true
|
|
41
|
+
"verbose": true,
|
|
42
|
+
"failFast": true
|
|
41
43
|
},
|
|
42
44
|
"author": "Cumulus Authors",
|
|
43
45
|
"license": "Apache-2.0",
|
|
44
46
|
"dependencies": {
|
|
45
47
|
"@aws-sdk/client-s3": "^3.447.0",
|
|
46
48
|
"@aws-sdk/signature-v4-crt": "^3.447.0",
|
|
47
|
-
"@cumulus/aws-client": "18.
|
|
48
|
-
"@cumulus/errors": "18.
|
|
49
|
-
"@cumulus/logger": "18.
|
|
49
|
+
"@cumulus/aws-client": "18.3.0",
|
|
50
|
+
"@cumulus/errors": "18.3.0",
|
|
51
|
+
"@cumulus/logger": "18.3.0",
|
|
50
52
|
"ajv": "^6.12.3",
|
|
51
|
-
"aws-sdk": "^2.1492.0",
|
|
52
53
|
"follow-redirects": "^1.2.4",
|
|
53
54
|
"fs-extra": "^5.0.0",
|
|
55
|
+
"got": "^14.2.1",
|
|
54
56
|
"is-ip": "^3.1.0",
|
|
55
57
|
"jsonpath-plus": "^3.0.0",
|
|
56
58
|
"lodash": "^4.17.21",
|
|
@@ -68,5 +70,5 @@
|
|
|
68
70
|
"@types/node-forge": "^0.9.5",
|
|
69
71
|
"@types/url-join": "^4.0.0"
|
|
70
72
|
},
|
|
71
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "e8731c150ac49c1bab058183a7a5d91464e1701c"
|
|
72
74
|
}
|