@freelog/tools-lib 0.1.112 → 0.1.115

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.
@@ -2101,18 +2101,27 @@ function relationTreeAuth(_ref12) {
2101
2101
  params: params
2102
2102
  });
2103
2103
  }
2104
- function batchAuth$1(_ref13) {
2104
+ function resourcesCount(_ref13) {
2105
2105
  var params = _extends({}, _ref13);
2106
2106
 
2107
2107
  return FUtil.Request({
2108
2108
  method: 'GET',
2109
- url: "/v2/auths/resources/batchAuth/results",
2109
+ url: "/v2/resources/count",
2110
2110
  params: params
2111
2111
  });
2112
2112
  }
2113
- function resourcesRecommend(_ref14) {
2113
+ function batchAuth$1(_ref14) {
2114
2114
  var params = _extends({}, _ref14);
2115
2115
 
2116
+ return FUtil.Request({
2117
+ method: 'GET',
2118
+ url: "/v2/auths/resources/batchAuth/results",
2119
+ params: params
2120
+ });
2121
+ }
2122
+ function resourcesRecommend(_ref15) {
2123
+ var params = _extends({}, _ref15);
2124
+
2116
2125
  return FUtil.Request({
2117
2126
  method: 'GET',
2118
2127
  url: "/v2/resources/recommend",
@@ -2145,6 +2154,7 @@ var Resource = {
2145
2154
  cycleDependencyCheck: cycleDependencyCheck$1,
2146
2155
  relationTree: relationTree$1,
2147
2156
  relationTreeAuth: relationTreeAuth,
2157
+ resourcesCount: resourcesCount,
2148
2158
  batchAuth: batchAuth$1,
2149
2159
  resourcesRecommend: resourcesRecommend
2150
2160
  };
@@ -2187,6 +2197,13 @@ function currentUserInfo() {
2187
2197
  url: '/v2/users/current'
2188
2198
  });
2189
2199
  }
2200
+ function users(params) {
2201
+ return FUtil.Request({
2202
+ method: 'GET',
2203
+ url: "/v2/users",
2204
+ params: params
2205
+ });
2206
+ }
2190
2207
  function userDetails(params) {
2191
2208
  return FUtil.Request({
2192
2209
  method: 'GET',
@@ -2302,6 +2319,7 @@ var User = {
2302
2319
  login: login$1,
2303
2320
  logout: logout,
2304
2321
  currentUserInfo: currentUserInfo,
2322
+ users: users,
2305
2323
  userDetails: userDetails,
2306
2324
  logon: logon$1,
2307
2325
  resetPassword: resetPassword,
@@ -2889,7 +2907,7 @@ function getFilesSha1Info(_x, _x2) {
2889
2907
 
2890
2908
  function _getFilesSha1Info() {
2891
2909
  _getFilesSha1Info = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(_ref, cdPartially) {
2892
- var sha1, needHandleSha1, allData, _yield$Storage$filesL, data, finishedInfo;
2910
+ var sha1, delay, needHandleSha1, allData, _yield$Storage$filesL, data, finishedInfo;
2893
2911
 
2894
2912
  return runtime_1.wrap(function _callee$(_context) {
2895
2913
  while (1) {
@@ -2911,12 +2929,12 @@ function _getFilesSha1Info() {
2911
2929
  return _context.abrupt("return", []);
2912
2930
 
2913
2931
  case 4:
2932
+ delay = 500;
2914
2933
  needHandleSha1 = [].concat(sha1);
2915
2934
  allData = [];
2916
2935
 
2917
- case 6:
2936
+ case 7:
2918
2937
 
2919
- console.log(needHandleSha1.join(','), 'needHandleSha1.join()90ojlskdfjsdlk');
2920
2938
  _context.next = 10;
2921
2939
  return filesListInfo({
2922
2940
  sha1: needHandleSha1.join(',')
@@ -2959,10 +2977,10 @@ function _getFilesSha1Info() {
2959
2977
 
2960
2978
  case 18:
2961
2979
  _context.next = 20;
2962
- return promiseSleep(3000);
2980
+ return promiseSleep(delay);
2963
2981
 
2964
2982
  case 20:
2965
- _context.next = 6;
2983
+ _context.next = 7;
2966
2984
  break;
2967
2985
 
2968
2986
  case 22:
@@ -3331,7 +3349,9 @@ var I18nNext = /*#__PURE__*/function () {
3331
3349
  lng: lng,
3332
3350
  fallbackLng: 'zh_CN',
3333
3351
  interpolation: {
3334
- escapeValue: false
3352
+ escapeValue: false,
3353
+ prefix: '{',
3354
+ suffix: '}'
3335
3355
  }
3336
3356
  });
3337
3357