@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.js
CHANGED
|
@@ -503,6 +503,7 @@ async function resolvePort(options = {}) {
|
|
|
503
503
|
return preferred;
|
|
504
504
|
}
|
|
505
505
|
throw new PortConflictError(preferred);
|
|
506
|
+
// @ts-expect-error -- TS7029: the fall-through to 'auto' (no range given) is intended
|
|
506
507
|
case "range":
|
|
507
508
|
if (range) {
|
|
508
509
|
const [start, end = start + 100] = range;
|
|
@@ -887,8 +888,8 @@ function validateServiceConfig(name, config) {
|
|
|
887
888
|
if (!isComposeServiceName(name)) {
|
|
888
889
|
errors.push({
|
|
889
890
|
code: "INVALID_SERVICE_NAME",
|
|
890
|
-
message: `Invalid service name '${name}'. Must start with a letter or digit and contain only letters, digits, '.', '_' and '-'.`,
|
|
891
|
-
path: `services.${name}`,
|
|
891
|
+
message: `Invalid service name '${String(name)}'. Must start with a letter or digit and contain only letters, digits, '.', '_' and '-'.`,
|
|
892
|
+
path: `services.${String(name)}`,
|
|
892
893
|
value: name
|
|
893
894
|
});
|
|
894
895
|
}
|
|
@@ -905,6 +906,7 @@ function validateServiceConfig(name, config) {
|
|
|
905
906
|
if (svc.version !== void 0 && !isVersion(svc.version)) {
|
|
906
907
|
errors.push({
|
|
907
908
|
code: "INVALID_VERSION",
|
|
909
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string -- echoes whatever invalid value was given
|
|
908
910
|
message: `Invalid version '${String(svc.version)}' for service '${name}'. Must be a valid Docker image tag.`,
|
|
909
911
|
path: `services.${name}.version`,
|
|
910
912
|
value: svc.version
|
|
@@ -913,6 +915,7 @@ function validateServiceConfig(name, config) {
|
|
|
913
915
|
if (svc.image !== void 0 && !isDockerImage(svc.image)) {
|
|
914
916
|
errors.push({
|
|
915
917
|
code: "INVALID_IMAGE",
|
|
918
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string -- echoes whatever invalid value was given
|
|
916
919
|
message: `Invalid image '${String(svc.image)}' for service '${name}'. Must be a Docker image reference such as 'elasticsearch:8.11.0'.`,
|
|
917
920
|
path: `services.${name}.image`,
|
|
918
921
|
value: svc.image
|