Skip to content

Commit 6f46c9f

Browse files
committed
feat: 补充地图服务识别规则
扩展 SaaS 地图服务规则,新增高德、百度、腾讯、HERE、MapTiler、TomTom、Azure Maps、ArcGIS、CARTO 等资源 URL 匹配。 补充对应技术链接,并将版本升至 1.1.10。 验证:npx prettier --write .;npx prettier --check .;pnpm run typecheck;pnpm run lint;JSON/正则全量校验;pnpm run build。
1 parent fe4cd02 commit 6f46c9f

3 files changed

Lines changed: 89 additions & 11 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stackprism",
33
"private": true,
4-
"version": "1.1.9",
4+
"version": "1.1.10",
55
"type": "module",
66
"description": "StackPrism 用于检测网页前端、后端、CDN、SaaS、广告营销、统计、登录、支付、网站程序和主题模板线索。",
77
"scripts": {

public/rules/page/saas-services-page.json

Lines changed: 75 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -260,16 +260,81 @@
260260
]
261261
},
262262
{
263-
"name": "Google Maps Platform",
264-
"kind": "地图服务",
265-
"patterns": ["maps\\.googleapis\\.com|maps\\.gstatic\\.com\\/maps"],
266-
"globals": ["google.maps"]
267-
},
268-
{
269-
"name": "Mapbox",
270-
"kind": "地图服务",
271-
"patterns": ["api\\.mapbox\\.com|mapbox-gl|mapbox\\.com"],
272-
"globals": ["mapboxgl"]
263+
"defaults": {
264+
"kind": "地图服务",
265+
"matchIn": ["resources"]
266+
},
267+
"rules": [
268+
{
269+
"name": "Google Maps Platform",
270+
"patterns": ["maps\\.googleapis\\.com|maps\\.gstatic\\.com\\/maps"],
271+
"globals": ["google.maps"]
272+
},
273+
{
274+
"name": "Mapbox",
275+
"patterns": ["api\\.mapbox\\.com|events\\.mapbox\\.com|mapbox-gl|mapbox\\.com"],
276+
"globals": ["mapboxgl"]
277+
},
278+
{
279+
"name": "AMap / 高德地图",
280+
"patterns": ["webapi\\.amap\\.com|restapi\\.amap\\.com|cache\\.amap\\.com"],
281+
"globals": ["AMap", "AMapUI"]
282+
},
283+
{
284+
"name": "Baidu Maps",
285+
"patterns": ["api\\.map\\.baidu\\.com|maponline\\d*\\.bdimg\\.com"],
286+
"globals": ["BMap", "BMapGL"]
287+
},
288+
{
289+
"name": "Tencent Maps",
290+
"patterns": ["map\\.qq\\.com/api/js|apis\\.map\\.qq\\.com|mapapi\\.qq\\.com|3gimg\\.qq\\.com/lightmap"],
291+
"globals": ["qq.maps", "TMap"]
292+
},
293+
{
294+
"name": "HERE Maps",
295+
"patterns": ["js\\.api\\.here\\.com|maps\\.hereapi\\.com|here\\.com[^\\s\"'<>]*/maps-api"]
296+
},
297+
{
298+
"name": "MapTiler",
299+
"patterns": ["api\\.maptiler\\.com|maptiler\\.com[^\\s\"'<>]*(?:sdk|tiles|maps)|maptilersdk"],
300+
"globals": ["maptilersdk"]
301+
},
302+
{
303+
"name": "TomTom Maps",
304+
"patterns": ["api\\.tomtom\\.com/(?:map|maps|search)|tomtom\\.com[^\\s\"'<>]*/maps-sdk"]
305+
},
306+
{
307+
"name": "Azure Maps",
308+
"patterns": ["atlas\\.microsoft\\.com|azure-maps-control|atlas\\.microsoft\\.com/sdk/javascript/mapcontrol"]
309+
},
310+
{
311+
"name": "ArcGIS Maps SDK",
312+
"patterns": ["js\\.arcgis\\.com|arcgis\\.com[^\\s\"'<>]*/(?:assets|sharing|maps)|arcgisonline\\.com"],
313+
"globals": ["esri"]
314+
},
315+
{
316+
"name": "MapQuest",
317+
"patterns": ["api\\.mqcdn\\.com|mapquestapi\\.com|mapquest\\.com[^\\s\"'<>]*/sdk"],
318+
"globals": ["MQA", "L.mapquest"]
319+
},
320+
{
321+
"name": "CARTO",
322+
"patterns": ["cartocdn\\.com|cartodb\\.com|carto\\.com[^\\s\"'<>]*/(?:js|api|assets)"],
323+
"globals": ["carto", "cartodb"]
324+
},
325+
{
326+
"name": "Thunderforest",
327+
"patterns": ["tile\\.thunderforest\\.com|thunderforest\\.com[^\\s\"'<>]*/(?:maps|api)"]
328+
},
329+
{
330+
"name": "Stadia Maps",
331+
"patterns": ["tiles\\.stadiamaps\\.com|api\\.stadiamaps\\.com"]
332+
},
333+
{
334+
"name": "OpenStreetMap Tiles",
335+
"patterns": ["(?:[abc]\\.)?tile\\.openstreetmap\\.org"]
336+
}
337+
]
273338
},
274339
{
275340
"defaults": {

public/tech-links.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,19 @@
10341034
"Hygraph": "https://hygraph.com",
10351035
"Google Maps Platform": "https://mapsplatform.google.com",
10361036
"Mapbox": "https://www.mapbox.com",
1037+
"AMap / 高德地图": "https://lbs.amap.com",
1038+
"Baidu Maps": "https://lbsyun.baidu.com",
1039+
"Tencent Maps": "https://lbs.qq.com",
1040+
"HERE Maps": "https://www.here.com/platform/maps",
1041+
"MapTiler": "https://www.maptiler.com",
1042+
"TomTom Maps": "https://developer.tomtom.com/maps-sdk-web-js",
1043+
"Azure Maps": "https://azure.microsoft.com/products/azure-maps",
1044+
"ArcGIS Maps SDK": "https://developers.arcgis.com/javascript",
1045+
"MapQuest": "https://developer.mapquest.com",
1046+
"CARTO": "https://carto.com",
1047+
"Thunderforest": "https://www.thunderforest.com",
1048+
"Stadia Maps": "https://stadiamaps.com",
1049+
"OpenStreetMap Tiles": "https://www.openstreetmap.org",
10371050
"Google reCAPTCHA": "https://www.google.com/recaptcha/about",
10381051
"hCaptcha": "https://www.hcaptcha.com",
10391052
"Cloudflare Turnstile": "https://www.cloudflare.com/products/turnstile",

0 commit comments

Comments
 (0)