Skip to content

Commit

Permalink
Fix vue detection. add testcases for pdfjs
Browse files Browse the repository at this point in the history
  • Loading branch information
eoftedal committed Oct 30, 2024
1 parent a071d06 commit 1d80850
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 9 deletions.
3 changes: 2 additions & 1 deletion repository/jsrepository-master.json
Original file line number Diff line number Diff line change
Expand Up @@ -4513,7 +4513,8 @@
"'(§§version§§)'[^\\n]{0,8000}Vue compiler",
"\\* Original file: /npm/vue@(§§version§§)/dist/vue.(global|common).js",
"const version[ ]*=[ ]*\"(§§version§§)\";[\\s]*/\\*\\*[\\s]*\\* SSR utils for \\\\@vue/server-renderer",
"\\.__vue_app__=.{0,8000}?const [a-z]+=\"(§§version§§)\","
"\\.__vue_app__=.{0,8000}?const [a-z]+=\"(§§version§§)\",",
"let [A-Za-z]+=\"(§§version§§)\",..=\"undefined\"!=typeof window&&window.trustedTypes;if\\(..\\)try\\{.=..\\.createPolicy\\(\"vue\","
],
"func": ["Vue.version"]
},
Expand Down
3 changes: 2 additions & 1 deletion repository/jsrepository-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -5905,7 +5905,8 @@
"'(§§version§§)'[^\\n]{0,8000}Vue compiler",
"\\* Original file: /npm/vue@(§§version§§)/dist/vue.(global|common).js",
"const version[ ]*=[ ]*\"(§§version§§)\";[\\s]*/\\*\\*[\\s]*\\* SSR utils for \\\\@vue/server-renderer",
"\\.__vue_app__=.{0,8000}?const [a-z]+=\"(§§version§§)\","
"\\.__vue_app__=.{0,8000}?const [a-z]+=\"(§§version§§)\",",
"let [A-Za-z]+=\"(§§version§§)\",..=\"undefined\"!=typeof window&&window.trustedTypes;if\\(..\\)try\\{.=..\\.createPolicy\\(\"vue\","
],
"func": [
"Vue.version"
Expand Down
3 changes: 2 additions & 1 deletion repository/jsrepository-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -6042,7 +6042,8 @@
"'(§§version§§)'[^\\n]{0,8000}Vue compiler",
"\\* Original file: /npm/vue@(§§version§§)/dist/vue.(global|common).js",
"const version[ ]*=[ ]*\"(§§version§§)\";[\\s]*/\\*\\*[\\s]*\\* SSR utils for \\\\@vue/server-renderer",
"\\.__vue_app__=.{0,8000}?const [a-z]+=\"(§§version§§)\","
"\\.__vue_app__=.{0,8000}?const [a-z]+=\"(§§version§§)\",",
"let [A-Za-z]+=\"(§§version§§)\",..=\"undefined\"!=typeof window&&window.trustedTypes;if\\(..\\)try\\{.=..\\.createPolicy\\(\"vue\","
],
"func": [
"Vue.version"
Expand Down
3 changes: 2 additions & 1 deletion repository/jsrepository-v4.json
Original file line number Diff line number Diff line change
Expand Up @@ -6041,7 +6041,8 @@
"'(§§version§§)'[^\\n]{0,8000}Vue compiler",
"\\* Original file: /npm/vue@(§§version§§)/dist/vue.(global|common).js",
"const version[ ]*=[ ]*\"(§§version§§)\";[\\s]*/\\*\\*[\\s]*\\* SSR utils for \\\\@vue/server-renderer",
"\\.__vue_app__=.{0,8000}?const [a-z]+=\"(§§version§§)\","
"\\.__vue_app__=.{0,8000}?const [a-z]+=\"(§§version§§)\",",
"let [A-Za-z]+=\"(§§version§§)\",..=\"undefined\"!=typeof window&&window.trustedTypes;if\\(..\\)try\\{.=..\\.createPolicy\\(\"vue\","
],
"func": [
"Vue.version"
Expand Down
3 changes: 2 additions & 1 deletion repository/jsrepository.json
Original file line number Diff line number Diff line change
Expand Up @@ -5853,7 +5853,8 @@
"'(§§version§§)'[^\\n]{0,8000}Vue compiler",
"\\* Original file: /npm/vue@(§§version§§)/dist/vue.(global|common).js",
"const version[ ]*=[ ]*\"(§§version§§)\";[\\s]*/\\*\\*[\\s]*\\* SSR utils for \\\\@vue/server-renderer",
"\\.__vue_app__=.{0,8000}?const [a-z]+=\"(§§version§§)\","
"\\.__vue_app__=.{0,8000}?const [a-z]+=\"(§§version§§)\",",
"let [A-Za-z]+=\"(§§version§§)\",..=\"undefined\"!=typeof window&&window.trustedTypes;if\\(..\\)try\\{.=..\\.createPolicy\\(\"vue\","
],
"func": [
"Vue.version"
Expand Down
17 changes: 13 additions & 4 deletions repository/testcases.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@
},
"vue": {
"https://cdn.jsdelivr.net/npm/vue@§§version§§": {
"versions": ["3.2.45", "3.2.37", "3.2.36", "2.7.6", "1.0.28"]
"versions": ["3.5.12", "3.2.45", "3.2.37", "3.2.36", "2.7.6", "1.0.28"]
},
"https://cdnjs.cloudflare.com/ajax/libs/vue/§§version§§/vue.global.prod.min.js": {
"versions": ["3.2.37", "3.2.36", "3.2.45"]
"versions": ["3.5.12", "3.2.37", "3.2.36", "3.2.45"]
},
"https://cdnjs.cloudflare.com/ajax/libs/vue/§§version§§/vue.min.js": {
"versions": ["2.7.6", "1.0.28"]
Expand Down Expand Up @@ -637,8 +637,17 @@
},
"pdf.js": {
"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/§§version§§/pdf§§subversion§§.mjs": {
"versions": ["4.3.136", "4.0.189"],
"subversions": ["", ".min"]
"versions": ["4.7.76", "4.3.136", "4.0.189"],
"subversions": ["", ".min"],
"additionalVersions": [
"4.6.82",
"4.5.136",
"4.4.168",
"4.2.67",
"4.1.392",
"4.0.379",
"4.0.269"
]
},
"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/§§version§§/pdf§§subversion§§.js": {
"versions": [
Expand Down

0 comments on commit 1d80850

Please sign in to comment.