Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

View File

@@ -50,13 +50,15 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/* eslint-disable local/prefer-spread-eventually, local/prefer-rest-params-eventually */
class ReportDispatcher {
// @ts-ignore
// @ts-ignore
// @ts-ignore
// @ts-ignore
// @ts-ignore
// @ts-ignore
// @ts-expect-error
// @ts-expect-error
// @ts-expect-error
// @ts-expect-error
// @ts-expect-error
// @ts-expect-error
constructor(methods) {
_defineProperty(this, 'addReporter', void 0);
@@ -81,8 +83,8 @@ class ReportDispatcher {
for (let i = 0; i < dispatchedMethods.length; i++) {
const method = dispatchedMethods[i];
this[method] = (function(m) {
return function() {
this[method] = (function (m) {
return function () {
dispatch(m, arguments);
};
})(method);
@@ -91,15 +93,15 @@ class ReportDispatcher {
let reporters = [];
let fallbackReporter = null;
this.addReporter = function(reporter) {
this.addReporter = function (reporter) {
reporters.push(reporter);
};
this.provideFallbackReporter = function(reporter) {
this.provideFallbackReporter = function (reporter) {
fallbackReporter = reporter;
};
this.clearReporters = function() {
this.clearReporters = function () {
reporters = [];
};
@@ -114,7 +116,7 @@ class ReportDispatcher {
const reporter = reporters[i];
if (reporter[method]) {
// @ts-ignore
// @ts-expect-error
reporter[method].apply(reporter, args);
}
}