@amerged/ohmyhost-cli 0.1.25 → 0.1.26

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @amerged/ohmyhost-cli
2
2
 
3
- ohmyho.st cli client, version 0.1.25.
3
+ ohmyho.st cli client, version 0.1.26.
4
4
 
5
5
  ```sh
6
6
  npm install --global @amerged/ohmyhost-cli
@@ -57,7 +57,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
57
57
  SOFTWARE.
58
58
 
59
59
 
60
- ## fast-uri 3.1.6
60
+ ## fast-uri 3.1.7
61
61
 
62
62
  ### LICENSE
63
63
 
package/dist/bin.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { createRequire as __ohmyhostCreateRequire } from "node:module"; const require = __ohmyhostCreateRequire(import.meta.url);
3
3
  import {
4
4
  runProductionCli
5
- } from "./chunk-YOEEWHSQ.js";
5
+ } from "./chunk-YMVBC7UB.js";
6
6
  import "./chunk-7D2RFLWM.js";
7
7
 
8
8
  // apps/product-cli/dist/bin.js
@@ -3080,12 +3080,13 @@ var require_data = __commonJS({
3080
3080
  }
3081
3081
  });
3082
3082
 
3083
- // node_modules/.pnpm/fast-uri@3.1.6/node_modules/fast-uri/lib/utils.js
3083
+ // node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/lib/utils.js
3084
3084
  var require_utils = __commonJS({
3085
- "node_modules/.pnpm/fast-uri@3.1.6/node_modules/fast-uri/lib/utils.js"(exports, module) {
3085
+ "node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/lib/utils.js"(exports, module) {
3086
3086
  "use strict";
3087
3087
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
3088
3088
  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);
3089
+ var isPort = RegExp.prototype.test.bind(/^\d*$/u);
3089
3090
  var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
3090
3091
  var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
3091
3092
  var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
@@ -3551,8 +3552,12 @@ var require_utils = __commonJS({
3551
3552
  uriTokens.push(host);
3552
3553
  }
3553
3554
  if (typeof component.port === "number" || typeof component.port === "string") {
3555
+ const port = String(component.port);
3556
+ if (!isPort(port)) {
3557
+ throw new TypeError("URI port is malformed.");
3558
+ }
3554
3559
  uriTokens.push(":");
3555
- uriTokens.push(String(component.port));
3560
+ uriTokens.push(port);
3556
3561
  }
3557
3562
  return uriTokens.length ? uriTokens.join("") : void 0;
3558
3563
  }
@@ -3577,9 +3582,9 @@ var require_utils = __commonJS({
3577
3582
  }
3578
3583
  });
3579
3584
 
3580
- // node_modules/.pnpm/fast-uri@3.1.6/node_modules/fast-uri/lib/schemes.js
3585
+ // node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/lib/schemes.js
3581
3586
  var require_schemes = __commonJS({
3582
- "node_modules/.pnpm/fast-uri@3.1.6/node_modules/fast-uri/lib/schemes.js"(exports, module) {
3587
+ "node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/lib/schemes.js"(exports, module) {
3583
3588
  "use strict";
3584
3589
  var { isUUID } = require_utils();
3585
3590
  var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
@@ -3788,9 +3793,9 @@ var require_schemes = __commonJS({
3788
3793
  }
3789
3794
  });
3790
3795
 
3791
- // node_modules/.pnpm/fast-uri@3.1.6/node_modules/fast-uri/index.js
3796
+ // node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/index.js
3792
3797
  var require_fast_uri = __commonJS({
3793
- "node_modules/.pnpm/fast-uri@3.1.6/node_modules/fast-uri/index.js"(exports, module) {
3798
+ "node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/index.js"(exports, module) {
3794
3799
  "use strict";
3795
3800
  var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3796
3801
  var { SCHEMES, getSchemeHandler } = require_schemes();
@@ -3995,12 +4000,15 @@ var require_fast_uri = __commonJS({
3995
4000
  }
3996
4001
  return false;
3997
4002
  }
4003
+ function isIPLiteral(host) {
4004
+ return host[0] === "[" && host[host.length - 1] === "]";
4005
+ }
3998
4006
  function hasMalformedComponentPercentEncoding(matches) {
3999
4007
  const host = matches[4];
4000
- return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !(host[0] === "[" && host[host.length - 1] === "]") && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
4008
+ return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
4001
4009
  }
4002
4010
  function canonicalizeHost(parsed, options, schemeHandler, isIP) {
4003
- if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && parsed.host[0] !== "[" && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
4011
+ if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
4004
4012
  try {
4005
4013
  parsed.host = new URL("http://" + parsed.host).hostname;
4006
4014
  } catch (e) {
@@ -4087,10 +4095,11 @@ var require_fast_uri = __commonJS({
4087
4095
  if (parsed.host) {
4088
4096
  const ipv4result = isIPv4(parsed.host);
4089
4097
  if (ipv4result === false) {
4090
- const bracketedIPLiteral = parsed.host[0] === "[" && parsed.host[parsed.host.length - 1] === "]";
4098
+ const bracketedIPLiteral = isIPLiteral(parsed.host);
4099
+ const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
4091
4100
  const ipv6result = normalizeIPv6(parsed.host);
4092
4101
  isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
4093
- malformedIPLiteral = bracketedIPLiteral && ipv6result.error === true;
4102
+ malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
4094
4103
  parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
4095
4104
  if (malformedIPLiteral) {
4096
4105
  parsed.error = parsed.error || "URI host is malformed.";
@@ -4113,7 +4122,9 @@ var require_fast_uri = __commonJS({
4113
4122
  parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
4114
4123
  }
4115
4124
  const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
4116
- malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
4125
+ if (!malformedIPLiteral) {
4126
+ malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
4127
+ }
4117
4128
  if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
4118
4129
  if (uri.indexOf("%") !== -1) {
4119
4130
  if (parsed.host !== void 0 && !malformedIPLiteral) {
@@ -18936,7 +18947,7 @@ function exact2(v, keys) {
18936
18947
  // apps/product-cli/package.json
18937
18948
  var package_default = {
18938
18949
  name: "@ohmyhost/product-cli",
18939
- version: "0.1.25",
18950
+ version: "0.1.26",
18940
18951
  private: true,
18941
18952
  ohmyhost: {
18942
18953
  deployment: "production",
@@ -25227,7 +25238,8 @@ async function initializeRepository(input) {
25227
25238
  const project = projectName(input.project, packageJson);
25228
25239
  const repositoryAdmissionBlockers = repositoryBlockers(packageJson, framework, nextStandaloneOutput, tanStackRuntime, applicationFiles, packageManagerAdmission, frameworkConfigs, compatibility, existingConfiguration);
25229
25240
  const supabaseMigrationCount = applicationFiles.filter((path) => /^supabase\/migrations\/[^/]+\.sql$/u.test(path)).length;
25230
- const postgresMigrationCount = applicationFiles.filter((path) => /^postgres\/migrations\/[^/]+\.sql$/u.test(path)).length;
25241
+ const postgresMigrationRoot = existingConfiguration?.database?.migrations ?? "postgres/migrations";
25242
+ const postgresMigrationCount = applicationFiles.filter((path) => path.startsWith(`${postgresMigrationRoot}/`) && path.endsWith(".sql")).length;
25231
25243
  const edgeFunctionNames = new Set(applicationFiles.flatMap((path) => {
25232
25244
  const match = path.match(/^supabase\/functions\/([^/]+)\//u);
25233
25245
  return match?.[1] === void 0 || match[1].startsWith("_") ? [] : [match[1]];
package/dist/index.js CHANGED
@@ -86,7 +86,7 @@ import {
86
86
  selectWorkspace,
87
87
  verifiedUserId,
88
88
  workspaceOf
89
- } from "./chunk-YOEEWHSQ.js";
89
+ } from "./chunk-YMVBC7UB.js";
90
90
  import {
91
91
  CredentialStoreIntegrityError,
92
92
  CredentialStoreUnavailableError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amerged/ohmyhost-cli",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=22"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohmyhost/product-cli",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "private": true,
5
5
  "ohmyhost": {
6
6
  "deployment": "production",
@@ -292,8 +292,10 @@ export async function initializeRepository(
292
292
  const supabaseMigrationCount = applicationFiles.filter((path) =>
293
293
  /^supabase\/migrations\/[^/]+\.sql$/u.test(path),
294
294
  ).length;
295
- const postgresMigrationCount = applicationFiles.filter((path) =>
296
- /^postgres\/migrations\/[^/]+\.sql$/u.test(path),
295
+ const postgresMigrationRoot =
296
+ existingConfiguration?.database?.migrations ?? "postgres/migrations";
297
+ const postgresMigrationCount = applicationFiles.filter(
298
+ (path) => path.startsWith(`${postgresMigrationRoot}/`) && path.endsWith(".sql"),
297
299
  ).length;
298
300
  const edgeFunctionNames = new Set(
299
301
  applicationFiles.flatMap((path) => {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohmyhost/sdk-ts",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {