From c1d91ff8a7608c77b88bc954f66af430e72a0ee5 Mon Sep 17 00:00:00 2001 From: Daniel Holmes Date: Tue, 24 Sep 2019 10:29:56 +1000 Subject: [PATCH] Remove unused dist file --- dist/RaiseErrorsReporter.js | 40 ------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 dist/RaiseErrorsReporter.js diff --git a/dist/RaiseErrorsReporter.js b/dist/RaiseErrorsReporter.js deleted file mode 100644 index 5ab5978..0000000 --- a/dist/RaiseErrorsReporter.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -// Was using a ConsoleReporter with quiet true (which is essentially a no-op) -// This implements graphql-compiler GraphQLReporter -// https://github.com/facebook/relay/blob/v1.7.0/packages/graphql-compiler/reporters/GraphQLReporter.js -// Wasn't able to find a way to import the GraphQLReporter interface to declare that it is -// implemented -class RaiseErrorsReporter { - constructor(logger) { - _defineProperty(this, "logger", void 0); - - this.logger = logger; - } - - reportMessage(message) { - if (this.logger) this.logger.log(message);else console.log(message); - } - /* eslint-disable no-unused-vars */ - - - reportTime(name, ms) {} // process.stdout.write('Report time: ' + name + ' ' + ms + '\n'); - - /* eslint-enable no-unused-vars */ - - - reportError(caughtLocation, error) { - // process.stdout.write('Report error: ' + caughtLocation + ' ' + error.toString() + '\n'); - throw error; - } - -} - -exports.default = RaiseErrorsReporter; \ No newline at end of file