ソースを参照

cleaning some npm warnings

psy 2 年 前
コミット
4a6e4709ad
3 ファイル変更331 行追加561 行削除
  1. 325 556
      package-lock.json
  2. 2 2
      package.json
  3. 4 3
      src/index.js

ファイルの差分が大きいため隠しています
+ 325 - 556
package-lock.json


+ 2 - 2
package.json

@@ -142,14 +142,14 @@
     "changelog-version": "^2.0.0",
     "common-good": "^4.0.3",
     "husky": "^7.0.1",
-    "mkdirp": "^1.0.4",
     "nodemon": "^2.0.3",
     "stylelint-config-recommended": "^5.0.0",
     "supertest": "^6.0.1",
     "tap": "^14.10.7"
   },
   "optionalDependencies": {
-    "sharp": "^0.31.1"
+    "sharp": "^0.31.1",
+    "fsevents": "^2.3.2"
   },
   "bugs": {
     "url": "https://code.03c8.net/KrakensLab/snh-oasis/issues"

+ 4 - 3
src/index.js

@@ -9,6 +9,10 @@ const cli = require("./cli");
 const fs = require("fs");
 const exif = require("piexifjs");
 
+const supports = require("./supports.js").supporting;
+const blocks = require("./supports.js").blocking;
+const recommends = require("./supports.js").recommending;
+
 const defaultConfig = {};
 const defaultConfigFile = path.join(
   envPaths("oasis", { suffix: "" }).config,
@@ -748,9 +752,6 @@ router
   .get("/peers", async (ctx) => {
     const theme = ctx.cookies.get("theme") || config.theme;
     const getMeta = async ({ theme }) => {
-    const supports = require("./supports.js").supporting;
-    const blocks = require("./supports.js").blocking;
-    const recommends = require("./supports.js").recommending;
     const peers = await meta.connectedPeers();
     const peersWithNames = await Promise.all(
     peers.map(async ([key, value]) => {