Răsfoiți Sursa

update axios for remark-attachment-refs

Futa Arai 9 luni în urmă
părinte
comite
89ccb4d3b4

+ 1 - 1
packages/remark-attachment-refs/package.json

@@ -47,7 +47,7 @@
     "@growi/core": "workspace:^",
     "@growi/remark-growi-directive": "workspace:^",
     "@growi/ui": "workspace:^",
-    "axios": "^0.24.0",
+    "axios": "^1.10.0",
     "bunyan": "^1.8.15",
     "hast-util-select": "^6.0.2",
     "express": "^4.20.0",

+ 2 - 3
packages/remark-attachment-refs/src/server/routes/refs.ts

@@ -178,9 +178,8 @@ export const routesFactory = (crowi): any => {
     async (req: RequestWithUser, res) => {
       const user = req.user;
       const { prefix, pagePath } = req.query;
-      const options: Record<string, string | undefined> = JSON.parse(
-        req.query.options?.toString() ?? '',
-      );
+      const options: Record<string, string | undefined> =
+        req.query.options ?? {};
 
       // check either 'prefix' or 'pagePath ' is specified
       if (prefix == null && pagePath == null) {

+ 2 - 2
pnpm-lock.yaml

@@ -1536,8 +1536,8 @@ importers:
         specifier: workspace:^
         version: link:../ui
       axios:
-        specifier: ^0.24.0
-        version: 0.24.0
+        specifier: ^1.10.0
+        version: 1.10.0
       bunyan:
         specifier: ^1.8.15
         version: 1.8.15