@opengis/fastify-table 1.0.70 → 1.0.72

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.
Files changed (44) hide show
  1. package/.eslintrc.cjs +42 -42
  2. package/Changelog.md +229 -225
  3. package/README.md +26 -26
  4. package/cron/controllers/cronApi.js +22 -22
  5. package/cron/controllers/utils/cronList.js +1 -1
  6. package/cron/funcs/addCron.js +131 -131
  7. package/cron/index.js +10 -10
  8. package/crud/controllers/utils/checkXSS.js +45 -45
  9. package/crud/controllers/utils/xssInjection.js +72 -72
  10. package/crud/funcs/isFileExists.js +13 -13
  11. package/crud/funcs/setToken.js +53 -53
  12. package/index.js +97 -89
  13. package/migration/exec.migrations.js +75 -75
  14. package/notification/controllers/testEmail.js +49 -49
  15. package/notification/funcs/utils/sendEmail.js +39 -39
  16. package/notification/index.js +31 -31
  17. package/package.json +27 -25
  18. package/pg/funcs/getPG.js +29 -29
  19. package/redis/funcs/getRedis.js +23 -23
  20. package/server/migrations/crm.sql +150 -150
  21. package/server/migrations/log.sql +43 -43
  22. package/server.js +14 -14
  23. package/table/controllers/filter.js +37 -37
  24. package/table/controllers/form.js +19 -1
  25. package/table/controllers/search.js +72 -72
  26. package/table/controllers/suggest.js +1 -1
  27. package/table/controllers/utils/getTemplate.js +28 -28
  28. package/table/controllers/utils/getTemplates.js +18 -18
  29. package/table/funcs/getFilterSQL/util/getTableSql.js +34 -34
  30. package/test/api/notification.test.js +37 -37
  31. package/test/api/table.test.js +57 -57
  32. package/test/api/widget.test.js +114 -114
  33. package/test/config.example +18 -18
  34. package/test/funcs/crud.test.js +76 -76
  35. package/test/funcs/notification.test.js +31 -31
  36. package/test/funcs/pg.test.js +34 -34
  37. package/test/funcs/redis.test.js +19 -19
  38. package/test/templates/cls/test.json +9 -9
  39. package/test/templates/form/cp_building.form.json +32 -32
  40. package/test/templates/select/account_id.json +3 -3
  41. package/test/templates/select/storage.data.json +2 -2
  42. package/test/templates/table/gis.dataset.table.json +20 -20
  43. package/util/controllers/next.id.js +4 -4
  44. package/util/index.js +13 -13
package/index.js CHANGED
@@ -1,89 +1,97 @@
1
- import path from 'path';
2
- import { existsSync, readdirSync, readFileSync } from 'fs';
3
-
4
- import fp from 'fastify-plugin';
5
- import config from './config.js';
6
- // import rclient from './redis/client.js';
7
-
8
- import redisPlugin from './redis/index.js';
9
- import pgPlugin from './pg/index.js';
10
- import tablePlugin from './table/index.js';
11
- import notificationPlugin from './notification/index.js';
12
- import widgetPlugin from './widget/index.js';
13
- import crudPlugin from './crud/index.js';
14
- import policyPlugin from './policy/index.js';
15
- import utilPlugin from './util/index.js';
16
- import cronPlugin from './cron/index.js';
17
-
18
- import pgClients from './pg/pgClients.js';
19
-
20
- import execMigrations from './migration/exec.migrations.js';
21
-
22
- async function plugin(fastify, opt) {
23
- // console.log(opt);
24
- config.pg = opt.pg;
25
- config.redis = opt.redis;
26
- config.root = opt.root;
27
- config.mapServerRoot = opt.mapServerRoot;
28
-
29
- // independent npm start / unit test
30
- if (!fastify.config) {
31
- fastify.decorate('config', config);
32
- }
33
-
34
- fastify.register(import('@opengis/fastify-hb'));
35
- fastify.decorate('getFolder', (req, type = 'server') => {
36
- if (!['server', 'local'].includes(type)) throw new Error('params type is invalid');
37
- const types = { local: req.root, server: req.mapServerRoot };
38
- const filepath = path.posix.join(types[type] || '/data/local', req.folder || config.folder || '');
39
- return filepath;
40
- });
41
-
42
- fastify.addHook('onListen', async () => {
43
- const { client } = pgClients;
44
- if (client?.pk?.['crm.cls']) {
45
- const clsDir = path.join(process.cwd(), 'server/templates/cls');
46
- const files = existsSync(clsDir) ? readdirSync(clsDir) : [];
47
- if (files.length) {
48
- const res = await Promise.all(files.map(async (filename) => {
49
- const filepath = path.join(clsDir, filename);
50
- const data = JSON.parse(readFileSync(filepath));
51
- return { name: path.parse(filename).name, data };
52
- }));
53
- await client.query('truncate table crm.cls');
54
- const { rows } = await client.query(`insert into crm.cls(name, type)
55
- select value->>'name', 'json' from json_array_elements($1) returning cls_id as id, name`, [JSON.stringify(res).replace(/'/g, "''")]);
56
- rows.forEach((row) => Object.assign(row, { data: res.find((cls) => row.name === cls.name)?.data }));
57
- const sql = `insert into crm.cls(code, name, parent)
58
- select json_array_elements(value->'data')->>'id', json_array_elements(value->'data')->>'text', value->>'name' from json_array_elements($1)`;
59
- await client.query(sql, [JSON.stringify(rows).replace(/'/g, "''")]);
60
- }
61
- }
62
- // call from another repo / project
63
- fastify.execMigrations = execMigrations;
64
- // execute core migrations
65
- await fastify.execMigrations();
66
- });
67
- if (!fastify.funcs) {
68
- fastify.addHook('onRequest', async (req) => {
69
- req.funcs = fastify;
70
- if (!req.user && req.session?.passport?.user) {
71
- const { user } = req.session?.passport || {};
72
- req.user = user;
73
- }
74
- });
75
- // fastify.decorateRequest('funcs', fastify);
76
- }
77
-
78
- policyPlugin(fastify);
79
- redisPlugin(fastify);
80
- await pgPlugin(fastify, opt);
81
- tablePlugin(fastify, opt);
82
- crudPlugin(fastify, opt);
83
- notificationPlugin(fastify, opt);
84
- widgetPlugin(fastify, opt);
85
- utilPlugin(fastify, opt);
86
- cronPlugin(fastify, opt);
87
- }
88
- export default fp(plugin);
89
- // export { rclient };
1
+ import path from 'path';
2
+ import { existsSync, readdirSync, readFileSync } from 'fs';
3
+
4
+ import fp from 'fastify-plugin';
5
+ import config from './config.js';
6
+ // import rclient from './redis/client.js';
7
+
8
+ import redisPlugin from './redis/index.js';
9
+ import pgPlugin from './pg/index.js';
10
+ import tablePlugin from './table/index.js';
11
+ import notificationPlugin from './notification/index.js';
12
+ import widgetPlugin from './widget/index.js';
13
+ import crudPlugin from './crud/index.js';
14
+ import policyPlugin from './policy/index.js';
15
+ import utilPlugin from './util/index.js';
16
+ import cronPlugin from './cron/index.js';
17
+
18
+ import pgClients from './pg/pgClients.js';
19
+
20
+ import execMigrations from './migration/exec.migrations.js';
21
+
22
+ async function plugin(fastify, opt) {
23
+ // console.log(opt);
24
+ config.pg = opt.pg;
25
+ config.redis = opt.redis;
26
+ config.root = opt.root;
27
+ config.mapServerRoot = opt.mapServerRoot;
28
+
29
+ // independent npm start / unit test
30
+ if (!fastify.config) {
31
+ fastify.decorate('config', config);
32
+ }
33
+
34
+ fastify.register(import('@fastify/sensible'), {
35
+ errorHandler: false,
36
+ });
37
+
38
+ fastify.register(import('@fastify/url-data'), {
39
+ errorHandler: false,
40
+ });
41
+
42
+ fastify.register(import('@opengis/fastify-hb'));
43
+ fastify.decorate('getFolder', (req, type = 'server') => {
44
+ if (!['server', 'local'].includes(type)) throw new Error('params type is invalid');
45
+ const types = { local: req.root, server: req.mapServerRoot };
46
+ const filepath = path.posix.join(types[type] || '/data/local', req.folder || config.folder || '');
47
+ return filepath;
48
+ });
49
+
50
+ fastify.addHook('onListen', async () => {
51
+ const { client } = pgClients;
52
+ if (client?.pk?.['crm.cls']) {
53
+ const clsDir = path.join(process.cwd(), 'server/templates/cls');
54
+ const files = existsSync(clsDir) ? readdirSync(clsDir) : [];
55
+ if (files.length) {
56
+ const res = await Promise.all(files.map(async (filename) => {
57
+ const filepath = path.join(clsDir, filename);
58
+ const data = JSON.parse(readFileSync(filepath));
59
+ return { name: path.parse(filename).name, data };
60
+ }));
61
+ await client.query('truncate table crm.cls');
62
+ const { rows } = await client.query(`insert into crm.cls(name, type)
63
+ select value->>'name', 'json' from json_array_elements($1) returning cls_id as id, name`, [JSON.stringify(res).replace(/'/g, "''")]);
64
+ rows.forEach((row) => Object.assign(row, { data: res.find((cls) => row.name === cls.name)?.data }));
65
+ const sql = `insert into crm.cls(code, name, parent)
66
+ select json_array_elements(value->'data')->>'id', json_array_elements(value->'data')->>'text', value->>'name' from json_array_elements($1)`;
67
+ await client.query(sql, [JSON.stringify(rows).replace(/'/g, "''")]);
68
+ }
69
+ }
70
+ // call from another repo / project
71
+ fastify.execMigrations = execMigrations;
72
+ // execute core migrations
73
+ await fastify.execMigrations();
74
+ });
75
+ if (!fastify.funcs) {
76
+ fastify.addHook('onRequest', async (req) => {
77
+ req.funcs = fastify;
78
+ if (!req.user && req.session?.passport?.user) {
79
+ const { user } = req.session?.passport || {};
80
+ req.user = user;
81
+ }
82
+ });
83
+ // fastify.decorateRequest('funcs', fastify);
84
+ }
85
+
86
+ policyPlugin(fastify);
87
+ redisPlugin(fastify);
88
+ await pgPlugin(fastify, opt);
89
+ tablePlugin(fastify, opt);
90
+ crudPlugin(fastify, opt);
91
+ notificationPlugin(fastify, opt);
92
+ widgetPlugin(fastify, opt);
93
+ utilPlugin(fastify, opt);
94
+ cronPlugin(fastify, opt);
95
+ }
96
+ export default fp(plugin);
97
+ // export { rclient };
@@ -1,76 +1,76 @@
1
- import fs from 'fs';
2
- import path from 'path';
3
-
4
- const time = Date.now();
5
-
6
- import getPG from '../pg/funcs/getPG.js';
7
-
8
- export default async function execMigrations(opt) {
9
- try {
10
- const pg = opt?.pg || getPG({ name: 'client' });
11
- const rootDir = getCallerDir();
12
- const dir = path.join(rootDir.replace(/\\/g, '/').replace(/^file:\/\/\//, ''), rootDir.endsWith('plugins') ? '../..' : '', 'server/migrations');
13
-
14
- console.log('migrations start', dir, Date.now() - time);
15
- const exists = fs.existsSync(dir);
16
- if (exists) {
17
- // get directory sql file list
18
- const content = fs.readdirSync(dir, { withFileTypes: true })
19
- ?.filter((el) => el.isFile() && path.extname(el.name) === '.sql')
20
- ?.map((el) => el.name) || [];
21
-
22
- // execute sql files
23
- if (content?.length) {
24
- await sequence(content, { pg, dir }, execSql);
25
- }
26
- }
27
- console.log('migrations finish', dir, exists, Date.now() - time);
28
- } catch(err) {
29
- console.error('migrations error', err.toString(), Date.now() - time);
30
- }
31
- }
32
-
33
- function getCallerDir() {
34
- const originalFunc = Error.prepareStackTrace;
35
-
36
- let callerfile;
37
- try {
38
- const err = new Error();
39
- let currentfile;
40
-
41
- Error.prepareStackTrace = function (err, stack) { return stack; };
42
-
43
- currentfile = err.stack.shift().getFileName();
44
-
45
- while (err.stack.length) {
46
- callerfile = err.stack.shift().getFileName();
47
-
48
- if(currentfile !== callerfile) break;
49
- }
50
- } catch (err) { }
51
-
52
- Error.prepareStackTrace = originalFunc;
53
-
54
- return path.dirname(callerfile);
55
- }
56
-
57
- function sequence(files, data, fn) {
58
- return files.reduce((promise, filename) => promise.then(() => fn({
59
- ...data, filename,
60
- })), Promise.resolve());
61
- }
62
-
63
- async function execSql({
64
- pg, dir, filename,
65
- }) {
66
- const start = Date.now();
67
- const filepath = path.join(dir, filename);
68
- const sql = fs.readFileSync(filepath, 'utf-8');
69
- try {
70
- console.log(filename, 'start', Date.now() - start);
71
- await pg.query(sql);
72
- console.log(filename, 'finish', Date.now() - start);
73
- } catch (err) {
74
- console.log(filepath, 'error', err.toString(), Date.now() - start);
75
- }
1
+ import fs from 'fs';
2
+ import path from 'path';
3
+
4
+ const time = Date.now();
5
+
6
+ import getPG from '../pg/funcs/getPG.js';
7
+
8
+ export default async function execMigrations(opt) {
9
+ try {
10
+ const pg = opt?.pg || getPG({ name: 'client' });
11
+ const rootDir = getCallerDir();
12
+ const dir = path.join(rootDir.replace(/\\/g, '/').replace(/^file:\/\/\//, ''), rootDir.endsWith('plugins') ? '../..' : '', 'server/migrations');
13
+
14
+ console.log('migrations start', dir, Date.now() - time);
15
+ const exists = fs.existsSync(dir);
16
+ if (exists) {
17
+ // get directory sql file list
18
+ const content = fs.readdirSync(dir, { withFileTypes: true })
19
+ ?.filter((el) => el.isFile() && path.extname(el.name) === '.sql')
20
+ ?.map((el) => el.name) || [];
21
+
22
+ // execute sql files
23
+ if (content?.length) {
24
+ await sequence(content, { pg, dir }, execSql);
25
+ }
26
+ }
27
+ console.log('migrations finish', dir, exists, Date.now() - time);
28
+ } catch(err) {
29
+ console.error('migrations error', err.toString(), Date.now() - time);
30
+ }
31
+ }
32
+
33
+ function getCallerDir() {
34
+ const originalFunc = Error.prepareStackTrace;
35
+
36
+ let callerfile;
37
+ try {
38
+ const err = new Error();
39
+ let currentfile;
40
+
41
+ Error.prepareStackTrace = function (err, stack) { return stack; };
42
+
43
+ currentfile = err.stack.shift().getFileName();
44
+
45
+ while (err.stack.length) {
46
+ callerfile = err.stack.shift().getFileName();
47
+
48
+ if(currentfile !== callerfile) break;
49
+ }
50
+ } catch (err) { }
51
+
52
+ Error.prepareStackTrace = originalFunc;
53
+
54
+ return path.dirname(callerfile);
55
+ }
56
+
57
+ function sequence(files, data, fn) {
58
+ return files.reduce((promise, filename) => promise.then(() => fn({
59
+ ...data, filename,
60
+ })), Promise.resolve());
61
+ }
62
+
63
+ async function execSql({
64
+ pg, dir, filename,
65
+ }) {
66
+ const start = Date.now();
67
+ const filepath = path.join(dir, filename);
68
+ const sql = fs.readFileSync(filepath, 'utf-8');
69
+ try {
70
+ console.log(filename, 'start', Date.now() - start);
71
+ await pg.query(sql);
72
+ console.log(filename, 'finish', Date.now() - start);
73
+ } catch (err) {
74
+ console.log(filepath, 'error', err.toString(), Date.now() - start);
75
+ }
76
76
  }
@@ -1,49 +1,49 @@
1
- import path from 'path';
2
- import { existsSync } from 'fs';
3
- import { fileURLToPath } from 'url';
4
-
5
- const fileName = fileURLToPath(import.meta.url);
6
- const dirName = path.dirname(fileName);
7
-
8
- import notification from '../funcs/sendNotification.js';
9
-
10
- export default async function testNotification({
11
- pg, funcs = {}, log, query = {}, session = {},
12
- }) {
13
- const { local } = funcs.config || {};
14
- if (!session?.passport?.user?.user_type?.includes('admin') && !local) {
15
- return { message: 'Forbidden', status: 403 };
16
- }
17
-
18
- const date = new Date().toISOString().split('T')[0];
19
- if (!query.to) {
20
- return { message: 'param to is required', status: 400 };
21
- }
22
-
23
- try {
24
- const {
25
- to, template, table, id, nocache,
26
- } = query;
27
- const file = [path.join(dirName, '../../', 'changelog.md'), path.join(dirName, 'utils', 'pin-m-ty-media-record-outline+303070.png')].filter((el) => existsSync(el));
28
- const data = await notification({
29
- pg,
30
- funcs,
31
- log,
32
- to,
33
- template,
34
- title: `Test Softpro ${date}`,
35
- table,
36
- nocache,
37
- file,
38
- id,
39
- message: `Test mail Softpro ${date} Lorem Ipsum Lorem Ipsum`,
40
- });
41
-
42
- return {
43
- message: data || 'ok',
44
- };
45
- }
46
- catch (err) {
47
- return { error: err.toString(), status: 500 };
48
- }
49
- }
1
+ import path from 'path';
2
+ import { existsSync } from 'fs';
3
+ import { fileURLToPath } from 'url';
4
+
5
+ const fileName = fileURLToPath(import.meta.url);
6
+ const dirName = path.dirname(fileName);
7
+
8
+ import notification from '../funcs/sendNotification.js';
9
+
10
+ export default async function testNotification({
11
+ pg, funcs = {}, log, query = {}, session = {},
12
+ }) {
13
+ const { local } = funcs.config || {};
14
+ if (!session?.passport?.user?.user_type?.includes('admin') && !local) {
15
+ return { message: 'Forbidden', status: 403 };
16
+ }
17
+
18
+ const date = new Date().toISOString().split('T')[0];
19
+ if (!query.to) {
20
+ return { message: 'param to is required', status: 400 };
21
+ }
22
+
23
+ try {
24
+ const {
25
+ to, template, table, id, nocache,
26
+ } = query;
27
+ const file = [path.join(dirName, '../../', 'changelog.md'), path.join(dirName, 'utils', 'pin-m-ty-media-record-outline+303070.png')].filter((el) => existsSync(el));
28
+ const data = await notification({
29
+ pg,
30
+ funcs,
31
+ log,
32
+ to,
33
+ template,
34
+ title: `Test Softpro ${date}`,
35
+ table,
36
+ nocache,
37
+ file,
38
+ id,
39
+ message: `Test mail Softpro ${date} Lorem Ipsum Lorem Ipsum`,
40
+ });
41
+
42
+ return {
43
+ message: data || 'ok',
44
+ };
45
+ }
46
+ catch (err) {
47
+ return { error: err.toString(), status: 500 };
48
+ }
49
+ }
@@ -1,39 +1,39 @@
1
- import nodemailer from 'nodemailer';
2
-
3
- /**
4
- * Надсилає поваідомлення на пошту
5
- *
6
- * @type function
7
- * @alias sendEmail
8
- * @summary Функція здійснює розсилку по email
9
- */
10
-
11
- export default async function sendEmail({
12
- funcs, to, from, subject, html, attachments,
13
- }) {
14
- const { config = {} } = funcs;
15
-
16
- if (!to?.length) {
17
- throw new Error('empty to list');
18
- }
19
-
20
- const { mailSetting = {} } = config;
21
-
22
- /*= == check service and setting === */
23
- if (!mailSetting.service) {
24
- throw new Error('service is not defined in config');
25
- }
26
-
27
- Object.assign(mailSetting, { rejectUnauthorized: false });
28
-
29
- if (mailSetting.port === 465) {
30
- Object.assign(mailSetting, { secure: true });
31
- }
32
-
33
- const transport = nodemailer.createTransport(mailSetting);
34
-
35
- const result = await transport.sendMail({
36
- from: from || mailSetting.from, to, subject, html, attachments,
37
- });
38
- return result;
39
- }
1
+ import nodemailer from 'nodemailer';
2
+
3
+ /**
4
+ * Надсилає поваідомлення на пошту
5
+ *
6
+ * @type function
7
+ * @alias sendEmail
8
+ * @summary Функція здійснює розсилку по email
9
+ */
10
+
11
+ export default async function sendEmail({
12
+ funcs, to, from, subject, html, attachments,
13
+ }) {
14
+ const { config = {} } = funcs;
15
+
16
+ if (!to?.length) {
17
+ throw new Error('empty to list');
18
+ }
19
+
20
+ const { mailSetting = {} } = config;
21
+
22
+ /*= == check service and setting === */
23
+ if (!mailSetting.service) {
24
+ throw new Error('service is not defined in config');
25
+ }
26
+
27
+ Object.assign(mailSetting, { rejectUnauthorized: false });
28
+
29
+ if (mailSetting.port === 465) {
30
+ Object.assign(mailSetting, { secure: true });
31
+ }
32
+
33
+ const transport = nodemailer.createTransport(mailSetting);
34
+
35
+ const result = await transport.sendMail({
36
+ from: from || mailSetting.from, to, subject, html, attachments,
37
+ });
38
+ return result;
39
+ }
@@ -1,31 +1,31 @@
1
- // api
2
- import userNotifications from './controllers/userNotifications.js';
3
- import testEmail from './controllers/testEmail.js';
4
- // funcs
5
- import addNotification from './funcs/addNotification.js'; // add to db
6
- import notification from './funcs/sendNotification.js'; // send
7
-
8
- async function plugin(fastify, config = {}) {
9
- const prefix = config.prefix || '/api';
10
- fastify.route({
11
- method: 'GET',
12
- url: `${prefix}/notification`,
13
- config: {
14
- policy: ['user'], // implement user auth check policy??
15
- },
16
- handler: userNotifications,
17
- });
18
- fastify.route({
19
- method: 'GET',
20
- url: `${prefix}/test-email`,
21
- config: {
22
- policy: ['user'],
23
- },
24
- handler: testEmail,
25
- });
26
-
27
- fastify.decorate('addNotification', addNotification);
28
- fastify.decorate('notification', notification);
29
- }
30
-
31
- export default plugin;
1
+ // api
2
+ import userNotifications from './controllers/userNotifications.js';
3
+ import testEmail from './controllers/testEmail.js';
4
+ // funcs
5
+ import addNotification from './funcs/addNotification.js'; // add to db
6
+ import notification from './funcs/sendNotification.js'; // send
7
+
8
+ async function plugin(fastify, config = {}) {
9
+ const prefix = config.prefix || '/api';
10
+ fastify.route({
11
+ method: 'GET',
12
+ url: `${prefix}/notification`,
13
+ config: {
14
+ policy: ['user'], // implement user auth check policy??
15
+ },
16
+ handler: userNotifications,
17
+ });
18
+ fastify.route({
19
+ method: 'GET',
20
+ url: `${prefix}/test-email`,
21
+ config: {
22
+ policy: ['user'],
23
+ },
24
+ handler: testEmail,
25
+ });
26
+
27
+ fastify.decorate('addNotification', addNotification);
28
+ fastify.decorate('notification', notification);
29
+ }
30
+
31
+ export default plugin;
package/package.json CHANGED
@@ -1,25 +1,27 @@
1
- {
2
- "name": "@opengis/fastify-table",
3
- "version": "1.0.70",
4
- "type": "module",
5
- "description": "core-plugins",
6
- "main": "index.js",
7
- "scripts": {
8
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
9
- "test": "node --test"
10
- },
11
- "dependencies": {
12
- "@opengis/fastify-hb": "^1.0.0",
13
- "fastify": "^4.26.1",
14
- "fastify-plugin": "^4.0.0",
15
- "ioredis": "^5.3.2",
16
- "pg": "^8.11.3",
17
- "nodemailer": "^6.5.0"
18
- },
19
- "devDependencies": {
20
- "eslint": "^8.49.0",
21
- "eslint-config-airbnb": "^19.0.4"
22
- },
23
- "author": "Softpro",
24
- "license": "ISC"
25
- }
1
+ {
2
+ "name": "@opengis/fastify-table",
3
+ "version": "1.0.72",
4
+ "type": "module",
5
+ "description": "core-plugins",
6
+ "main": "index.js",
7
+ "scripts": {
8
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
9
+ "test": "node --test"
10
+ },
11
+ "dependencies": {
12
+ "@opengis/fastify-hb": "^1.0.0",
13
+ "@fastify/sensible": "^5.0.0",
14
+ "@fastify/url-data": "^5.4.0",
15
+ "fastify": "^4.26.1",
16
+ "fastify-plugin": "^4.0.0",
17
+ "ioredis": "^5.3.2",
18
+ "pg": "^8.11.3",
19
+ "nodemailer": "^6.5.0"
20
+ },
21
+ "devDependencies": {
22
+ "eslint": "^8.49.0",
23
+ "eslint-config-airbnb": "^19.0.4"
24
+ },
25
+ "author": "Softpro",
26
+ "license": "ISC"
27
+ }