   constructor: (settings) ->
     # first check if sentry dsn is set as environment variable
     @_parseDSN(process.env.SENTRY_DSN or "")
-    
+
     # credentials are updated if explicitly passed in
     if settings?
       if _(settings).isString()

  _send: (data) =>
    unless @enabled
      return console.log @disable_message
      
    unless process.env.NODE_ENV in @enable_env
      return console.log "If #{process.env.NODE_ENV} was enabled, would have sent to Sentry:", data

    options =
      uri: "https://app.getsentry.com/api/#{@project_id}/store/"

      extra: extra if extra?

    @_send data

  _parseDSN: (dsn) =>
    if dsn
      parsed = nodeurl.parse(dsn)
