All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
This update introduces a new route for formatting document templates, utilizing the `formatTemplateContent` function to beautify HTML and JavaScript within templates. The `formatDocumentTemplateRouteHandler` is added to handle formatting requests, and the content is processed to maintain EJS blocks. Additionally, a new `templateformatter.js` file is created, containing the logic for formatting templates, along with corresponding tests to ensure functionality. This enhancement improves the usability and presentation of document templates in the application.
84 lines
2.6 KiB
JSON
84 lines
2.6 KiB
JSON
{
|
|
"name": "node-json-api-free",
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"main": "index.js",
|
|
"dependencies": {
|
|
"@aws-sdk/client-s3": "^3.932.0",
|
|
"@aws-sdk/s3-request-presigner": "^3.932.0",
|
|
"@nats-io/transport-node": "^3.2.0",
|
|
"axios": "^1.13.2",
|
|
"bcrypt": "^6.0.0",
|
|
"blurhash": "^2.0.5",
|
|
"body-parser": "^2.2.0",
|
|
"canonical-json": "^0.2.0",
|
|
"cors": "^2.8.5",
|
|
"dayjs": "^1.11.23",
|
|
"diff": "^9.0.0",
|
|
"dotenv": "^17.2.3",
|
|
"ejs": "^3.1.10",
|
|
"exceljs": "^4.4.0",
|
|
"exifr": "^7.1.3",
|
|
"express": "^5.1.0",
|
|
"express-session": "^1.18.2",
|
|
"i": "^0.3.7",
|
|
"ioredis": "^6.0.0",
|
|
"js-beautify": "^2.0.3",
|
|
"jsonwebtoken": "^9.0.2",
|
|
"keycloak-connect": "^26.1.1",
|
|
"lodash": "^4.17.23",
|
|
"log4js": "^6.9.1",
|
|
"mongodb": "^6.21.0",
|
|
"mongoose": "^9.9.1",
|
|
"multer": "^2.0.2",
|
|
"nanoid": "^5.1.6",
|
|
"node-cache": "^5.1.2",
|
|
"node-cron": "^4.2.1",
|
|
"nodemailer": "*",
|
|
"nodemon": "^3.1.11",
|
|
"pdf-to-img": "^6.2.0",
|
|
"pg": "^8.16.3",
|
|
"posthtml": "^0.16.7",
|
|
"puppeteer": "^24.37.5",
|
|
"sequelize": "^6.37.7",
|
|
"sharp": "^0.34.3",
|
|
"speedgoose": "^2.5.11"
|
|
},
|
|
"type": "module",
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.28.3",
|
|
"@babel/core": "^7.28.5",
|
|
"@babel/node": "^7.28.0",
|
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
|
"@babel/preset-env": "^7.28.5",
|
|
"@babel/register": "^7.28.3",
|
|
"@jest/globals": "^30.2.0",
|
|
"babel-jest": "^30.2.0",
|
|
"babel-plugin-transform-import-meta": "^2.3.3",
|
|
"concurrently": "^9.2.1",
|
|
"eslint": "^9.39.1",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-prettier": "^5.5.4",
|
|
"jest": "^30.2.0",
|
|
"jest-junit": "^16.0.0",
|
|
"prettier": "^3.6.2",
|
|
"sequelize-cli": "^6.6.3",
|
|
"standard": "^17.1.2",
|
|
"supertest": "^7.1.4"
|
|
},
|
|
"scripts": {
|
|
"syncModelsWithWS": "node fcdev.js",
|
|
"watch:schemas": "nodemon --config nodemon.schemas.json",
|
|
"dev": "concurrently --kill-others --names \"API,SCHEMAS\" --prefix-colors \"cyan,yellow\" \"nodemon --exec babel-node --experimental-specifier-resolution=node src/index.js\" \"nodemon --config nodemon.schemas.json\"",
|
|
"dev:api": "nodemon --exec babel-node --experimental-specifier-resolution=node src/index.js",
|
|
"test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js",
|
|
"seed": "node src/mongo/seedData.js",
|
|
"clear": "node src/mongo/clearDbs.js",
|
|
"start": "node src/index.js"
|
|
},
|
|
"author": "",
|
|
"license": "ISC",
|
|
"packageManager": "pnpm@10.28.0"
|
|
}
|