@eudiplo/cli 9.0.0-main.410b294 → 9.0.0-main.455da95

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