Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},{"./Concept":23,"./constants":29,"./helpers":31,"./utils":32,"axios":1}],25:[function(require,module,exports){
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var axios = require('axios');
var _require = require('./constants');
var API = _require.API;
var replaceVars = _require.replaceVars;
var INPUT_PATCH_PATH = API.INPUT_PATCH_PATH;
/**
* class representing an input
* @class
*/
var Input = function () {
function Input(_config, data) {
_classCallCheck(this, Input);
this.id = data.id;
this.createdAt = data.created_at || data.createdAt;
this.imageUrl = data.data.image.url;
this.score = data.score;
},{"./constants":29,"axios":1}],26:[function(require,module,exports){
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var axios = require('axios');
var Input = require('./Input');
var _require = require('./constants');
var API = _require.API;
var replaceVars = _require.replaceVars;
var INPUT_PATH = API.INPUT_PATH;
var INPUTS_PATH = API.INPUTS_PATH;
var INPUTS_STATUS_PATH = API.INPUTS_STATUS_PATH;
var SEARCH_PATH = API.SEARCH_PATH;
var _require2 = require('./utils');
var wrapToken = _require2.wrapToken;
var formatInput = _require2.formatInput;
var formatImagesSearch = _require2.formatImagesSearch;
var formatConceptsSearch = _require2.formatConceptsSearch;
var _require3 = require('./helpers');
var isSuccess = _require3.isSuccess;
},{}],24:[function(require,module,exports){
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var axios = require('axios');
var Concept = require('./Concept');
var _require = require('./constants');
var API = _require.API;
var replaceVars = _require.replaceVars;
var CONCEPTS_PATH = API.CONCEPTS_PATH;
var CONCEPT_PATH = API.CONCEPT_PATH;
var CONCEPT_SEARCH_PATH = API.CONCEPT_SEARCH_PATH;
var _require2 = require('./utils');
var wrapToken = _require2.wrapToken;
var formatConcept = _require2.formatConcept;
var _require3 = require('./helpers');
var isSuccess = _require3.isSuccess;
var checkType = _require3.checkType;
/**