@codebucket/puppet-master 1.0.3 → 1.0.4
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/package.json +1 -1
- package/src/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -43,7 +43,7 @@ class PuppetMaster {
|
|
|
43
43
|
}
|
|
44
44
|
async pdf(opts) {
|
|
45
45
|
try {
|
|
46
|
-
const request = await this.axios.post("/pdf", {
|
|
46
|
+
const request = await this.axios.post("/pdf", { task: opts }, {
|
|
47
47
|
responseType: "stream"
|
|
48
48
|
});
|
|
49
49
|
await pipeline(request.data, fs_1.default.createWriteStream(opts.pdfPath));
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -34,7 +34,7 @@ export class PuppetMaster {
|
|
|
34
34
|
|
|
35
35
|
async pdf(opts: puppeteerOpts) {
|
|
36
36
|
try {
|
|
37
|
-
const request = await this.axios.post("/pdf", {
|
|
37
|
+
const request = await this.axios.post("/pdf", {task:opts}, {
|
|
38
38
|
responseType: "stream"
|
|
39
39
|
});
|
|
40
40
|
await pipeline(request.data, fs.createWriteStream(opts.pdfPath));
|