farmcontrol-api/package.json
Tom Butcher 2453789343
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
Add support for DOCX file generation and enhance template manager functionality
This commit introduces the ability to generate DOCX files in the template manager by adding a new `renderDocx` method. The `wordfactory.js` module is created to handle the generation of Word documents, utilizing the `docx` library for formatting. The template manager is updated to include 'docx' in the download types, and corresponding tests are added to ensure the correct rendering of Word documents. Additionally, the email template schema is modified to support DOCX file types, enhancing the overall document handling capabilities of the application.
2026-11-08 20:15:45 +00:00

88 lines
2.7 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",
"bwip-js": "^4.11.4",
"canonical-json": "^0.2.0",
"cors": "^2.8.5",
"dayjs": "^1.11.23",
"diff": "^9.0.0",
"docx": "^9.15.3",
"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-lib": "^1.17.1",
"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",
"jszip": "^3.10.2",
"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"
}