@ant-design/cli 6.5.2 → 6.5.3
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/data/v6.5.3.json.gz +0 -0
- package/data/v6.json.gz +0 -0
- package/data/versions.json +1 -1
- package/dist/index.js +12 -6
- package/package.json +1 -1
- package/data/v6.5.2.json.gz +0 -0
|
Binary file
|
package/data/v6.json.gz
CHANGED
|
Binary file
|
package/data/versions.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -8095,6 +8095,7 @@ var require_fast_uri = __commonJS({
|
|
|
8095
8095
|
return uriTokens.join("");
|
|
8096
8096
|
}
|
|
8097
8097
|
var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
8098
|
+
var AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
|
|
8098
8099
|
function getParseError(parsed, matches) {
|
|
8099
8100
|
if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
|
|
8100
8101
|
return 'URI path must start with "/" when authority is present.';
|
|
@@ -8124,6 +8125,11 @@ var require_fast_uri = __commonJS({
|
|
|
8124
8125
|
uri = "//" + uri;
|
|
8125
8126
|
}
|
|
8126
8127
|
}
|
|
8128
|
+
const authorityMatch = uri.match(AUTHORITY_PREFIX);
|
|
8129
|
+
if (authorityMatch !== null && authorityMatch[1].indexOf("\\") !== -1) {
|
|
8130
|
+
parsed.error = "URI authority must not contain a literal backslash.";
|
|
8131
|
+
malformedAuthorityOrPort = true;
|
|
8132
|
+
}
|
|
8127
8133
|
const matches = uri.match(URI_PARSE);
|
|
8128
8134
|
if (matches) {
|
|
8129
8135
|
parsed.scheme = matches[1];
|
|
@@ -8167,7 +8173,7 @@ var require_fast_uri = __commonJS({
|
|
|
8167
8173
|
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
8168
8174
|
if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
8169
8175
|
try {
|
|
8170
|
-
parsed.host = URL
|
|
8176
|
+
parsed.host = new URL("http://" + parsed.host).hostname;
|
|
8171
8177
|
} catch (e) {
|
|
8172
8178
|
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
|
|
8173
8179
|
}
|
|
@@ -19545,7 +19551,7 @@ function collectAntdEnv(cwd, versionOverride) {
|
|
|
19545
19551
|
function collectCliEnv() {
|
|
19546
19552
|
let cliVersion;
|
|
19547
19553
|
try {
|
|
19548
|
-
cliVersion = "6.5.
|
|
19554
|
+
cliVersion = "6.5.3";
|
|
19549
19555
|
} catch (err) {
|
|
19550
19556
|
console.error("Failed to get CLI version:", err);
|
|
19551
19557
|
cliVersion = "unknown";
|
|
@@ -21758,7 +21764,7 @@ function printUpdateNotice(currentVersion, latestVersion) {
|
|
|
21758
21764
|
}
|
|
21759
21765
|
async function checkForUpdate() {
|
|
21760
21766
|
if (process.env.CI || process.env.NO_UPDATE_CHECK) return;
|
|
21761
|
-
const currentVersion = "6.5.
|
|
21767
|
+
const currentVersion = "6.5.3";
|
|
21762
21768
|
if (!valid(currentVersion)) return;
|
|
21763
21769
|
const now = Date.now();
|
|
21764
21770
|
const cache = cacheStore.get("updateCache") ?? null;
|
|
@@ -21811,7 +21817,7 @@ function runUpgrade(cmd, args) {
|
|
|
21811
21817
|
function registerUpgradeCommand(program2) {
|
|
21812
21818
|
program2.command("upgrade").description("Upgrade the CLI to the latest version").action(async () => {
|
|
21813
21819
|
const opts = program2.opts();
|
|
21814
|
-
const currentVersion = "6.5.
|
|
21820
|
+
const currentVersion = "6.5.3";
|
|
21815
21821
|
let latestVersion;
|
|
21816
21822
|
try {
|
|
21817
21823
|
latestVersion = await fetchLatestVersion();
|
|
@@ -36258,7 +36264,7 @@ function registerMcpCommand(program2) {
|
|
|
36258
36264
|
const opts = program2.opts();
|
|
36259
36265
|
const versionInfo = detectVersion(opts.version);
|
|
36260
36266
|
const server = new Server(
|
|
36261
|
-
{ name: "antd", version: "6.5.
|
|
36267
|
+
{ name: "antd", version: "6.5.3" },
|
|
36262
36268
|
{ capabilities: { tools: {}, prompts: {} } }
|
|
36263
36269
|
);
|
|
36264
36270
|
const handleTool = createToolHandler({
|
|
@@ -36937,7 +36943,7 @@ ${wordmarkLines.join("\n")}`;
|
|
|
36937
36943
|
}
|
|
36938
36944
|
|
|
36939
36945
|
// src/index.ts
|
|
36940
|
-
var CLI_VERSION = "6.5.
|
|
36946
|
+
var CLI_VERSION = "6.5.3";
|
|
36941
36947
|
function createProgram() {
|
|
36942
36948
|
const program2 = new Command();
|
|
36943
36949
|
let displayedRootHelp = false;
|
package/package.json
CHANGED
package/data/v6.5.2.json.gz
DELETED
|
Binary file
|