Skip to content

Commit 993ba9a

Browse files
committed
chore: update dependencies
1 parent c0da0b0 commit 993ba9a

File tree

7 files changed

+301
-261
lines changed

7 files changed

+301
-261
lines changed

packages/function/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
"serverless"
3030
],
3131
"dependencies": {
32-
"isolated-function": "~0.1.26",
3332
"p-retry": "~4.6.1",
33+
"isolated-function": "~0.1.28",
3434
"require-one-of": "~1.0.20"
3535
},
3636
"devDependencies": {
3737
"@browserless/test": "^10.7.3",
38-
"acorn": "~8.14.0",
38+
"acorn": "~8.14.1",
3939
"acorn-walk": "~8.3.4",
4040
"ava": "5",
4141
"browserless": "^10.7.5",

packages/goto/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"p-timeout": "~4.1.0",
4040
"pretty-ms": "~7.0.1",
4141
"shallow-equal": "~3.1.0",
42-
"tough-cookie": "~5.1.0"
42+
"tough-cookie": "~5.1.2"
4343
},
4444
"devDependencies": {
4545
"@browserless/test": "^10.7.3",

packages/lighthouse/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"stats"
2525
],
2626
"dependencies": {
27-
"lighthouse": "~12.3.0"
27+
"lighthouse": "~12.4.0"
2828
},
2929
"devDependencies": {
3030
"@browserless/test": "^10.7.3",

packages/screenshot/src/pretty/prism.js

+74-64
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/* PrismJS 1.29.0
1+
/* PrismJS 1.30.0
22
https://prismjs.com/download.html#themes=prism&languages=clike+javascript */
33
var _self =
44
'undefined' != typeof window
55
? window
66
: 'undefined' != typeof WorkerGlobalScope && self instanceof WorkerGlobalScope
7-
? self
8-
: {},
7+
? self
8+
: {},
99
Prism = (function (e) {
1010
var n = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,
1111
t = 0,
@@ -18,8 +18,8 @@ var _self =
1818
return n instanceof i
1919
? new i(n.type, e(n.content), n.alias)
2020
: Array.isArray(n)
21-
? n.map(e)
22-
: n
21+
? n.map(e)
22+
: n
2323
.replace(/&/g, '&')
2424
.replace(/</g, '&lt;')
2525
.replace(/\u00a0/g, ' ')
@@ -43,11 +43,11 @@ var _self =
4343
t[i]
4444
? t[i]
4545
: ((r = []),
46-
(t[i] = r),
47-
n.forEach(function (n, a) {
48-
r[a] = e(n, t)
49-
}),
50-
r)
46+
(t[i] = r),
47+
n.forEach(function (n, a) {
48+
r[a] = e(n, t)
49+
}),
50+
r)
5151
)
5252
default:
5353
return n
@@ -67,7 +67,8 @@ var _self =
6767
},
6868
currentScript: function () {
6969
if ('undefined' == typeof document) return null
70-
if ('currentScript' in document) return document.currentScript
70+
if (document.currentScript && 'SCRIPT' === document.currentScript.tagName)
71+
return document.currentScript
7172
try {
7273
throw new Error()
7374
} catch (r) {
@@ -254,38 +255,38 @@ var _self =
254255
w !== n.tail && !(g && A >= g.reach);
255256
A += w.value.length, w = w.next
256257
) {
257-
var E = w.value
258+
var P = w.value
258259
if (n.length > e.length) return
259-
if (!(E instanceof i)) {
260-
var P,
261-
L = 1
260+
if (!(P instanceof i)) {
261+
var E,
262+
S = 1
262263
if (y) {
263-
if (!(P = l(b, A, e, m)) || P.index >= e.length) break
264-
var S = P.index,
265-
O = P.index + P[0].length,
266-
j = A
267-
for (j += w.value.length; S >= j; ) j += (w = w.next).value.length
268-
if (((A = j -= w.value.length), w.value instanceof i)) continue
269-
for (var C = w; C !== n.tail && (j < O || 'string' == typeof C.value); C = C.next)
270-
L++, (j += C.value.length)
271-
L--, (E = e.slice(A, j)), (P.index -= A)
272-
} else if (!(P = l(b, 0, E, m))) continue
273-
S = P.index
274-
var N = P[0],
275-
_ = E.slice(0, S),
276-
M = E.slice(S + N.length),
277-
W = A + E.length
264+
if (!(E = l(b, A, e, m)) || E.index >= e.length) break
265+
var L = E.index,
266+
O = E.index + E[0].length,
267+
C = A
268+
for (C += w.value.length; L >= C; ) C += (w = w.next).value.length
269+
if (((A = C -= w.value.length), w.value instanceof i)) continue
270+
for (var j = w; j !== n.tail && (C < O || 'string' == typeof j.value); j = j.next)
271+
S++, (C += j.value.length)
272+
S--, (P = e.slice(A, C)), (E.index -= A)
273+
} else if (!(E = l(b, 0, P, m))) continue
274+
L = E.index
275+
var N = E[0],
276+
_ = P.slice(0, L),
277+
M = P.slice(L + N.length),
278+
W = A + P.length
278279
g && W > g.reach && (g.reach = W)
279-
var z = w.prev
280+
var I = w.prev
280281
if (
281-
(_ && ((z = u(n, z, _)), (A += _.length)),
282-
c(n, z, L),
283-
(w = u(n, z, new i(f, p ? a.tokenize(N, p) : N, k, N))),
282+
(_ && ((I = u(n, I, _)), (A += _.length)),
283+
c(n, I, S),
284+
(w = u(n, I, new i(f, p ? a.tokenize(N, p) : N, k, N))),
284285
M && u(n, w, M),
285-
L > 1)
286+
S > 1)
286287
) {
287-
var I = { cause: f + ',' + d, reach: W }
288-
o(e, n, t, w.prev, A, I), g && I.reach > g.reach && (g.reach = I.reach)
288+
var T = { cause: f + ',' + d, reach: W }
289+
o(e, n, t, w.prev, A, T), g && T.reach > g.reach && (g.reach = T.reach)
289290
}
290291
}
291292
}
@@ -351,18 +352,18 @@ var _self =
351352
)
352353
return e.addEventListener
353354
? (a.disableWorkerMessageHandler ||
354-
e.addEventListener(
355-
'message',
356-
function (n) {
357-
var t = JSON.parse(n.data),
358-
r = t.language,
359-
i = t.code,
360-
l = t.immediateClose
361-
e.postMessage(a.highlight(i, a.languages[r], r)), l && e.close()
362-
},
363-
!1
364-
),
365-
a)
355+
e.addEventListener(
356+
'message',
357+
function (n) {
358+
var t = JSON.parse(n.data),
359+
r = t.language,
360+
i = t.code,
361+
l = t.immediateClose
362+
e.postMessage(a.highlight(i, a.languages[r], r)), l && e.close()
363+
},
364+
!1
365+
),
366+
a)
366367
: a
367368
var g = a.util.currentScript()
368369
function f () {
@@ -375,8 +376,8 @@ var _self =
375376
'loading' === h || ('interactive' === h && g && g.defer)
376377
? document.addEventListener('DOMContentLoaded', f)
377378
: window.requestAnimationFrame
378-
? window.requestAnimationFrame(f)
379-
: window.setTimeout(f, 16)
379+
? window.requestAnimationFrame(f)
380+
: window.setTimeout(f, 16)
380381
}
381382
return a
382383
})(_self)
@@ -389,11 +390,13 @@ Prism.languages.clike = {
389390
],
390391
string: { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: !0 },
391392
'class-name': {
392-
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
393+
pattern:
394+
/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
393395
lookbehind: !0,
394396
inside: { punctuation: /[.\\]/ }
395397
},
396-
keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
398+
keyword:
399+
/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
397400
boolean: /\b(?:false|true)\b/,
398401
function: /\b\w+(?=\()/,
399402
number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,
@@ -404,29 +407,32 @@ Prism.languages.clike = {
404407
'class-name': [
405408
Prism.languages.clike['class-name'],
406409
{
407-
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
410+
pattern:
411+
/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
408412
lookbehind: !0
409413
}
410414
],
411415
keyword: [
412416
{ pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0 },
413417
{
414-
pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
418+
pattern:
419+
/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,
415420
lookbehind: !0
416421
}
417422
],
418-
function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
423+
function:
424+
/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
419425
number: {
420426
pattern: RegExp(
421427
'(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])'
422428
),
423429
lookbehind: !0
424430
},
425-
operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
431+
operator:
432+
/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/
426433
})),
427-
(Prism.languages.javascript[
428-
'class-name'
429-
][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/),
434+
(Prism.languages.javascript['class-name'][0].pattern =
435+
/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/),
430436
Prism.languages.insertBefore('javascript', 'keyword', {
431437
regex: {
432438
pattern: RegExp(
@@ -446,17 +452,20 @@ Prism.languages.clike = {
446452
}
447453
},
448454
'function-variable': {
449-
pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
455+
pattern:
456+
/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,
450457
alias: 'function'
451458
},
452459
parameter: [
453460
{
454-
pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
461+
pattern:
462+
/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,
455463
lookbehind: !0,
456464
inside: Prism.languages.javascript
457465
},
458466
{
459-
pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
467+
pattern:
468+
/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,
460469
lookbehind: !0,
461470
inside: Prism.languages.javascript
462471
},
@@ -466,7 +475,8 @@ Prism.languages.clike = {
466475
inside: Prism.languages.javascript
467476
},
468477
{
469-
pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
478+
pattern:
479+
/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,
470480
lookbehind: !0,
471481
inside: Prism.languages.javascript
472482
}

0 commit comments

Comments
 (0)