@freelog/tools-lib 0.1.111 → 0.1.114

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2115,7 +2115,7 @@ function resourcesRecommend(_ref14) {
2115
2115
 
2116
2116
  return FUtil.Request({
2117
2117
  method: 'GET',
2118
- url: "/v2/resources/recommend?recommendType=2",
2118
+ url: "/v2/resources/recommend",
2119
2119
  params: params
2120
2120
  });
2121
2121
  }
@@ -2187,6 +2187,13 @@ function currentUserInfo() {
2187
2187
  url: '/v2/users/current'
2188
2188
  });
2189
2189
  }
2190
+ function users(params) {
2191
+ return FUtil.Request({
2192
+ method: 'GET',
2193
+ url: "/v2/users",
2194
+ params: params
2195
+ });
2196
+ }
2190
2197
  function userDetails(params) {
2191
2198
  return FUtil.Request({
2192
2199
  method: 'GET',
@@ -2302,6 +2309,7 @@ var User = {
2302
2309
  login: login$1,
2303
2310
  logout: logout,
2304
2311
  currentUserInfo: currentUserInfo,
2312
+ users: users,
2305
2313
  userDetails: userDetails,
2306
2314
  logon: logon$1,
2307
2315
  resetPassword: resetPassword,
@@ -2889,7 +2897,7 @@ function getFilesSha1Info(_x, _x2) {
2889
2897
 
2890
2898
  function _getFilesSha1Info() {
2891
2899
  _getFilesSha1Info = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(_ref, cdPartially) {
2892
- var sha1, needHandleSha1, allData, _yield$Storage$filesL, data, finishedInfo;
2900
+ var sha1, delay, needHandleSha1, allData, _yield$Storage$filesL, data, finishedInfo;
2893
2901
 
2894
2902
  return runtime_1.wrap(function _callee$(_context) {
2895
2903
  while (1) {
@@ -2911,17 +2919,18 @@ function _getFilesSha1Info() {
2911
2919
  return _context.abrupt("return", []);
2912
2920
 
2913
2921
  case 4:
2922
+ delay = 500;
2914
2923
  needHandleSha1 = [].concat(sha1);
2915
2924
  allData = [];
2916
2925
 
2917
- case 6:
2926
+ case 7:
2918
2927
 
2919
- _context.next = 9;
2928
+ _context.next = 10;
2920
2929
  return filesListInfo({
2921
- sha1: needHandleSha1
2930
+ sha1: needHandleSha1.join(',')
2922
2931
  });
2923
2932
 
2924
- case 9:
2933
+ case 10:
2925
2934
  _yield$Storage$filesL = _context.sent;
2926
2935
  data = _yield$Storage$filesL.data;
2927
2936
  needHandleSha1 = data.filter(function (d) {
@@ -2950,24 +2959,24 @@ function _getFilesSha1Info() {
2950
2959
  allData = [].concat(allData, finishedInfo);
2951
2960
 
2952
2961
  if (!(needHandleSha1.length === 0)) {
2953
- _context.next = 17;
2962
+ _context.next = 18;
2954
2963
  break;
2955
2964
  }
2956
2965
 
2957
- return _context.abrupt("break", 21);
2966
+ return _context.abrupt("break", 22);
2958
2967
 
2959
- case 17:
2960
- _context.next = 19;
2961
- return promiseSleep(3000);
2968
+ case 18:
2969
+ _context.next = 20;
2970
+ return promiseSleep(delay);
2962
2971
 
2963
- case 19:
2964
- _context.next = 6;
2972
+ case 20:
2973
+ _context.next = 7;
2965
2974
  break;
2966
2975
 
2967
- case 21:
2976
+ case 22:
2968
2977
  return _context.abrupt("return", allData);
2969
2978
 
2970
- case 22:
2979
+ case 23:
2971
2980
  case "end":
2972
2981
  return _context.stop();
2973
2982
  }
@@ -3330,7 +3339,9 @@ var I18nNext = /*#__PURE__*/function () {
3330
3339
  lng: lng,
3331
3340
  fallbackLng: 'zh_CN',
3332
3341
  interpolation: {
3333
- escapeValue: false
3342
+ escapeValue: false,
3343
+ prefix: '{',
3344
+ suffix: '}'
3334
3345
  }
3335
3346
  });
3336
3347