Comparing version 1.1.1 to 1.2.1
@@ -427,15 +427,13 @@ 'use strict'; | ||
/** | ||
* Konuya bugün girilen entrylere erişmek için | ||
* Kendinize ait okunmamış mesaj sayısı | ||
* @async | ||
* @param params {Object} | ||
* @param params.p {Number} Sayfa sayısı | ||
* @return {Promise} | ||
* @todo not working | ||
*/ | ||
}, { | ||
key: 'getTopicEntrysToday', | ||
key: 'getMyUnreadMessagesCount', | ||
value: function () { | ||
var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(topic_id) { | ||
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { p: 1 }; | ||
var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() { | ||
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
return _regenerator2.default.wrap(function _callee10$(_context10) { | ||
@@ -446,3 +444,3 @@ while (1) { | ||
_context10.next = 2; | ||
return this.client.get(this.client_version + '/topic/' + topic_id + '/today', { params: params }); | ||
return this.client.get(this.client_version + '/message/totalunreadthreadcount', { params: params }); | ||
@@ -460,24 +458,21 @@ case 2: | ||
function getTopicEntrysToday(_x14) { | ||
function getMyUnreadMessagesCount() { | ||
return _ref11.apply(this, arguments); | ||
} | ||
return getTopicEntrysToday; | ||
return getMyUnreadMessagesCount; | ||
}() | ||
/** | ||
* Konuya girilen entrylere erişmek için | ||
* Takip edilen okunmamış konular'a ait okunmamış konu sayısı | ||
* @async | ||
* @param params {Object} | ||
* @param params.p {Number} Sayfa sayısı | ||
* @param params.day {String} Tarih | ||
* @return {Promise} | ||
* @todo not working | ||
*/ | ||
}, { | ||
key: 'getTopicEntrys', | ||
key: 'getMyUnreadTopicsCount', | ||
value: function () { | ||
var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(topic_id) { | ||
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { p: 1 }; | ||
var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11() { | ||
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
return _regenerator2.default.wrap(function _callee11$(_context11) { | ||
@@ -488,3 +483,3 @@ while (1) { | ||
_context11.next = 2; | ||
return this.client.get(this.client_version + '/topic/' + topic_id, { params: params }); | ||
return this.client.get(this.client_version + '/topic/unreadtopiccount', { params: params }); | ||
@@ -502,11 +497,11 @@ case 2: | ||
function getTopicEntrys(_x16) { | ||
function getMyUnreadTopicsCount() { | ||
return _ref12.apply(this, arguments); | ||
} | ||
return getTopicEntrys; | ||
return getMyUnreadTopicsCount; | ||
}() | ||
/** | ||
* Bugün girilen konular | ||
* Konuya bugün girilen entrylere erişmek için | ||
* @async | ||
@@ -516,9 +511,10 @@ * @param params {Object} | ||
* @return {Promise} | ||
* @todo not working | ||
*/ | ||
}, { | ||
key: 'getTodayTopics', | ||
key: 'getTopicEntrysToday', | ||
value: function () { | ||
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12() { | ||
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { p: 1 }; | ||
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(topic_id) { | ||
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { p: 1 }; | ||
return _regenerator2.default.wrap(function _callee12$(_context12) { | ||
@@ -529,3 +525,3 @@ while (1) { | ||
_context12.next = 2; | ||
return this.client.get(this.client_version + '/index/today', { params: params }); | ||
return this.client.get(this.client_version + '/topic/' + topic_id + '/today', { params: params }); | ||
@@ -543,22 +539,24 @@ case 2: | ||
function getTodayTopics() { | ||
function getTopicEntrysToday(_x16) { | ||
return _ref13.apply(this, arguments); | ||
} | ||
return getTodayTopics; | ||
return getTopicEntrysToday; | ||
}() | ||
/** | ||
* Bugün girilen popüler konular | ||
* Konuya girilen entrylere erişmek için | ||
* @async | ||
* @param params {Object} | ||
* @param params.p {Number} Sayfa sayısı | ||
* @param params.day {String} Tarih | ||
* @return {Promise} | ||
* @todo not working | ||
*/ | ||
}, { | ||
key: 'getPopularTopics', | ||
key: 'getTopicEntrys', | ||
value: function () { | ||
var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13() { | ||
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { p: 1 }; | ||
var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(topic_id) { | ||
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { p: 1 }; | ||
return _regenerator2.default.wrap(function _callee13$(_context13) { | ||
@@ -569,3 +567,3 @@ while (1) { | ||
_context13.next = 2; | ||
return this.client.get(this.client_version + '/index/popular', { params: params }); | ||
return this.client.get(this.client_version + '/topic/' + topic_id, { params: params }); | ||
@@ -583,11 +581,11 @@ case 2: | ||
function getPopularTopics() { | ||
function getTopicEntrys(_x18) { | ||
return _ref14.apply(this, arguments); | ||
} | ||
return getPopularTopics; | ||
return getTopicEntrys; | ||
}() | ||
/** | ||
* Takip ettiğiniz yazarların entry girdiği konular | ||
* Bugün girilen konular | ||
* @async | ||
@@ -600,3 +598,3 @@ * @param params {Object} | ||
}, { | ||
key: 'getMyBuddysTopics', | ||
key: 'getTodayTopics', | ||
value: function () { | ||
@@ -610,3 +608,3 @@ var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() { | ||
_context14.next = 2; | ||
return this.client.get(this.client_version + '/index/feed/entry', { params: params }); | ||
return this.client.get(this.client_version + '/index/today', { params: params }); | ||
@@ -624,13 +622,14 @@ case 2: | ||
function getMyBuddysTopics() { | ||
function getTodayTopics() { | ||
return _ref15.apply(this, arguments); | ||
} | ||
return getMyBuddysTopics; | ||
return getTodayTopics; | ||
}() | ||
/** | ||
* Takip ettiğiniz yazarların favorilediği entryler | ||
* Bugün girilen popüler konular | ||
* @async | ||
* @param {Object} params - ## | ||
* @param params {Object} | ||
* @param params.p {Number} Sayfa sayısı | ||
* @return {Promise} | ||
@@ -640,3 +639,3 @@ */ | ||
}, { | ||
key: 'getMyBuddysFavorites', | ||
key: 'getPopularTopics', | ||
value: function () { | ||
@@ -650,3 +649,3 @@ var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15() { | ||
_context15.next = 2; | ||
return this.client.get(this.client_version + '/index/feed/favorites', { params: params }); | ||
return this.client.get(this.client_version + '/index/popular', { params: params }); | ||
@@ -664,21 +663,22 @@ case 2: | ||
function getMyBuddysFavorites() { | ||
function getPopularTopics() { | ||
return _ref16.apply(this, arguments); | ||
} | ||
return getMyBuddysFavorites; | ||
return getPopularTopics; | ||
}() | ||
/** | ||
* Ekşi sözlük konu başlıkları | ||
* Takip ettiğiniz yazarların entry girdiği konular | ||
* @async | ||
* @param {Object} params - ## | ||
* @return {Promise} | ||
* @param params {Object} | ||
* @param params.p {Number} Sayfa sayısı | ||
* @return {Promise} | ||
*/ | ||
}, { | ||
key: 'getChannels', | ||
key: 'getMyBuddysTopics', | ||
value: function () { | ||
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16() { | ||
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { p: 1 }; | ||
return _regenerator2.default.wrap(function _callee16$(_context16) { | ||
@@ -689,3 +689,3 @@ while (1) { | ||
_context16.next = 2; | ||
return this.client.get(this.client_version + '/channel/list', { params: params }); | ||
return this.client.get(this.client_version + '/index/feed/entry', { params: params }); | ||
@@ -703,21 +703,21 @@ case 2: | ||
function getChannels() { | ||
function getMyBuddysTopics() { | ||
return _ref17.apply(this, arguments); | ||
} | ||
return getChannels; | ||
return getMyBuddysTopics; | ||
}() | ||
/** | ||
* Ekşi sözlük başlıklara ait entryler için | ||
* Takip ettiğiniz yazarların favorilediği entryler | ||
* @async | ||
* @param {Object} params - ## | ||
* @return {Promise} | ||
* @return {Promise} | ||
*/ | ||
}, { | ||
key: 'getChannel', | ||
key: 'getMyBuddysFavorites', | ||
value: function () { | ||
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(name) { | ||
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { p: 1 }; | ||
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17() { | ||
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { p: 1 }; | ||
return _regenerator2.default.wrap(function _callee17$(_context17) { | ||
@@ -728,3 +728,3 @@ while (1) { | ||
_context17.next = 2; | ||
return this.client.get(this.client_version + '/index/channel/' + name, { params: params }); | ||
return this.client.get(this.client_version + '/index/feed/favorites', { params: params }); | ||
@@ -742,13 +742,13 @@ case 2: | ||
function getChannel(_x23) { | ||
function getMyBuddysFavorites() { | ||
return _ref18.apply(this, arguments); | ||
} | ||
return getChannel; | ||
return getMyBuddysFavorites; | ||
}() | ||
/** | ||
* | ||
* Ekşi sözlük konu başlıkları | ||
* @async | ||
* @param query {String} Aranan kelime | ||
* @param {Object} params - ## | ||
* @return {Promise} | ||
@@ -758,5 +758,6 @@ */ | ||
}, { | ||
key: 'getAutoCompletes', | ||
key: 'getChannels', | ||
value: function () { | ||
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee18(query) { | ||
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee18() { | ||
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
return _regenerator2.default.wrap(function _callee18$(_context18) { | ||
@@ -767,3 +768,3 @@ while (1) { | ||
_context18.next = 2; | ||
return this.client.get(this.client_version + '/autocomplete/query/' + query); | ||
return this.client.get(this.client_version + '/channel/list', { params: params }); | ||
@@ -781,6 +782,79 @@ case 2: | ||
function getAutoCompletes(_x24) { | ||
function getChannels() { | ||
return _ref19.apply(this, arguments); | ||
} | ||
return getChannels; | ||
}() | ||
/** | ||
* Ekşi sözlük başlıklara ait entryler için | ||
* @async | ||
* @param {Object} params - ## | ||
* @return {Promise} | ||
*/ | ||
}, { | ||
key: 'getChannel', | ||
value: function () { | ||
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee19(name) { | ||
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { p: 1 }; | ||
return _regenerator2.default.wrap(function _callee19$(_context19) { | ||
while (1) { | ||
switch (_context19.prev = _context19.next) { | ||
case 0: | ||
_context19.next = 2; | ||
return this.client.get(this.client_version + '/index/channel/' + name, { params: params }); | ||
case 2: | ||
return _context19.abrupt('return', _context19.sent); | ||
case 3: | ||
case 'end': | ||
return _context19.stop(); | ||
} | ||
} | ||
}, _callee19, this); | ||
})); | ||
function getChannel(_x25) { | ||
return _ref20.apply(this, arguments); | ||
} | ||
return getChannel; | ||
}() | ||
/** | ||
* | ||
* @async | ||
* @param query {String} Aranan kelime | ||
* @return {Promise} | ||
*/ | ||
}, { | ||
key: 'getAutoCompletes', | ||
value: function () { | ||
var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee20(query) { | ||
return _regenerator2.default.wrap(function _callee20$(_context20) { | ||
while (1) { | ||
switch (_context20.prev = _context20.next) { | ||
case 0: | ||
_context20.next = 2; | ||
return this.client.get(this.client_version + '/autocomplete/query/' + query); | ||
case 2: | ||
return _context20.abrupt('return', _context20.sent); | ||
case 3: | ||
case 'end': | ||
return _context20.stop(); | ||
} | ||
} | ||
}, _callee20, this); | ||
})); | ||
function getAutoCompletes(_x26) { | ||
return _ref21.apply(this, arguments); | ||
} | ||
return getAutoCompletes; | ||
@@ -801,24 +875,24 @@ }() | ||
value: function () { | ||
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee19() { | ||
var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee21() { | ||
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { term: null }; | ||
return _regenerator2.default.wrap(function _callee19$(_context19) { | ||
return _regenerator2.default.wrap(function _callee21$(_context21) { | ||
while (1) { | ||
switch (_context19.prev = _context19.next) { | ||
switch (_context21.prev = _context21.next) { | ||
case 0: | ||
_context19.next = 2; | ||
_context21.next = 2; | ||
return this.client.get(this.client_version + '/topic/query', { params: params }); | ||
case 2: | ||
return _context19.abrupt('return', _context19.sent); | ||
return _context21.abrupt('return', _context21.sent); | ||
case 3: | ||
case 'end': | ||
return _context19.stop(); | ||
return _context21.stop(); | ||
} | ||
} | ||
}, _callee19, this); | ||
}, _callee21, this); | ||
})); | ||
function setSearch() { | ||
return _ref20.apply(this, arguments); | ||
return _ref22.apply(this, arguments); | ||
} | ||
@@ -825,0 +899,0 @@ |
{ | ||
"name": "eksi", | ||
"version": "1.1.1", | ||
"version": "1.2.1", | ||
"main": "./dist", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -154,2 +154,22 @@ import axios from 'axios' | ||
/** | ||
* Kendinize ait okunmamış mesaj sayısı | ||
* @async | ||
* @param params {Object} | ||
* @return {Promise} | ||
*/ | ||
async getMyUnreadMessagesCount(params = { }) { | ||
return await this.client.get(`${this.client_version}/message/totalunreadthreadcount`, { params }) | ||
} | ||
/** | ||
* Takip edilen okunmamış konular'a ait okunmamış konu sayısı | ||
* @async | ||
* @param params {Object} | ||
* @return {Promise} | ||
*/ | ||
async getMyUnreadTopicsCount(params = { }) { | ||
return await this.client.get(`${this.client_version}/topic/unreadtopiccount`, { params }) | ||
} | ||
/** | ||
* Konuya bugün girilen entrylere erişmek için | ||
@@ -156,0 +176,0 @@ * @async |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1107286
1590