@shad0wz7/nestjs-pdf 2.3.0 → 2.3.1
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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4911,7 +4911,7 @@ var PuppeteerModule = class _PuppeteerModule {
|
|
|
4911
4911
|
this.pdfParams = pdfParams;
|
|
4912
4912
|
}
|
|
4913
4913
|
async onModuleInit() {
|
|
4914
|
-
await this.browserService.install(this.pdfParams.useLockedBrowser ?? false);
|
|
4914
|
+
if (!this.pdfParams.executablePath) await this.browserService.install(this.pdfParams.useLockedBrowser ?? false);
|
|
4915
4915
|
}
|
|
4916
4916
|
static forRoot(pdfParameters) {
|
|
4917
4917
|
const providers = [
|
package/dist/index.mjs
CHANGED
|
@@ -4894,7 +4894,7 @@ var PuppeteerModule = class _PuppeteerModule {
|
|
|
4894
4894
|
this.pdfParams = pdfParams;
|
|
4895
4895
|
}
|
|
4896
4896
|
async onModuleInit() {
|
|
4897
|
-
await this.browserService.install(this.pdfParams.useLockedBrowser ?? false);
|
|
4897
|
+
if (!this.pdfParams.executablePath) await this.browserService.install(this.pdfParams.useLockedBrowser ?? false);
|
|
4898
4898
|
}
|
|
4899
4899
|
static forRoot(pdfParameters) {
|
|
4900
4900
|
const providers = [
|