@rankcli/agent-runtime 0.0.24 → 0.0.25
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.js +10 -3
- package/dist/index.mjs +10 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7847,21 +7847,28 @@ var HTML_SIGNATURES = [
|
|
|
7847
7847
|
{
|
|
7848
7848
|
framework: "wordpress",
|
|
7849
7849
|
language: "php",
|
|
7850
|
-
patterns
|
|
7850
|
+
// Technical signatures only. These patterns run over the whole page, so the old
|
|
7851
|
+
// /wordpress/i matched the word anywhere in the copy: rankcli.dev's own "detects
|
|
7852
|
+
// Rails, Django, Laravel, and WordPress" line was enough to detect its React SPA as
|
|
7853
|
+
// WordPress and then tell it to install an SEO plugin. A generator meta tag is the
|
|
7854
|
+
// one place the page says it about itself.
|
|
7855
|
+
patterns: [/wp-content/, /wp-includes/, /wp-json/, /name=["']generator["'][^>]*content=["']WordPress/i],
|
|
7851
7856
|
confidence: "high"
|
|
7852
7857
|
},
|
|
7853
7858
|
// Laravel
|
|
7854
7859
|
{
|
|
7855
7860
|
framework: "laravel",
|
|
7856
7861
|
language: "php",
|
|
7857
|
-
|
|
7862
|
+
// /laravel/i had the same problem as WordPress above - it matched the word in prose.
|
|
7863
|
+
patterns: [/laravel_session/, /XSRF-TOKEN/, /@csrf/],
|
|
7858
7864
|
confidence: "medium"
|
|
7859
7865
|
},
|
|
7860
7866
|
// Symfony
|
|
7861
7867
|
{
|
|
7862
7868
|
framework: "symfony",
|
|
7863
7869
|
language: "php",
|
|
7864
|
-
|
|
7870
|
+
// Likewise /symfony/, which matched any lowercase mention.
|
|
7871
|
+
patterns: [/sf2/, /_sf_/, /profiler\.css/],
|
|
7865
7872
|
confidence: "medium"
|
|
7866
7873
|
},
|
|
7867
7874
|
// ============ Ruby Frameworks ============
|
package/dist/index.mjs
CHANGED
|
@@ -4326,21 +4326,28 @@ var HTML_SIGNATURES = [
|
|
|
4326
4326
|
{
|
|
4327
4327
|
framework: "wordpress",
|
|
4328
4328
|
language: "php",
|
|
4329
|
-
patterns
|
|
4329
|
+
// Technical signatures only. These patterns run over the whole page, so the old
|
|
4330
|
+
// /wordpress/i matched the word anywhere in the copy: rankcli.dev's own "detects
|
|
4331
|
+
// Rails, Django, Laravel, and WordPress" line was enough to detect its React SPA as
|
|
4332
|
+
// WordPress and then tell it to install an SEO plugin. A generator meta tag is the
|
|
4333
|
+
// one place the page says it about itself.
|
|
4334
|
+
patterns: [/wp-content/, /wp-includes/, /wp-json/, /name=["']generator["'][^>]*content=["']WordPress/i],
|
|
4330
4335
|
confidence: "high"
|
|
4331
4336
|
},
|
|
4332
4337
|
// Laravel
|
|
4333
4338
|
{
|
|
4334
4339
|
framework: "laravel",
|
|
4335
4340
|
language: "php",
|
|
4336
|
-
|
|
4341
|
+
// /laravel/i had the same problem as WordPress above - it matched the word in prose.
|
|
4342
|
+
patterns: [/laravel_session/, /XSRF-TOKEN/, /@csrf/],
|
|
4337
4343
|
confidence: "medium"
|
|
4338
4344
|
},
|
|
4339
4345
|
// Symfony
|
|
4340
4346
|
{
|
|
4341
4347
|
framework: "symfony",
|
|
4342
4348
|
language: "php",
|
|
4343
|
-
|
|
4349
|
+
// Likewise /symfony/, which matched any lowercase mention.
|
|
4350
|
+
patterns: [/sf2/, /_sf_/, /profiler\.css/],
|
|
4344
4351
|
confidence: "medium"
|
|
4345
4352
|
},
|
|
4346
4353
|
// ============ Ruby Frameworks ============
|