@opengis/admin 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@opengis/admin",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.2",
|
4
4
|
"description": "This project Softpro Admin",
|
5
5
|
"main": "dist/admin.js",
|
6
6
|
"type": "module",
|
@@ -47,8 +47,8 @@
|
|
47
47
|
"@fullcalendar/timegrid": "^6.1.15",
|
48
48
|
"@fullcalendar/vue3": "^6.1.15",
|
49
49
|
"@opengis/fastify-auth": "1.1.0",
|
50
|
-
"@opengis/fastify-file": "1.1.
|
51
|
-
"@opengis/fastify-table": "1.4.
|
50
|
+
"@opengis/fastify-file": "1.1.2",
|
51
|
+
"@opengis/fastify-table": "1.4.1",
|
52
52
|
"@opengis/v3-core": "^0.3.161",
|
53
53
|
"@opengis/v3-filter": "^0.1.3",
|
54
54
|
"@tiptap/core": "^2.8.0",
|
@@ -59,13 +59,6 @@ async function plugin(fastify) {
|
|
59
59
|
}
|
60
60
|
});
|
61
61
|
|
62
|
-
// allow upload file
|
63
|
-
const kIsMultipart = Symbol.for('[FastifyMultipart.isMultipart]');
|
64
|
-
fastify.addContentTypeParser('multipart', (request, _, done) => {
|
65
|
-
request[kIsMultipart] = true;
|
66
|
-
done(null);
|
67
|
-
});
|
68
|
-
|
69
62
|
// parse Body
|
70
63
|
function contentParser(req, body, done) {
|
71
64
|
const parseBody = decodeURIComponent(body.toString()).split('&').reduce((acc, el) => {
|
package/server/plugins/hook.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import path from 'node:path';
|
2
2
|
import { createHash } from 'node:crypto';
|
3
|
-
import { readFileSync, writeFileSync } from 'node:fs';
|
3
|
+
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
4
4
|
|
5
5
|
import {
|
6
6
|
getTemplatePath, addHook, getToken, getTemplate, config, pgClients, initPG, getRedis, logger, getMenu,
|
@@ -154,6 +154,7 @@ export default async function plugin(fastify) {
|
|
154
154
|
}));
|
155
155
|
|
156
156
|
// debug
|
157
|
+
mkdirSync(logDir, { recursive: true });
|
157
158
|
writeFileSync(path.join(logDir, `${path.basename(cwd)}-${client.options?.database}-cls.sql`), clsQuery.filter((el) => el).join(';'));
|
158
159
|
writeFileSync(path.join(logDir, `${path.basename(cwd)}-${client.options?.database}-cls.json`), JSON.stringify(cls));
|
159
160
|
|