mcp-scraper 0.57.2 → 0.57.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/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/dist/bin/api-server.cjs +16 -4
- package/dist/bin/api-server.cjs.map +1 -1
- package/dist/bin/api-server.js +1 -1
- package/dist/bin/mcp-scraper-cli.cjs +1 -1
- package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
- package/dist/bin/mcp-scraper-cli.js +1 -1
- package/dist/bin/mcp-scraper-install.cjs +1 -1
- package/dist/bin/mcp-scraper-install.cjs.map +1 -1
- package/dist/bin/mcp-scraper-install.js +1 -1
- package/dist/bin/mcp-stdio-server.cjs +3 -3
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +2 -2
- package/dist/chunk-LHH3GX3W.js +7 -0
- package/dist/chunk-LHH3GX3W.js.map +1 -0
- package/dist/{chunk-67JUTUQD.js → chunk-QSUSTYB3.js} +4 -4
- package/dist/chunk-QSUSTYB3.js.map +1 -0
- package/dist/{server-OZJXK7AB.js → server-EP2SK2ID.js} +16 -4
- package/dist/server-EP2SK2ID.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-67JUTUQD.js.map +0 -1
- package/dist/chunk-QN4W5SX6.js +0 -7
- package/dist/chunk-QN4W5SX6.js.map +0 -1
- package/dist/server-OZJXK7AB.js.map +0 -1
|
@@ -169,7 +169,7 @@ import {
|
|
|
169
169
|
resolveDeploymentProfile,
|
|
170
170
|
resolveLocalSourcebookSchemaType,
|
|
171
171
|
transcribeMediaUrl
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-QSUSTYB3.js";
|
|
173
173
|
import {
|
|
174
174
|
auditImageUrls,
|
|
175
175
|
auditImages,
|
|
@@ -225,7 +225,7 @@ import {
|
|
|
225
225
|
} from "./chunk-FG6LJGJ7.js";
|
|
226
226
|
import {
|
|
227
227
|
PACKAGE_VERSION
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-LHH3GX3W.js";
|
|
229
229
|
import {
|
|
230
230
|
abandonExtractSettlement,
|
|
231
231
|
countSuccessfulPages,
|
|
@@ -12884,6 +12884,7 @@ function mapSubmission(row) {
|
|
|
12884
12884
|
businessName: String(rowValue(row, "business_name")),
|
|
12885
12885
|
websiteUrl: String(rowValue(row, "website_url")),
|
|
12886
12886
|
status: String(rowValue(row, "status")),
|
|
12887
|
+
acquisitionError: rowValue(row, "acquisition_error") == null ? null : String(rowValue(row, "acquisition_error")),
|
|
12887
12888
|
draftRevision: Number(rowValue(row, "draft_revision")),
|
|
12888
12889
|
publishedRevision: rowValue(row, "published_revision") == null ? null : Number(rowValue(row, "published_revision")),
|
|
12889
12890
|
coverage: parseJson2(rowValue(row, "coverage_json")),
|
|
@@ -14576,6 +14577,15 @@ function nameOverlap(left, right) {
|
|
|
14576
14577
|
const intersection = [...a].filter((token6) => b.has(token6)).length;
|
|
14577
14578
|
return intersection / Math.max(a.size, b.size);
|
|
14578
14579
|
}
|
|
14580
|
+
function nameContainment(left, right) {
|
|
14581
|
+
const a = tokens(left);
|
|
14582
|
+
const b = tokens(right);
|
|
14583
|
+
if (!a.size || !b.size) return 0;
|
|
14584
|
+
const smaller = a.size <= b.size ? a : b;
|
|
14585
|
+
if (smaller.size < 2) return 0;
|
|
14586
|
+
const intersection = [...a].filter((token6) => b.has(token6)).length;
|
|
14587
|
+
return intersection / smaller.size;
|
|
14588
|
+
}
|
|
14579
14589
|
function validateLocalSourcebookMapsIdentity(submission, maps) {
|
|
14580
14590
|
const expectedHost = host(submission.websiteUrl);
|
|
14581
14591
|
const mapsHost = host(maps.website);
|
|
@@ -14585,7 +14595,9 @@ function validateLocalSourcebookMapsIdentity(submission, maps) {
|
|
|
14585
14595
|
if (mapsHost && expectedHost && mapsHost !== expectedHost && !mapsHost.endsWith(`.${expectedHost}`) && !expectedHost.endsWith(`.${mapsHost}`)) {
|
|
14586
14596
|
throw new Error(`Exact-place match rejected: Google Maps linked ${mapsHost}, not the submitted domain ${expectedHost}.`);
|
|
14587
14597
|
}
|
|
14588
|
-
|
|
14598
|
+
const containment = nameContainment(submission.businessName, actualName);
|
|
14599
|
+
const domainConfirmsIdentity = Boolean(mapsHost && expectedHost);
|
|
14600
|
+
if (overlap < 0.6 && containment < 0.9 && !domainConfirmsIdentity) {
|
|
14589
14601
|
throw new Error(`Exact-place match rejected: Google Maps returned \u201C${actualName},\u201D which does not sufficiently match \u201C${submission.businessName}.\u201D`);
|
|
14590
14602
|
}
|
|
14591
14603
|
if (addressState && addressState !== submission.state.toLowerCase()) {
|
|
@@ -47462,4 +47474,4 @@ app.get("/blog/:slug/", (c) => {
|
|
|
47462
47474
|
export {
|
|
47463
47475
|
app
|
|
47464
47476
|
};
|
|
47465
|
-
//# sourceMappingURL=server-
|
|
47477
|
+
//# sourceMappingURL=server-EP2SK2ID.js.map
|