{"size": 1038, "ext": "js", "max_stars_repo_path": "test/fixtures/code-corps-ember/addon-tree-output/ember-keyboard/listeners/touch-events.js", "max_stars_repo_name": "kellyselden/ember-cli-dependency-graph", "max_stars_repo_stars_event_min_datetime": "2017-11-30T01:12:20.000Z", "max_stars_repo_stars_event_max_datetime": "2019-02-24T07:14:45.000Z", "max_issues_repo_path": "test/fixtures/code-corps-ember/addon-tree-output/ember-keyboard/listeners/touch-events.js", "max_issues_repo_name": "kellyselden/ember-cli-dependency-graph", "max_issues_repo_issues_event_min_datetime": "2017-12-07T01:01:47.000Z", "max_issues_repo_issues_event_max_datetime": "2018-12-24T11:59:40.000Z", "max_forks_repo_path": "test/fixtures/code-corps-ember/addon-tree-output/ember-keyboard/listeners/touch-events.js", "max_forks_repo_name": "kellyselden/ember-cli-dependency-graph", "max_forks_repo_forks_event_min_datetime": "2017-11-28T05:56:29.000Z", "max_forks_repo_forks_event_max_datetime": "2018-02-28T21:22:32.000Z"}
{"max_stars_count": 4, "max_issues_count": 8, "max_forks_count": 2, "avg_line_length": 29.6571428571, "max_line_length": 194, "alphanum_fraction": 0.6579961464}
define('ember-keyboard/listeners/touch-events', ['exports', 'ember-keyboard/utils/listener-name', 'ember-keyboard/fixtures/modifiers-array'], function (exports, _listenerName, _modifiersArray) {
  'use strict';

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.touchEnd = touchEnd;
  exports.touchStart = touchStart;


  var validateKeys = function validateKeys(keys) {
    keys.forEach(function (key) {
      if (_modifiersArray.default.indexOf(key) === -1) {
        /* eslint no-console: ["error", { allow: ["error"] }] */
        console.error('`' + key + '` is not a valid key name');
      }
    });
  };

  var formattedListener = function formattedListener(type, keysString) {
    var keys = keysString !== undefined ? keysString.split('+') : [];

    validateKeys(keys);

    return (0, _listenerName.default)(type, keys);
  };

  function touchEnd(keys) {
    return formattedListener('touchEnd', keys);
  }

  function touchStart(keys) {
    return formattedListener('touchstart', keys);
  }
});