codexapp 0.1.49 → 0.1.51
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/dist/index.html
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Codex Web Local</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-8tP34EwU.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-B8I4NE8D.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body class="bg-slate-950">
|
|
11
11
|
<div id="app"></div>
|
package/dist-cli/index.js
CHANGED
|
@@ -1284,11 +1284,12 @@ function parseGithubTrendingHtml(html, limit) {
|
|
|
1284
1284
|
const items = [];
|
|
1285
1285
|
let seq = Date.now();
|
|
1286
1286
|
for (const row of rows) {
|
|
1287
|
-
const
|
|
1287
|
+
const repoBlockMatch = row.match(/<h2[\s\S]*?<\/h2>/);
|
|
1288
|
+
const hrefMatch = repoBlockMatch?.[0]?.match(/href="\/([A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+)"/);
|
|
1288
1289
|
if (!hrefMatch) continue;
|
|
1289
1290
|
const fullName = hrefMatch[1] ?? "";
|
|
1290
1291
|
if (!fullName || items.some((item) => item.fullName === fullName)) continue;
|
|
1291
|
-
const descriptionMatch = row.match(/<p[^>]*>([\s\S]*?)<\/p>/);
|
|
1292
|
+
const descriptionMatch = row.match(/<p[^>]*class="[^"]*col-9[^"]*"[^>]*>([\s\S]*?)<\/p>/) ?? row.match(/<p[^>]*class="[^"]*color-fg-muted[^"]*"[^>]*>([\s\S]*?)<\/p>/) ?? row.match(/<p[^>]*>([\s\S]*?)<\/p>/);
|
|
1292
1293
|
const languageMatch = row.match(/programmingLanguage[^>]*>\s*([\s\S]*?)\s*<\/span>/);
|
|
1293
1294
|
const starsMatch = row.match(/href="\/[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+\/stargazers"[\s\S]*?>([\s\S]*?)<\/a>/);
|
|
1294
1295
|
const starsText = stripHtml(starsMatch?.[1] ?? "").replace(/,/g, "");
|