@oxog/dockcraft 1.1.1 → 1.2.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/CHANGELOG.md +14 -0
- package/dist/cli/index.js +7 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +11 -7
package/dist/index.cjs
CHANGED
|
@@ -549,6 +549,7 @@ async function resolvePort(options = {}) {
|
|
|
549
549
|
return preferred;
|
|
550
550
|
}
|
|
551
551
|
throw new PortConflictError(preferred);
|
|
552
|
+
// @ts-expect-error -- TS7029: the fall-through to 'auto' (no range given) is intended
|
|
552
553
|
case "range":
|
|
553
554
|
if (range) {
|
|
554
555
|
const [start, end = start + 100] = range;
|
|
@@ -933,8 +934,8 @@ function validateServiceConfig(name, config) {
|
|
|
933
934
|
if (!isComposeServiceName(name)) {
|
|
934
935
|
errors.push({
|
|
935
936
|
code: "INVALID_SERVICE_NAME",
|
|
936
|
-
message: `Invalid service name '${name}'. Must start with a letter or digit and contain only letters, digits, '.', '_' and '-'.`,
|
|
937
|
-
path: `services.${name}`,
|
|
937
|
+
message: `Invalid service name '${String(name)}'. Must start with a letter or digit and contain only letters, digits, '.', '_' and '-'.`,
|
|
938
|
+
path: `services.${String(name)}`,
|
|
938
939
|
value: name
|
|
939
940
|
});
|
|
940
941
|
}
|
|
@@ -951,6 +952,7 @@ function validateServiceConfig(name, config) {
|
|
|
951
952
|
if (svc.version !== void 0 && !isVersion(svc.version)) {
|
|
952
953
|
errors.push({
|
|
953
954
|
code: "INVALID_VERSION",
|
|
955
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string -- echoes whatever invalid value was given
|
|
954
956
|
message: `Invalid version '${String(svc.version)}' for service '${name}'. Must be a valid Docker image tag.`,
|
|
955
957
|
path: `services.${name}.version`,
|
|
956
958
|
value: svc.version
|
|
@@ -959,6 +961,7 @@ function validateServiceConfig(name, config) {
|
|
|
959
961
|
if (svc.image !== void 0 && !isDockerImage(svc.image)) {
|
|
960
962
|
errors.push({
|
|
961
963
|
code: "INVALID_IMAGE",
|
|
964
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string -- echoes whatever invalid value was given
|
|
962
965
|
message: `Invalid image '${String(svc.image)}' for service '${name}'. Must be a Docker image reference such as 'elasticsearch:8.11.0'.`,
|
|
963
966
|
path: `services.${name}.image`,
|
|
964
967
|
value: svc.image
|