@freelog/tools-lib 0.1.60 → 0.1.64

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.
@@ -978,7 +978,11 @@ var USERNAME = /*#__PURE__*/new RegExp(/^([A-Za-z0-9][A-Za-z0-9-]{0,28})?[A-Za-z
978
978
 
979
979
  var PASSWORD = /*#__PURE__*/new RegExp(/^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,24})$/); // 自然数
980
980
 
981
- var NATURAL_NUMBER = /*#__PURE__*/new RegExp(/^[0-9]*$/);
981
+ var NATURAL_NUMBER = /*#__PURE__*/new RegExp(/^[0-9]*$/); // 对象的Bucket名称
982
+
983
+ var BUCKET_NAME = /*#__PURE__*/new RegExp(/^([a-z0-9][a-z0-9-]{0,61})?[a-z0-9]$/); // JS变量名称
984
+
985
+ var JS_VARIABLE_NAME = /*#__PURE__*/new RegExp(/^[A-Za-z$_][\w$_]*$/);
982
986
 
983
987
  var Regexp = {
984
988
  __proto__: null,
@@ -993,7 +997,9 @@ var Regexp = {
993
997
  EMAIL_ADDRESS: EMAIL_ADDRESS,
994
998
  USERNAME: USERNAME,
995
999
  PASSWORD: PASSWORD,
996
- NATURAL_NUMBER: NATURAL_NUMBER
1000
+ NATURAL_NUMBER: NATURAL_NUMBER,
1001
+ BUCKET_NAME: BUCKET_NAME,
1002
+ JS_VARIABLE_NAME: JS_VARIABLE_NAME
997
1003
  };
998
1004
 
999
1005
  var _excluded = ["resourceID"],
@@ -2431,7 +2437,8 @@ var _excluded$5 = ["nodeId"],
2431
2437
  _excluded6$2 = ["testResourceId"],
2432
2438
  _excluded7$2 = ["testResourceId"],
2433
2439
  _excluded8$2 = ["nodeId"],
2434
- _excluded9$2 = ["nodeId"];
2440
+ _excluded9$2 = ["nodeId"],
2441
+ _excluded10$2 = ["nodeId"];
2435
2442
  function testResources(_ref) {
2436
2443
  var nodeId = _ref.nodeId,
2437
2444
  params = _objectWithoutPropertiesLoose(_ref, _excluded$5);
@@ -2560,6 +2567,18 @@ function rulesRematch(_ref13) {
2560
2567
  data: params
2561
2568
  });
2562
2569
  }
2570
+ function batchGetAuths(_ref14) {
2571
+ var nodeId = _ref14.nodeId,
2572
+ params = _objectWithoutPropertiesLoose(_ref14, _excluded10$2);
2573
+
2574
+ // return FUtil.Axios.post(`/v2/testNodes/${nodeId}/rules/rematch`, params);
2575
+ return FUtil.Request({
2576
+ method: 'GET',
2577
+ // url: `/v2/auths/testResources/nodes/${nodeId}/result`,
2578
+ url: "/v2/auths/exhibits/" + nodeId + "/test/batchAuth/results",
2579
+ params: params
2580
+ });
2581
+ }
2563
2582
 
2564
2583
  var InformalNode = {
2565
2584
  __proto__: null,
@@ -2575,7 +2594,8 @@ var InformalNode = {
2575
2594
  testResourcesAuthTree: testResourcesAuthTree,
2576
2595
  testResourceDetails: testResourceDetails,
2577
2596
  searchTestResourcesByDependency: searchTestResourcesByDependency,
2578
- rulesRematch: rulesRematch
2597
+ rulesRematch: rulesRematch,
2598
+ batchGetAuths: batchGetAuths
2579
2599
  };
2580
2600
 
2581
2601
  var _excluded$6 = ["contractId"],