Explorar el Código

update third-party library and remove unnecessary library

MaysWind hace 4 años
padre
commit
b97f7e7985
Se han modificado 3 ficheros con 5 adiciones y 15 borrados
  1. 3 11
      package-lock.json
  2. 1 2
      package.json
  3. 1 2
      src/index.html

+ 3 - 11
package-lock.json

@@ -6137,17 +6137,9 @@
       }
     },
     "moment": {
-      "version": "2.24.0",
-      "resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz",
-      "integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg=="
-    },
-    "moment-timezone": {
-      "version": "0.5.28",
-      "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.28.tgz",
-      "integrity": "sha512-TDJkZvAyKIVWg5EtVqRzU97w0Rb0YVbfpqyjgu6GwXCAohVRqwZjf4fOzDE6p1Ch98Sro/8hQQi65WDXW5STPw==",
-      "requires": {
-        "moment": ">= 2.9.0"
-      }
+      "version": "2.29.1",
+      "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz",
+      "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ=="
     },
     "morris.js": {
       "version": "0.5.0",

+ 1 - 2
package.json

@@ -32,8 +32,7 @@
     "font-awesome": "^4.7.0",
     "jquery": "3.4.1",
     "jquery-slimscroll": "^1.3.8",
-    "moment": "2.24.0",
-    "moment-timezone": "0.5.28",
+    "moment": "2.29.1",
     "natural-compare": "1.4.0",
     "sweetalert": "^1.1.3"
   },

+ 1 - 2
src/index.html

@@ -317,11 +317,10 @@
 <!-- build:js js/bootstrap-3.4.1.min.js -->
 <script src="../node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
 <!-- endbuild -->
-<!-- build:js js/moment-with-locales-2.24.0.min.js -->
+<!-- build:js js/moment-with-locales-2.29.1.min.js -->
 <script src="../node_modules/moment/min/moment.min.js"></script>
 <script src="../node_modules/moment/locale/zh-cn.js"></script>
 <script src="../node_modules/moment/locale/zh-tw.js"></script>
-<script src="../node_modules/moment-timezone/builds/moment-timezone-with-data-2012-2022.min.js"></script>
 <!-- endbuild -->
 <!-- build:js js/echarts-common-3.8.5.min.js -->
 <script src="../node_modules/echarts/dist/echarts.common.min.js"></script>