Browse Source

cleaning some npm warnings

psy 1 year ago
parent
commit
4a6e4709ad
3 changed files with 331 additions and 561 deletions
  1. 325 556
      package-lock.json
  2. 2 2
      package.json
  3. 4 3
      src/index.js

File diff suppressed because it is too large
+ 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]) => {