Sfoglia il codice sorgente

将lodash-es替换成lodash.项目不支持ESM方式

lrf 6 mesi fa
parent
commit
cffa9deb97
2 ha cambiato i file con 2 aggiunte e 7 eliminazioni
  1. 1 6
      package-lock.json
  2. 1 1
      package.json

+ 1 - 6
package-lock.json

@@ -21,7 +21,7 @@
         "@typegoose/typegoose": "^11.0.0",
         "dayjs": "^1.11.13",
         "fs-extra": "^11.2.0",
-        "lodash-es": "^4.17.21",
+        "lodash": "^4.17.21",
         "mime-types": "^2.1.35",
         "mongoose": "^7.0.0"
       },
@@ -6059,11 +6059,6 @@
       "resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz",
       "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
     },
-    "node_modules/lodash-es": {
-      "version": "4.17.21",
-      "resolved": "https://registry.npmmirror.com/lodash-es/-/lodash-es-4.17.21.tgz",
-      "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw=="
-    },
     "node_modules/lodash.includes": {
       "version": "4.3.0",
       "resolved": "https://registry.npmmirror.com/lodash.includes/-/lodash.includes-4.3.0.tgz",

+ 1 - 1
package.json

@@ -16,7 +16,7 @@
     "@typegoose/typegoose": "^11.0.0",
     "dayjs": "^1.11.13",
     "fs-extra": "^11.2.0",
-    "lodash-es": "^4.17.21",
+    "lodash": "^4.17.21",
     "mime-types": "^2.1.35",
     "mongoose": "^7.0.0"
   },