@datadog/datadog-ci-plugin-container-app 5.17.0 → 5.18.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/dist/bundle.js +34 -16
- package/dist/bundle.js.map +1 -1
- package/package.json +2 -2
package/dist/bundle.js
CHANGED
|
@@ -53125,7 +53125,7 @@ var require_source$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
53125
53125
|
var require_package$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
53126
53126
|
module.exports = {
|
|
53127
53127
|
"name": "@datadog/datadog-ci-base",
|
|
53128
|
-
"version": "5.
|
|
53128
|
+
"version": "5.18.0",
|
|
53129
53129
|
"description": "Base package for Datadog CI",
|
|
53130
53130
|
"license": "Apache-2.0",
|
|
53131
53131
|
"keywords": ["datadog", "datadog-ci"],
|
|
@@ -53303,6 +53303,7 @@ var require_is_standalone_binary = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
53303
53303
|
const { isSea } = yield import("node:sea");
|
|
53304
53304
|
return isSea();
|
|
53305
53305
|
} catch (_a) {
|
|
53306
|
+
if (process.pkg !== void 0) return true;
|
|
53306
53307
|
return false;
|
|
53307
53308
|
}
|
|
53308
53309
|
});
|
|
@@ -54255,7 +54256,7 @@ var require_plugin = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
54255
54256
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
54256
54257
|
};
|
|
54257
54258
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54258
|
-
exports.getTempPath = exports.VERSION_OVERRIDE_REGEX = exports.scopeToPackageName = exports.importInstallPkg = exports.installPlugin = exports.checkPlugin = exports.listAllPlugins = exports.executePluginCommand = void 0;
|
|
54259
|
+
exports.getTempPath = exports.VERSION_OVERRIDE_REGEX = exports.scopeToPackageName = exports.importInstallPkg = exports.installPlugin = exports.checkPlugin = exports.listAllPlugins = exports.normalizePluginSubmodule = exports.executePluginCommand = void 0;
|
|
54259
54260
|
const node_child_process_1 = require("node:child_process");
|
|
54260
54261
|
const node_path_1 = __importDefault(require("node:path"));
|
|
54261
54262
|
const node_url_1 = __importDefault(require("node:url"));
|
|
@@ -54296,6 +54297,15 @@ var require_plugin = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
54296
54297
|
}
|
|
54297
54298
|
});
|
|
54298
54299
|
exports.executePluginCommand = executePluginCommand;
|
|
54300
|
+
const normalizePluginSubmodule = (submodule) => {
|
|
54301
|
+
if (isPluginSubmodule(submodule)) return submodule;
|
|
54302
|
+
if (typeof submodule === "object" && submodule && "default" in submodule) {
|
|
54303
|
+
const defaultExport = submodule.default;
|
|
54304
|
+
if (isPluginSubmodule(defaultExport)) return defaultExport;
|
|
54305
|
+
}
|
|
54306
|
+
return submodule;
|
|
54307
|
+
};
|
|
54308
|
+
exports.normalizePluginSubmodule = normalizePluginSubmodule;
|
|
54299
54309
|
const listAllPlugins = () => {
|
|
54300
54310
|
return Object.keys(package_json_1.peerDependencies);
|
|
54301
54311
|
};
|
|
@@ -54458,6 +54468,21 @@ var require_plugin = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
54458
54468
|
}
|
|
54459
54469
|
patchModulePaths();
|
|
54460
54470
|
yield handlePluginAutoInstall(scope);
|
|
54471
|
+
const submoduleName = `@datadog/datadog-ci-plugin-${scope}/commands/${command}`;
|
|
54472
|
+
debug("Resolving submodule:", submoduleName);
|
|
54473
|
+
let submoduleResolveError;
|
|
54474
|
+
let resolvedSubmodulePath;
|
|
54475
|
+
try {
|
|
54476
|
+
resolvedSubmodulePath = require.resolve(submoduleName);
|
|
54477
|
+
} catch (error) {
|
|
54478
|
+
debug(`Could not require.resolve() the ${submoduleName} submodule: ${error}`);
|
|
54479
|
+
submoduleResolveError = error;
|
|
54480
|
+
}
|
|
54481
|
+
if (resolvedSubmodulePath) {
|
|
54482
|
+
const submodulePath = node_url_1.default.pathToFileURL(resolvedSubmodulePath).href;
|
|
54483
|
+
debug("Importing submodule:", submodulePath);
|
|
54484
|
+
return (0, exports.normalizePluginSubmodule)(yield import(submodulePath));
|
|
54485
|
+
}
|
|
54461
54486
|
const pluginPackage = `@datadog/datadog-ci-plugin-${scope}`;
|
|
54462
54487
|
try {
|
|
54463
54488
|
const submodule = (_b = require(pluginPackage).commands) === null || _b === void 0 ? void 0 : _b[command];
|
|
@@ -54466,19 +54491,9 @@ var require_plugin = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
54466
54491
|
return submodule;
|
|
54467
54492
|
}
|
|
54468
54493
|
} catch (error) {
|
|
54469
|
-
debug("Plugin bundle load failed
|
|
54470
|
-
}
|
|
54471
|
-
const submoduleName = `@datadog/datadog-ci-plugin-${scope}/commands/${command}`;
|
|
54472
|
-
debug("Resolving submodule:", submoduleName);
|
|
54473
|
-
let submodulePath = submoduleName;
|
|
54474
|
-
try {
|
|
54475
|
-
const resolvedPath = require.resolve(submoduleName);
|
|
54476
|
-
submodulePath = node_url_1.default.pathToFileURL(resolvedPath).href;
|
|
54477
|
-
} catch (error) {
|
|
54478
|
-
debug(`Could not require.resolve() the ${submoduleName} submodule: ${error}`);
|
|
54494
|
+
debug("Plugin bundle load failed:", error);
|
|
54479
54495
|
}
|
|
54480
|
-
|
|
54481
|
-
return yield import(submodulePath);
|
|
54496
|
+
throw submoduleResolveError;
|
|
54482
54497
|
});
|
|
54483
54498
|
const scopeToPackageName = (scope) => {
|
|
54484
54499
|
if (scope.match(/^@datadog\/datadog-ci-plugin-[a-z-]+$/)) return scope;
|
|
@@ -54498,6 +54513,9 @@ var require_plugin = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
54498
54513
|
const isValidScope = (scope) => {
|
|
54499
54514
|
return (0, exports.scopeToPackageName)(scope) in package_json_1.peerDependencies;
|
|
54500
54515
|
};
|
|
54516
|
+
const isPluginSubmodule = (submodule) => {
|
|
54517
|
+
return typeof submodule === "object" && !!submodule && "PluginCommand" in submodule && typeof submodule.PluginCommand === "function";
|
|
54518
|
+
};
|
|
54501
54519
|
/**
|
|
54502
54520
|
* @example "1.2.3"
|
|
54503
54521
|
* @example "file:./artifacts/@datadog-datadog-ci-base-20.tgz"
|
|
@@ -104069,8 +104087,6 @@ var require_datadog_route = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
104069
104087
|
exports.DATADOG_ROUTE_PATHS = [
|
|
104070
104088
|
"/api/intake/ci/custom_spans",
|
|
104071
104089
|
"/api/ui/support/serverless/flare",
|
|
104072
|
-
"/api/unstable/deployments/gates/evaluation",
|
|
104073
|
-
"/api/unstable/deployments/gates/evaluation/:evaluationId",
|
|
104074
104090
|
"/api/v1/validate",
|
|
104075
104091
|
"/api/v2/ci/deployments/correlate-image",
|
|
104076
104092
|
"/api/v2/ci/deployments/correlate",
|
|
@@ -104080,6 +104096,8 @@ var require_datadog_route = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
104080
104096
|
"/api/v2/cicovreprt",
|
|
104081
104097
|
"/api/v2/ciiac",
|
|
104082
104098
|
"/api/v2/cireport",
|
|
104099
|
+
"/api/v2/deployments/gates/evaluation",
|
|
104100
|
+
"/api/v2/deployments/gates/evaluation/:evaluationId",
|
|
104083
104101
|
"/api/v2/dora/deployment",
|
|
104084
104102
|
"/api/v2/git/repository/packfile",
|
|
104085
104103
|
"/api/v2/git/repository/search_commits",
|