@eudiplo/cli 9.0.0-main.455da95 → 9.0.0-main.79e4151

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.
Files changed (2) hide show
  1. package/dist/index.js +35 -23
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -3099,12 +3099,13 @@ var require_data = __commonJS({
3099
3099
  }
3100
3100
  });
3101
3101
 
3102
- // ../../node_modules/.pnpm/fast-uri@3.1.6/node_modules/fast-uri/lib/utils.js
3102
+ // ../../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/utils.js
3103
3103
  var require_utils = __commonJS({
3104
- "../../node_modules/.pnpm/fast-uri@3.1.6/node_modules/fast-uri/lib/utils.js"(exports, module) {
3104
+ "../../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/utils.js"(exports, module) {
3105
3105
  "use strict";
3106
3106
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
3107
3107
  var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
3108
+ var isPort = RegExp.prototype.test.bind(/^\d*$/u);
3108
3109
  var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
3109
3110
  var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
3110
3111
  var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
@@ -3570,8 +3571,12 @@ var require_utils = __commonJS({
3570
3571
  uriTokens.push(host);
3571
3572
  }
3572
3573
  if (typeof component.port === "number" || typeof component.port === "string") {
3574
+ const port = String(component.port);
3575
+ if (!isPort(port)) {
3576
+ throw new TypeError("URI port is malformed.");
3577
+ }
3573
3578
  uriTokens.push(":");
3574
- uriTokens.push(String(component.port));
3579
+ uriTokens.push(port);
3575
3580
  }
3576
3581
  return uriTokens.length ? uriTokens.join("") : void 0;
3577
3582
  }
@@ -3596,9 +3601,9 @@ var require_utils = __commonJS({
3596
3601
  }
3597
3602
  });
3598
3603
 
3599
- // ../../node_modules/.pnpm/fast-uri@3.1.6/node_modules/fast-uri/lib/schemes.js
3604
+ // ../../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/schemes.js
3600
3605
  var require_schemes = __commonJS({
3601
- "../../node_modules/.pnpm/fast-uri@3.1.6/node_modules/fast-uri/lib/schemes.js"(exports, module) {
3606
+ "../../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/schemes.js"(exports, module) {
3602
3607
  "use strict";
3603
3608
  var { isUUID } = require_utils();
3604
3609
  var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
@@ -3807,9 +3812,9 @@ var require_schemes = __commonJS({
3807
3812
  }
3808
3813
  });
3809
3814
 
3810
- // ../../node_modules/.pnpm/fast-uri@3.1.6/node_modules/fast-uri/index.js
3815
+ // ../../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/index.js
3811
3816
  var require_fast_uri = __commonJS({
3812
- "../../node_modules/.pnpm/fast-uri@3.1.6/node_modules/fast-uri/index.js"(exports, module) {
3817
+ "../../node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/index.js"(exports, module) {
3813
3818
  "use strict";
3814
3819
  var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3815
3820
  var { SCHEMES, getSchemeHandler } = require_schemes();
@@ -4014,12 +4019,15 @@ var require_fast_uri = __commonJS({
4014
4019
  }
4015
4020
  return false;
4016
4021
  }
4022
+ function isIPLiteral(host) {
4023
+ return host[0] === "[" && host[host.length - 1] === "]";
4024
+ }
4017
4025
  function hasMalformedComponentPercentEncoding(matches) {
4018
4026
  const host = matches[4];
4019
- return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !(host[0] === "[" && host[host.length - 1] === "]") && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
4027
+ return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
4020
4028
  }
4021
4029
  function canonicalizeHost(parsed, options, schemeHandler, isIP) {
4022
- if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && parsed.host[0] !== "[" && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
4030
+ if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
4023
4031
  try {
4024
4032
  parsed.host = new URL("http://" + parsed.host).hostname;
4025
4033
  } catch (e) {
@@ -4106,10 +4114,11 @@ var require_fast_uri = __commonJS({
4106
4114
  if (parsed.host) {
4107
4115
  const ipv4result = isIPv4(parsed.host);
4108
4116
  if (ipv4result === false) {
4109
- const bracketedIPLiteral = parsed.host[0] === "[" && parsed.host[parsed.host.length - 1] === "]";
4117
+ const bracketedIPLiteral = isIPLiteral(parsed.host);
4118
+ const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
4110
4119
  const ipv6result = normalizeIPv6(parsed.host);
4111
4120
  isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
4112
- malformedIPLiteral = bracketedIPLiteral && ipv6result.error === true;
4121
+ malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
4113
4122
  parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
4114
4123
  if (malformedIPLiteral) {
4115
4124
  parsed.error = parsed.error || "URI host is malformed.";
@@ -4132,14 +4141,17 @@ var require_fast_uri = __commonJS({
4132
4141
  parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
4133
4142
  }
4134
4143
  const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
4135
- malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
4136
- if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
4137
- if (uri.indexOf("%") !== -1) {
4138
- if (parsed.host !== void 0 && !malformedIPLiteral) {
4139
- const host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
4140
- parsed.host = reescapeHostDelimiters(host, isIP);
4141
- }
4144
+ if (!malformedIPLiteral) {
4145
+ malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
4146
+ }
4147
+ if (uri.indexOf("%") !== -1 && parsed.host !== void 0 && !malformedIPLiteral) {
4148
+ let host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
4149
+ if (!isIP) {
4150
+ host = normalizePercentEncoding(host.toLowerCase());
4142
4151
  }
4152
+ parsed.host = reescapeHostDelimiters(host, isIP);
4153
+ }
4154
+ if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
4143
4155
  if (parsed.path) {
4144
4156
  parsed.path = normalizePathEncoding(parsed.path);
4145
4157
  }
@@ -24917,7 +24929,7 @@ function createDeploymentCommands(context, setExitCode) {
24917
24929
  // package.json
24918
24930
  var package_default = {
24919
24931
  name: "@eudiplo/cli",
24920
- version: "9.0.0-main.455da95",
24932
+ version: "9.0.0-main.79e4151",
24921
24933
  description: "Deployment-aware command line tools for EUDIPLO",
24922
24934
  private: false,
24923
24935
  type: "module",
@@ -24977,12 +24989,12 @@ var package_default = {
24977
24989
  "jsonc-parser": "^3.3.1"
24978
24990
  },
24979
24991
  devDependencies: {
24980
- "@biomejs/biome": "2.5.14",
24981
- "@types/node": "^26.4.0",
24992
+ "@biomejs/biome": "2.5.15",
24993
+ "@types/node": "^26.6.4",
24982
24994
  esbuild: "^0.28.2",
24983
- tsx: "^4.23.13",
24995
+ tsx: "^4.23.15",
24984
24996
  typescript: "^7.0.2",
24985
- vitest: "5.0.2"
24997
+ vitest: "5.0.3"
24986
24998
  }
24987
24999
  };
24988
25000
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eudiplo/cli",
3
- "version": "9.0.0-main.455da95",
3
+ "version": "9.0.0-main.79e4151",
4
4
  "description": "Deployment-aware command line tools for EUDIPLO",
5
5
  "private": false,
6
6
  "type": "module",
@@ -59,11 +59,11 @@
59
59
  "jsonc-parser": "^3.3.1"
60
60
  },
61
61
  "devDependencies": {
62
- "@biomejs/biome": "2.5.14",
63
- "@types/node": "^26.4.0",
62
+ "@biomejs/biome": "2.5.15",
63
+ "@types/node": "^26.6.4",
64
64
  "esbuild": "^0.28.2",
65
- "tsx": "^4.23.13",
65
+ "tsx": "^4.23.15",
66
66
  "typescript": "^7.0.2",
67
- "vitest": "5.0.2"
67
+ "vitest": "5.0.3"
68
68
  }
69
69
  }