@live-change/print-service 0.9.152 → 0.9.154

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/print-service",
3
- "version": "0.9.152",
3
+ "version": "0.9.154",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,13 +21,13 @@
21
21
  "url": "https://www.viamage.com/"
22
22
  },
23
23
  "dependencies": {
24
- "@live-change/framework": "^0.9.152",
25
- "@live-change/relations-plugin": "^0.9.152",
26
- "@live-change/user-service": "^0.9.152",
24
+ "@live-change/framework": "^0.9.154",
25
+ "@live-change/relations-plugin": "^0.9.154",
26
+ "@live-change/user-service": "^0.9.154",
27
27
  "got": "^11.8.6",
28
28
  "p-queue": "8.1.0",
29
29
  "playwright": "1.49.1"
30
30
  },
31
- "gitHead": "8252e4e0575937d0ccc334fad5cc40790a11d934",
31
+ "gitHead": "6d0dd934466e0ba5d792a5c98b0df27559ff4da0",
32
32
  "type": "module"
33
33
  }
package/printPdf.js CHANGED
@@ -44,6 +44,8 @@ export const printToPdfFileTask = task({
44
44
  type: String
45
45
  }
46
46
  },
47
+ maxRetries: 5,
48
+ retryDelay: (retryCount) => 2000 * Math.pow(2, retryCount),
47
49
  async execute({ path, data, timeout, media, options, waitForSelector, clipSelector, outputPath },
48
50
  { task, trigger, triggerService }, emit) {
49
51
  const all = 10
package/screenshot.js CHANGED
@@ -55,6 +55,8 @@ export const screenshotToFileTask = task({
55
55
  type: String
56
56
  }
57
57
  },
58
+ maxRetries: 5,
59
+ retryDelay: (retryCount) => 2000 * Math.pow(2, retryCount),
58
60
  async execute({ path, data, timeout, media, options, waitForSelector, viewport, outputPath, clipSelector },
59
61
  { task, trigger, triggerService }, emit) {
60
62
  const all = 10