@browserless.io/browserless 2.16.0 → 2.17.0-beta-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.
Files changed (65) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/bin/browserless.js +6 -4
  3. package/bin/scaffold/src/hello-world.http.ts +1 -1
  4. package/build/browserless.js +1 -1
  5. package/build/config.d.ts +6 -0
  6. package/build/config.js +6 -0
  7. package/build/routes/chrome/http/content.post.body.json +38 -8
  8. package/build/routes/chrome/http/pdf.post.body.json +38 -8
  9. package/build/routes/chrome/http/scrape.post.body.json +38 -8
  10. package/build/routes/chrome/http/screenshot.post.body.json +38 -8
  11. package/build/routes/chromium/http/content.post.body.json +38 -8
  12. package/build/routes/chromium/http/pdf.post.body.json +38 -8
  13. package/build/routes/chromium/http/scrape.post.body.json +38 -8
  14. package/build/routes/chromium/http/screenshot.post.body.json +38 -8
  15. package/build/server.js +1 -1
  16. package/extensions/ublock/_locales/be/messages.json +1 -1
  17. package/extensions/ublock/_locales/br_FR/messages.json +2 -2
  18. package/extensions/ublock/_locales/bs/messages.json +5 -5
  19. package/extensions/ublock/_locales/eu/messages.json +1 -1
  20. package/extensions/ublock/_locales/it/messages.json +21 -21
  21. package/extensions/ublock/_locales/kn/messages.json +13 -13
  22. package/extensions/ublock/_locales/lt/messages.json +1 -1
  23. package/extensions/ublock/_locales/ms/messages.json +9 -9
  24. package/extensions/ublock/_locales/nb/messages.json +2 -2
  25. package/extensions/ublock/_locales/no/messages.json +2 -2
  26. package/extensions/ublock/_locales/sv/messages.json +2 -2
  27. package/extensions/ublock/_locales/tr/messages.json +4 -4
  28. package/extensions/ublock/_locales/zh_TW/messages.json +17 -17
  29. package/extensions/ublock/assets/assets.json +4 -3
  30. package/extensions/ublock/assets/resources/scriptlets.js +208 -57
  31. package/extensions/ublock/assets/thirdparties/easylist/easylist.txt +3584 -4032
  32. package/extensions/ublock/assets/thirdparties/easylist/easyprivacy.txt +3732 -1683
  33. package/extensions/ublock/assets/thirdparties/pgl.yoyo.org/as/serverlist +27 -205
  34. package/extensions/ublock/assets/thirdparties/publicsuffix.org/list/effective_tld_names.dat +465 -434
  35. package/extensions/ublock/assets/thirdparties/urlhaus-filter/urlhaus-filter-online.txt +3232 -1382
  36. package/extensions/ublock/assets/ublock/badware.min.txt +867 -408
  37. package/extensions/ublock/assets/ublock/filters.min.txt +1382 -937
  38. package/extensions/ublock/assets/ublock/privacy.min.txt +43 -56
  39. package/extensions/ublock/assets/ublock/quick-fixes.min.txt +127 -71
  40. package/extensions/ublock/assets/ublock/unbreak.min.txt +145 -27
  41. package/extensions/ublock/js/contentscript-extra.js +25 -0
  42. package/extensions/ublock/js/contentscript.js +3 -1
  43. package/extensions/ublock/js/cosmetic-filtering.js +8 -7
  44. package/extensions/ublock/js/dom.js +8 -4
  45. package/extensions/ublock/js/epicker-ui.js +1 -1
  46. package/extensions/ublock/js/s14e-serializer.js +2 -1
  47. package/extensions/ublock/js/static-filtering-parser.js +255 -254
  48. package/extensions/ublock/js/storage.js +7 -6
  49. package/extensions/ublock/js/traffic.js +33 -34
  50. package/extensions/ublock/manifest.json +1 -1
  51. package/extensions/ublock/popup-fenix.html +1 -1
  52. package/package.json +15 -15
  53. package/src/browserless.ts +1 -1
  54. package/src/config.ts +9 -0
  55. package/src/server.ts +1 -1
  56. package/static/debugger/index.html +1 -1
  57. package/static/debugger/router.js +1 -0
  58. package/static/debugger/tracker.js +1 -1
  59. package/static/docs/swagger.json +40 -10
  60. package/static/docs/swagger.min.json +39 -9
  61. package/static/function/client.js +4120 -16782
  62. package/static/function/index.html +4120 -16782
  63. package/static/debugger/router.bundle.js +0 -2
  64. package/static/debugger/router.bundle.js.map +0 -1
  65. package/static/debugger/router.d.ts +0 -2
@@ -173,6 +173,10 @@
173
173
  "type": "string"
174
174
  }
175
175
  ]
176
+ },
177
+ "signal": {
178
+ "description": "A signal object that allows you to cancel the call.",
179
+ "$ref": "#/definitions/AbortSignal"
176
180
  }
177
181
  },
178
182
  "additionalProperties": false
@@ -186,6 +190,32 @@
186
190
  ],
187
191
  "type": "string"
188
192
  },
193
+ "AbortSignal": {
194
+ "type": "object",
195
+ "properties": {
196
+ "aborted": {
197
+ "type": "boolean"
198
+ },
199
+ "onabort": {
200
+ "anyOf": [
201
+ {
202
+ "type": "object",
203
+ "additionalProperties": false
204
+ },
205
+ {
206
+ "type": "null"
207
+ }
208
+ ]
209
+ },
210
+ "reason": {}
211
+ },
212
+ "additionalProperties": false,
213
+ "required": [
214
+ "aborted",
215
+ "onabort",
216
+ "reason"
217
+ ]
218
+ },
189
219
  "Partial<ResponseForRequest>": {
190
220
  "type": "object",
191
221
  "properties": {
@@ -225,14 +255,14 @@
225
255
  "length": {
226
256
  "type": "number"
227
257
  },
228
- "__@toStringTag@11061": {
258
+ "__@toStringTag@11909": {
229
259
  "type": "string",
230
260
  "const": "Uint8Array"
231
261
  }
232
262
  },
233
263
  "required": [
234
264
  "BYTES_PER_ELEMENT",
235
- "__@toStringTag@11061",
265
+ "__@toStringTag@11909",
236
266
  "buffer",
237
267
  "byteLength",
238
268
  "byteOffset",
@@ -267,13 +297,13 @@
267
297
  "byteLength": {
268
298
  "type": "number"
269
299
  },
270
- "__@toStringTag@11061": {
300
+ "__@toStringTag@11909": {
271
301
  "type": "string"
272
302
  }
273
303
  },
274
304
  "additionalProperties": false,
275
305
  "required": [
276
- "__@toStringTag@11061",
306
+ "__@toStringTag@11909",
277
307
  "byteLength"
278
308
  ]
279
309
  },
@@ -283,18 +313,18 @@
283
313
  "byteLength": {
284
314
  "type": "number"
285
315
  },
286
- "__@species@11100": {
316
+ "__@species@11948": {
287
317
  "$ref": "#/definitions/SharedArrayBuffer"
288
318
  },
289
- "__@toStringTag@11061": {
319
+ "__@toStringTag@11909": {
290
320
  "type": "string",
291
321
  "const": "SharedArrayBuffer"
292
322
  }
293
323
  },
294
324
  "additionalProperties": false,
295
325
  "required": [
296
- "__@species@11100",
297
- "__@toStringTag@11061",
326
+ "__@species@11948",
327
+ "__@toStringTag@11909",
298
328
  "byteLength"
299
329
  ]
300
330
  },
@@ -939,7 +969,7 @@
939
969
  },
940
970
  "info": {
941
971
  "title": "Browserless",
942
- "version": "2.16.0",
972
+ "version": "2.17.0-beta-1",
943
973
  "x-logo": {
944
974
  "altText": "browserless logo",
945
975
  "url": "./docs/browserless-logo-inline.svg"