import { sendRequest } from './util';

export default function sentry(): object {
  return {

    fetch(options: object = {}): undefined {
      return new Promise((resolve: object, reject: object): undefined =>
        sendRequest(
          'ssd-api.jpl.nasa.gov',
          '/sentry.api',
          options,
          (err: string, data: object): undefined => {
            if (err) return reject(new Error(err));
            return resolve(data);
          },
          true
        )
      );
    },

  };
}

@@ -57,21 +57,20 @@
 nction s
-entry
+cout
 (): obje
@@ -276,13 +276,12 @@
  '/s
-entry
+cout
 .api

fix Scout module