@browserless.io/browserless 2.10.0 → 2.12.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.
- package/CHANGELOG.md +6 -1
- package/build/browsers/chromium.cdp.d.ts +1 -0
- package/build/browsers/chromium.cdp.js +3 -0
- package/build/browsers/chromium.playwright.d.ts +1 -0
- package/build/browsers/chromium.playwright.js +3 -0
- package/build/browsers/firefox.playwright.d.ts +1 -0
- package/build/browsers/firefox.playwright.js +3 -0
- package/build/browsers/index.d.ts +0 -1
- package/build/browsers/index.js +3 -5
- package/build/browsers/webkit.playwright.d.ts +1 -0
- package/build/browsers/webkit.playwright.js +3 -0
- package/build/routes/chrome/http/content.post.body.json +8 -8
- package/build/routes/chrome/http/pdf.post.body.json +8 -8
- package/build/routes/chrome/http/scrape.post.body.json +8 -8
- package/build/routes/chrome/http/screenshot.post.body.json +8 -8
- package/build/routes/chromium/http/content.post.body.json +8 -8
- package/build/routes/chromium/http/pdf.post.body.json +8 -8
- package/build/routes/chromium/http/scrape.post.body.json +8 -8
- package/build/routes/chromium/http/screenshot.post.body.json +8 -8
- package/build/routes/management/http/pressure.get.d.ts +47 -45
- package/build/routes/management/http/pressure.get.js +13 -11
- package/build/routes/management/http/pressure.get.response.json +74 -65
- package/package.json +2 -2
- package/src/browsers/chromium.cdp.ts +4 -0
- package/src/browsers/chromium.playwright.ts +4 -0
- package/src/browsers/firefox.playwright.ts +4 -0
- package/src/browsers/index.ts +3 -5
- package/src/browsers/webkit.playwright.ts +4 -0
- package/src/routes/management/http/pressure.get.ts +70 -66
- package/static/docs/swagger.json +84 -75
- package/static/docs/swagger.min.json +83 -74
|
@@ -225,14 +225,14 @@
|
|
|
225
225
|
"length": {
|
|
226
226
|
"type": "number"
|
|
227
227
|
},
|
|
228
|
-
"__@toStringTag@
|
|
228
|
+
"__@toStringTag@21796": {
|
|
229
229
|
"type": "string",
|
|
230
230
|
"const": "Uint8Array"
|
|
231
231
|
}
|
|
232
232
|
},
|
|
233
233
|
"required": [
|
|
234
234
|
"BYTES_PER_ELEMENT",
|
|
235
|
-
"__@toStringTag@
|
|
235
|
+
"__@toStringTag@21796",
|
|
236
236
|
"buffer",
|
|
237
237
|
"byteLength",
|
|
238
238
|
"byteOffset",
|
|
@@ -267,13 +267,13 @@
|
|
|
267
267
|
"byteLength": {
|
|
268
268
|
"type": "number"
|
|
269
269
|
},
|
|
270
|
-
"__@toStringTag@
|
|
270
|
+
"__@toStringTag@21796": {
|
|
271
271
|
"type": "string"
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
274
|
"additionalProperties": false,
|
|
275
275
|
"required": [
|
|
276
|
-
"__@toStringTag@
|
|
276
|
+
"__@toStringTag@21796",
|
|
277
277
|
"byteLength"
|
|
278
278
|
]
|
|
279
279
|
},
|
|
@@ -283,18 +283,18 @@
|
|
|
283
283
|
"byteLength": {
|
|
284
284
|
"type": "number"
|
|
285
285
|
},
|
|
286
|
-
"__@species@
|
|
286
|
+
"__@species@21897": {
|
|
287
287
|
"$ref": "#/definitions/SharedArrayBuffer"
|
|
288
288
|
},
|
|
289
|
-
"__@toStringTag@
|
|
289
|
+
"__@toStringTag@21796": {
|
|
290
290
|
"type": "string",
|
|
291
291
|
"const": "SharedArrayBuffer"
|
|
292
292
|
}
|
|
293
293
|
},
|
|
294
294
|
"additionalProperties": false,
|
|
295
295
|
"required": [
|
|
296
|
-
"__@species@
|
|
297
|
-
"__@toStringTag@
|
|
296
|
+
"__@species@21897",
|
|
297
|
+
"__@toStringTag@21796",
|
|
298
298
|
"byteLength"
|
|
299
299
|
]
|
|
300
300
|
},
|
|
@@ -1098,7 +1098,7 @@
|
|
|
1098
1098
|
},
|
|
1099
1099
|
"info": {
|
|
1100
1100
|
"title": "Browserless",
|
|
1101
|
-
"version": "2.
|
|
1101
|
+
"version": "2.12.0-beta-1",
|
|
1102
1102
|
"x-logo": {
|
|
1103
1103
|
"altText": "browserless logo",
|
|
1104
1104
|
"url": "./docs/browserless-logo-inline.svg"
|
|
@@ -6149,76 +6149,85 @@
|
|
|
6149
6149
|
"schema": {
|
|
6150
6150
|
"type": "object",
|
|
6151
6151
|
"properties": {
|
|
6152
|
-
"
|
|
6153
|
-
"
|
|
6154
|
-
"
|
|
6155
|
-
"
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
"
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
""
|
|
6152
|
+
"pressure": {
|
|
6153
|
+
"type": "object",
|
|
6154
|
+
"properties": {
|
|
6155
|
+
"cpu": {
|
|
6156
|
+
"description": "An integer representing the percentage of CPU being used. For instance 92 means 92%",
|
|
6157
|
+
"type": [
|
|
6158
|
+
"null",
|
|
6159
|
+
"number"
|
|
6160
|
+
]
|
|
6161
|
+
},
|
|
6162
|
+
"date": {
|
|
6163
|
+
"description": "A number of milliseconds since epoch, or \"Date.now()\" equivalent.",
|
|
6164
|
+
"type": "number"
|
|
6165
|
+
},
|
|
6166
|
+
"isAvailable": {
|
|
6167
|
+
"description": "Whether or not a session can be connected and immediately ran on a health instance.",
|
|
6168
|
+
"type": "boolean"
|
|
6169
|
+
},
|
|
6170
|
+
"maxConcurrent": {
|
|
6171
|
+
"description": "The maximum amount of browsers that can be ran at a single time.",
|
|
6172
|
+
"type": "number"
|
|
6173
|
+
},
|
|
6174
|
+
"maxQueued": {
|
|
6175
|
+
"description": "The maximum amount of queued connections allowed at a single time.",
|
|
6176
|
+
"type": "number"
|
|
6177
|
+
},
|
|
6178
|
+
"memory": {
|
|
6179
|
+
"description": "An integer representing the percentage of Memory being used. For instance 95 means 95%",
|
|
6180
|
+
"type": [
|
|
6181
|
+
"null",
|
|
6182
|
+
"number"
|
|
6183
|
+
]
|
|
6184
|
+
},
|
|
6185
|
+
"message": {
|
|
6186
|
+
"description": "A human-readable message as the overall status of the instance.",
|
|
6187
|
+
"type": "string"
|
|
6188
|
+
},
|
|
6189
|
+
"queued": {
|
|
6190
|
+
"description": "The current number of connect or API calls pending to run.",
|
|
6191
|
+
"type": "number"
|
|
6192
|
+
},
|
|
6193
|
+
"reason": {
|
|
6194
|
+
"description": "A simple single-word reason as to why an instance may or may not be available.",
|
|
6195
|
+
"enum": [
|
|
6196
|
+
"",
|
|
6197
|
+
"cpu",
|
|
6198
|
+
"full",
|
|
6199
|
+
"memory"
|
|
6200
|
+
],
|
|
6201
|
+
"type": "string"
|
|
6202
|
+
},
|
|
6203
|
+
"recentlyRejected": {
|
|
6204
|
+
"description": "The number of recent connections that were rejected due to the queue and concurrency\nlimits having been filled.",
|
|
6205
|
+
"type": "number"
|
|
6206
|
+
},
|
|
6207
|
+
"running": {
|
|
6208
|
+
"description": "The current number of running connections or API calls.",
|
|
6209
|
+
"type": "number"
|
|
6210
|
+
}
|
|
6211
|
+
},
|
|
6212
|
+
"additionalProperties": false,
|
|
6213
|
+
"required": [
|
|
6194
6214
|
"cpu",
|
|
6195
|
-
"
|
|
6196
|
-
"
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
"type": "number"
|
|
6215
|
+
"date",
|
|
6216
|
+
"isAvailable",
|
|
6217
|
+
"maxConcurrent",
|
|
6218
|
+
"maxQueued",
|
|
6219
|
+
"memory",
|
|
6220
|
+
"message",
|
|
6221
|
+
"queued",
|
|
6222
|
+
"reason",
|
|
6223
|
+
"recentlyRejected",
|
|
6224
|
+
"running"
|
|
6225
|
+
]
|
|
6207
6226
|
}
|
|
6208
6227
|
},
|
|
6209
6228
|
"additionalProperties": false,
|
|
6210
6229
|
"required": [
|
|
6211
|
-
"
|
|
6212
|
-
"date",
|
|
6213
|
-
"isAvailable",
|
|
6214
|
-
"maxConcurrent",
|
|
6215
|
-
"maxQueued",
|
|
6216
|
-
"memory",
|
|
6217
|
-
"message",
|
|
6218
|
-
"queued",
|
|
6219
|
-
"reason",
|
|
6220
|
-
"recentlyRejected",
|
|
6221
|
-
"running"
|
|
6230
|
+
"pressure"
|
|
6222
6231
|
],
|
|
6223
6232
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
6224
6233
|
}
|