Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
7h3Rabbit committed Feb 1, 2024
1 parent 18fd7b4 commit 33ba3d3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
13 changes: 13 additions & 0 deletions SAMPLE-software-rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,19 @@
}
]
},
{
"use": true,
"type": "javascript",
"description": "looking jQuery Migrate version info",
"match": "(?P<debug>\\w\\.migrateVersion[ \\n\\r\\t]*=[ \\n\\r\\t]*\"(?P<version>[0-9\\.]+)\")",
"results": [
{
"name": "jquery-migrate",
"category": "js",
"precision": 0.8
}
]
},
{
"use": true,
"type": "html",
Expand Down
10 changes: 9 additions & 1 deletion chrome-versions.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ module.exports = async function (context, commands) {
console.error(error);
}

next_versions = []
try {
next_versions = await commands.js.run('return "next" in window && "version" in window.next ? [window.next.version] : []');
} catch (error) {
console.error(error);
}

jquery_versions = []
try {
tmp = await commands.js.run('return typeof jQuery !== "undefined"');
Expand Down Expand Up @@ -76,7 +83,8 @@ module.exports = async function (context, commands) {
versions = {
'jquery': jquery_versions,
'modernizr': modernizr_versions,
'core-js': core_js_versions
'core-js': core_js_versions,
'next.js': next_versions
}


Expand Down

0 comments on commit 33ba3d3

Please sign in to comment.