Przeglądaj źródła

Update jQuery version

Gaël Métais 5 lat temu
rodzic
commit
de8e444aba
2 zmienionych plików z 4 dodań i 2 usunięć
  1. 3 1
      lib/metadata/policies.js
  2. 1 1
      package.json

+ 3 - 1
lib/metadata/policies.js

@@ -276,7 +276,7 @@ var policies = {
     },
     },
     "jQueryVersion": {
     "jQueryVersion": {
         "label": "jQuery version",
         "label": "jQuery version",
-        "message": "<p>The current latest version of jQuery is 3.3</p><p>Each new version of jQuery optimizes performances. Do not keep an old version of jQuery. Updating can sometimes break a few things, but it is generally quite easy to fix them up. So don't hesitate.</p>",
+        "message": "<p>The current latest version of jQuery is 3.4</p><p>Each new version of jQuery optimizes performances. Do not keep an old version of jQuery. Updating can sometimes break a few things, but it is generally quite easy to fix them up. So don't hesitate.</p>",
         "hasOffenders": false,
         "hasOffenders": false,
         "scoreFn": function(data) {
         "scoreFn": function(data) {
             var differentVersions = data.toolsResults.phantomas.metrics.jQueryVersionsLoaded;
             var differentVersions = data.toolsResults.phantomas.metrics.jQueryVersionsLoaded;
@@ -291,6 +291,8 @@ var policies = {
                 if (value.indexOf('3.3.') === 0 ||
                 if (value.indexOf('3.3.') === 0 ||
                     value.indexOf('3.4.') === 0 ||
                     value.indexOf('3.4.') === 0 ||
                     value.indexOf('3.5.') === 0 ||
                     value.indexOf('3.5.') === 0 ||
+                    value.indexOf('3.6.') === 0 ||
+                    value.indexOf('3.7.') === 0 ||
                     value.indexOf('4.0.') === 0) {
                     value.indexOf('4.0.') === 0) {
                     score = 100;
                     score = 100;
                 } else if (value.indexOf('3.2.') === 0) {
                 } else if (value.indexOf('3.2.') === 0) {

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "yellowlabtools",
   "name": "yellowlabtools",
-  "version": "1.13.3",
+  "version": "1.13.4",
   "description": "Online tool to audit a webpage for performance and front-end quality issues",
   "description": "Online tool to audit a webpage for performance and front-end quality issues",
   "license": "GPL-2.0",
   "license": "GPL-2.0",
   "author": {
   "author": {