@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 +1 -1
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-YOEEWHSQ.js → chunk-YMVBC7UB.js} +26 -14
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/apps/product-cli/package.json +1 -1
- package/src/apps/product-cli/src/repository-init.ts +4 -2
- package/src/packages/sdk-ts/package.json +1 -1
package/README.md
CHANGED
package/THIRD_PARTY_NOTICES.md
CHANGED
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-
|
|
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.
|
|
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.
|
|
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(
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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
|
-
|
|
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.
|
|
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
|
|
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
package/package.json
CHANGED
|
@@ -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
|
|
296
|
-
|
|
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) => {
|