added 3.0.1
This commit is contained in:
parent
6e2b6ca024
commit
751245a2f0
|
|
@ -1,4 +1,4 @@
|
||||||
(function() {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function captureEvents(events) {
|
function captureEvents(events) {
|
||||||
|
|
@ -116,8 +116,8 @@
|
||||||
function getDeepMatches(object, pred, excludeKeys) {
|
function getDeepMatches(object, pred, excludeKeys) {
|
||||||
const keys = typeof object === 'object' && object ? Object.keys(object) : [];
|
const keys = typeof object === 'object' && object ? Object.keys(object) : [];
|
||||||
|
|
||||||
return keys.length ?
|
return keys.length
|
||||||
keys
|
? keys
|
||||||
.filter((key) => !excludeKeys.includes(key))
|
.filter((key) => !excludeKeys.includes(key))
|
||||||
.reduce((r, key) => {
|
.reduce((r, key) => {
|
||||||
const target = object[key];
|
const target = object[key];
|
||||||
|
|
@ -127,13 +127,13 @@
|
||||||
} else {
|
} else {
|
||||||
return [...r, ...getDeepMatches(target, pred, excludeKeys)]
|
return [...r, ...getDeepMatches(target, pred, excludeKeys)]
|
||||||
}
|
}
|
||||||
}, []) :
|
}, [] )
|
||||||
[]
|
: []
|
||||||
}
|
}
|
||||||
|
|
||||||
const importPath = /*@__PURE__*/ JSON.parse('"../background.js"');
|
const importPath = /*@__PURE__*/JSON.parse('"../background.js"');
|
||||||
const delayLength = /*@__PURE__*/ JSON.parse('0');
|
const delayLength = /*@__PURE__*/JSON.parse('0');
|
||||||
const excludedPaths = /*@__PURE__*/ JSON.parse('["extension"]');
|
const excludedPaths = /*@__PURE__*/JSON.parse('["extension"]');
|
||||||
|
|
||||||
const events = getDeepMatches(
|
const events = getDeepMatches(
|
||||||
chrome,
|
chrome,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue