How to use the tinder-wrapper.TinderWrapper function in tinder-wrapper

To help you get started, we’ve selected a few tinder-wrapper examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hfreire / get-me-a-date / src / channels / tinder.js View on Github external
constructor (options = {}) {
    super('tinder')

    this._options = _.defaults(options, defaultOptions)

    this._tinder = new TinderWrapper()

    Health.addCheck(this.name, () => new Promise((resolve, reject) => {
      if (this._tinder.circuitBreaker.isOpen()) {
        return reject(new Error(`circuit breaker is open`))
      } else {
        return resolve()
      }
    }))
  }

tinder-wrapper

A Tinder wrapper library

MIT
Latest version published 3 years ago

Package Health Score

39 / 100
Full package analysis

Popular tinder-wrapper functions

Similar packages