@freelog/tools-lib 0.1.53 → 0.1.58

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.
@@ -974,7 +974,9 @@ var EMAIL_ADDRESS = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/; // 用户
974
974
  var USERNAME = /^(?!-)[A-Za-z0-9-]{1,30}(?<!-)$/; // 用户密码
975
975
  // export const PASSWORD = /^(?=.*[a-zA-Z])(?=.*[0-9]).{6,24}$/;
976
976
 
977
- var PASSWORD = /^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,24})$/;
977
+ var PASSWORD = /^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,24})$/; // 自然数
978
+
979
+ var NATURAL_NUMBER = /^[0-9]*$/;
978
980
 
979
981
  var Regexp = {
980
982
  __proto__: null,
@@ -988,7 +990,8 @@ var Regexp = {
988
990
  MOBILE_PHONE_NUMBER: MOBILE_PHONE_NUMBER,
989
991
  EMAIL_ADDRESS: EMAIL_ADDRESS,
990
992
  USERNAME: USERNAME,
991
- PASSWORD: PASSWORD
993
+ PASSWORD: PASSWORD,
994
+ NATURAL_NUMBER: NATURAL_NUMBER
992
995
  };
993
996
 
994
997
  var _excluded = ["resourceID"],
@@ -2182,7 +2185,7 @@ function resourceIsUsedByOther(params) {
2182
2185
  });
2183
2186
  }
2184
2187
  function resourcesDownload(params) {
2185
- return window.location.href = FUtil.Format.completeUrlByDomain('qi', true) + ("/v2/resources/" + params.resourceId + "/versions/" + params.version + "/download"); // return request.get(`/v2/resources/${params.resourceId}/versions/${params.$version}/download`, {
2188
+ return window.location.href = FUtil.Format.completeUrlByDomain('qi') + ("/v2/resources/" + params.resourceId + "/versions/" + params.version + "/download"); // return request.get(`/v2/resources/${params.resourceId}/versions/${params.$version}/download`, {
2186
2189
  // responseType: 'arraybuffer',
2187
2190
  // });
2188
2191
  }
@@ -2203,8 +2206,7 @@ function resolveResources(params) {
2203
2206
  // return FUtil.Axios.get(`/v2/resources/${params.resourceId}/resolveResources`);
2204
2207
  return FUtil.Request({
2205
2208
  method: 'GET',
2206
- url: "/v2/resources/" + params.resourceId + "/resolveResources",
2207
- params: params
2209
+ url: "/v2/resources/" + params.resourceId + "/resolveResources"
2208
2210
  });
2209
2211
  }
2210
2212
  function batchSetContracts(_ref8) {
@@ -2521,7 +2523,7 @@ function testResourcesAuthTree(_ref10) {
2521
2523
  // return FUtil.Axios.get(`/v2/testNodes/testResources/${testResourceId}`);
2522
2524
  return FUtil.Request({
2523
2525
  method: 'GET',
2524
- url: "https://api.freelog.com/v2/testNodes/testResources/" + testResourceId + "/authTree"
2526
+ url: "/v2/testNodes/testResources/" + testResourceId + "/authTree"
2525
2527
  });
2526
2528
  }
2527
2529
  function testResourceDetails(_ref11) {