We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95558ff commit 5013e81Copy full SHA for 5013e81
src/jsreport/jsreport.service.ts
@@ -29,7 +29,7 @@ type JsReportResult = JsReport.Response & {
29
export class JsReportService implements OnModuleInit {
30
private jsreport: JsReport.Reporter;
31
32
- constructor() {
+ async onModuleInit() {
33
this.jsreport = require('@jsreport/jsreport-core')({
34
sandbox: { allowedModules: '*' },
35
rootDirectory: __dirname,
@@ -40,9 +40,6 @@ export class JsReportService implements OnModuleInit {
40
},
41
42
});
43
- }
44
-
45
- async onModuleInit() {
46
this.jsreport.use(require('@jsreport/jsreport-xlsx')());
47
this.jsreport.use(require('@jsreport/jsreport-html-to-xlsx')());
48
this.jsreport.use(require(`@jsreport/jsreport-docx`)());
0 commit comments