zet-lib 1.4.4 → 1.4.6
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/lib/Form.js +691 -539
- package/lib/zAppRouter.js +936 -778
- package/lib/zRoute.js +3 -3
- package/package.json +2 -1
package/lib/zRoute.js
CHANGED
|
@@ -2279,9 +2279,9 @@ zRoute.generatePDF = async (file, layout = "pdf_bootstrap", options = {}) => {
|
|
|
2279
2279
|
let puppeterOptions = {
|
|
2280
2280
|
args: args,
|
|
2281
2281
|
};
|
|
2282
|
-
if (env === "production") {
|
|
2283
|
-
|
|
2284
|
-
}
|
|
2282
|
+
//if (env === "production") {
|
|
2283
|
+
//puppeterOptions.executablePath = "/usr/bin/google-chrome-stable";
|
|
2284
|
+
//}
|
|
2285
2285
|
puppeterOptions.defaultViewport = { width: 1920, height: 1080 };
|
|
2286
2286
|
const browser = await puppeteer.launch(puppeterOptions);
|
|
2287
2287
|
const page = await browser.newPage();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zet-lib",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.6",
|
|
4
4
|
"description": "zet is a library that part of zet generator.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18"
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"qs": "^6.11.2",
|
|
48
48
|
"randomstring": "^1.3.0",
|
|
49
49
|
"read-excel-file": "^5.8.0",
|
|
50
|
+
"sharp": "^0.34.1",
|
|
50
51
|
"socket.io": "^4.8.0",
|
|
51
52
|
"timers-promises": "^1.0.1",
|
|
52
53
|
"uglify-js": "^3.17.4",
|