@yklyklpackages/message-card 0.10.0 → 0.10.1

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.
package/dist/index.mjs CHANGED
@@ -2980,7 +2980,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
2980
2980
  var ys = arrObjKeys(obj, inspect2);
2981
2981
  var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
2982
2982
  var protoTag = obj instanceof Object ? "" : "null prototype";
2983
- var stringTag = !isPlainObject2 && toStringTag$1 && Object(obj) === obj && toStringTag$1 in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
2983
+ var stringTag = !isPlainObject2 && toStringTag$1 && Object(obj) === obj && toStringTag$1 in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
2984
2984
  var constructorTag = isPlainObject2 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
2985
2985
  var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
2986
2986
  if (ys.length === 0) {
@@ -3005,25 +3005,25 @@ function canTrustToString(obj) {
3005
3005
  return !toStringTag$1 || !(typeof obj === "object" && (toStringTag$1 in obj || typeof obj[toStringTag$1] !== "undefined"));
3006
3006
  }
3007
3007
  function isArray$4(obj) {
3008
- return toStr(obj) === "[object Array]" && canTrustToString(obj);
3008
+ return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
3009
3009
  }
3010
3010
  function isDate$1(obj) {
3011
- return toStr(obj) === "[object Date]" && canTrustToString(obj);
3011
+ return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
3012
3012
  }
3013
3013
  function isRegExp$2(obj) {
3014
- return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
3014
+ return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
3015
3015
  }
3016
3016
  function isError(obj) {
3017
- return toStr(obj) === "[object Error]" && canTrustToString(obj);
3017
+ return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
3018
3018
  }
3019
3019
  function isString$1(obj) {
3020
- return toStr(obj) === "[object String]" && canTrustToString(obj);
3020
+ return toStr$1(obj) === "[object String]" && canTrustToString(obj);
3021
3021
  }
3022
3022
  function isNumber$1(obj) {
3023
- return toStr(obj) === "[object Number]" && canTrustToString(obj);
3023
+ return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
3024
3024
  }
3025
3025
  function isBoolean$1(obj) {
3026
- return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
3026
+ return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
3027
3027
  }
3028
3028
  function isSymbol(obj) {
3029
3029
  if (hasShammedSymbols) {
@@ -3059,7 +3059,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
3059
3059
  function has$3(obj, key) {
3060
3060
  return hasOwn$1.call(obj, key);
3061
3061
  }
3062
- function toStr(obj) {
3062
+ function toStr$1(obj) {
3063
3063
  return objectToString.call(obj);
3064
3064
  }
3065
3065
  function nameOf(f) {
@@ -3368,7 +3368,7 @@ var syntax = SyntaxError;
3368
3368
  var uri = URIError;
3369
3369
  var abs$1 = Math.abs;
3370
3370
  var floor$1 = Math.floor;
3371
- var max$1 = Math.max;
3371
+ var max$2 = Math.max;
3372
3372
  var min$1 = Math.min;
3373
3373
  var pow$1 = Math.pow;
3374
3374
  var round$1 = Math.round;
@@ -3497,99 +3497,78 @@ function requireObject_getPrototypeOf() {
3497
3497
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
3498
3498
  return Object_getPrototypeOf;
3499
3499
  }
3500
- var implementation;
3501
- var hasRequiredImplementation;
3502
- function requireImplementation() {
3503
- if (hasRequiredImplementation) return implementation;
3504
- hasRequiredImplementation = 1;
3505
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
3506
- var toStr2 = Object.prototype.toString;
3507
- var max2 = Math.max;
3508
- var funcType = "[object Function]";
3509
- var concatty = function concatty2(a, b3) {
3510
- var arr = [];
3511
- for (var i = 0; i < a.length; i += 1) {
3512
- arr[i] = a[i];
3513
- }
3514
- for (var j3 = 0; j3 < b3.length; j3 += 1) {
3515
- arr[j3 + a.length] = b3[j3];
3516
- }
3517
- return arr;
3518
- };
3519
- var slicy = function slicy2(arrLike, offset) {
3520
- var arr = [];
3521
- for (var i = offset, j3 = 0; i < arrLike.length; i += 1, j3 += 1) {
3522
- arr[j3] = arrLike[i];
3523
- }
3524
- return arr;
3525
- };
3526
- var joiny = function(arr, joiner) {
3527
- var str = "";
3528
- for (var i = 0; i < arr.length; i += 1) {
3529
- str += arr[i];
3530
- if (i + 1 < arr.length) {
3531
- str += joiner;
3532
- }
3500
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
3501
+ var toStr = Object.prototype.toString;
3502
+ var max$1 = Math.max;
3503
+ var funcType = "[object Function]";
3504
+ var concatty = function concatty2(a, b3) {
3505
+ var arr = [];
3506
+ for (var i = 0; i < a.length; i += 1) {
3507
+ arr[i] = a[i];
3508
+ }
3509
+ for (var j3 = 0; j3 < b3.length; j3 += 1) {
3510
+ arr[j3 + a.length] = b3[j3];
3511
+ }
3512
+ return arr;
3513
+ };
3514
+ var slicy = function slicy2(arrLike, offset) {
3515
+ var arr = [];
3516
+ for (var i = offset, j3 = 0; i < arrLike.length; i += 1, j3 += 1) {
3517
+ arr[j3] = arrLike[i];
3518
+ }
3519
+ return arr;
3520
+ };
3521
+ var joiny = function(arr, joiner) {
3522
+ var str = "";
3523
+ for (var i = 0; i < arr.length; i += 1) {
3524
+ str += arr[i];
3525
+ if (i + 1 < arr.length) {
3526
+ str += joiner;
3533
3527
  }
3534
- return str;
3535
- };
3536
- implementation = function bind2(that) {
3537
- var target = this;
3538
- if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
3539
- throw new TypeError(ERROR_MESSAGE + target);
3540
- }
3541
- var args = slicy(arguments, 1);
3542
- var bound;
3543
- var binder = function() {
3544
- if (this instanceof bound) {
3545
- var result = target.apply(
3546
- this,
3547
- concatty(args, arguments)
3548
- );
3549
- if (Object(result) === result) {
3550
- return result;
3551
- }
3552
- return this;
3553
- }
3554
- return target.apply(
3555
- that,
3528
+ }
3529
+ return str;
3530
+ };
3531
+ var implementation$1 = function bind(that) {
3532
+ var target = this;
3533
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
3534
+ throw new TypeError(ERROR_MESSAGE + target);
3535
+ }
3536
+ var args = slicy(arguments, 1);
3537
+ var bound;
3538
+ var binder = function() {
3539
+ if (this instanceof bound) {
3540
+ var result = target.apply(
3541
+ this,
3556
3542
  concatty(args, arguments)
3557
3543
  );
3558
- };
3559
- var boundLength = max2(0, target.length - args.length);
3560
- var boundArgs = [];
3561
- for (var i = 0; i < boundLength; i++) {
3562
- boundArgs[i] = "$" + i;
3563
- }
3564
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
3565
- if (target.prototype) {
3566
- var Empty = function Empty2() {
3567
- };
3568
- Empty.prototype = target.prototype;
3569
- bound.prototype = new Empty();
3570
- Empty.prototype = null;
3544
+ if (Object(result) === result) {
3545
+ return result;
3546
+ }
3547
+ return this;
3571
3548
  }
3572
- return bound;
3549
+ return target.apply(
3550
+ that,
3551
+ concatty(args, arguments)
3552
+ );
3573
3553
  };
3574
- return implementation;
3575
- }
3576
- var functionBind;
3577
- var hasRequiredFunctionBind;
3578
- function requireFunctionBind() {
3579
- if (hasRequiredFunctionBind) return functionBind;
3580
- hasRequiredFunctionBind = 1;
3581
- var implementation2 = requireImplementation();
3582
- functionBind = Function.prototype.bind || implementation2;
3583
- return functionBind;
3584
- }
3585
- var functionCall;
3586
- var hasRequiredFunctionCall;
3587
- function requireFunctionCall() {
3588
- if (hasRequiredFunctionCall) return functionCall;
3589
- hasRequiredFunctionCall = 1;
3590
- functionCall = Function.prototype.call;
3591
- return functionCall;
3592
- }
3554
+ var boundLength = max$1(0, target.length - args.length);
3555
+ var boundArgs = [];
3556
+ for (var i = 0; i < boundLength; i++) {
3557
+ boundArgs[i] = "$" + i;
3558
+ }
3559
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
3560
+ if (target.prototype) {
3561
+ var Empty = function Empty2() {
3562
+ };
3563
+ Empty.prototype = target.prototype;
3564
+ bound.prototype = new Empty();
3565
+ Empty.prototype = null;
3566
+ }
3567
+ return bound;
3568
+ };
3569
+ var implementation = implementation$1;
3570
+ var functionBind = Function.prototype.bind || implementation;
3571
+ var functionCall = Function.prototype.call;
3593
3572
  var functionApply;
3594
3573
  var hasRequiredFunctionApply;
3595
3574
  function requireFunctionApply() {
@@ -3599,14 +3578,14 @@ function requireFunctionApply() {
3599
3578
  return functionApply;
3600
3579
  }
3601
3580
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
3602
- var bind$3 = requireFunctionBind();
3581
+ var bind$3 = functionBind;
3603
3582
  var $apply$1 = requireFunctionApply();
3604
- var $call$2 = requireFunctionCall();
3583
+ var $call$2 = functionCall;
3605
3584
  var $reflectApply = reflectApply;
3606
3585
  var actualApply = $reflectApply || bind$3.call($call$2, $apply$1);
3607
- var bind$2 = requireFunctionBind();
3586
+ var bind$2 = functionBind;
3608
3587
  var $TypeError$4 = type;
3609
- var $call$1 = requireFunctionCall();
3588
+ var $call$1 = functionCall;
3610
3589
  var $actualApply = actualApply;
3611
3590
  var callBindApplyHelpers = function callBindBasic(args) {
3612
3591
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -3672,8 +3651,8 @@ function requireHasown() {
3672
3651
  hasRequiredHasown = 1;
3673
3652
  var call = Function.prototype.call;
3674
3653
  var $hasOwn = Object.prototype.hasOwnProperty;
3675
- var bind2 = requireFunctionBind();
3676
- hasown = bind2.call(call, $hasOwn);
3654
+ var bind3 = functionBind;
3655
+ hasown = bind3.call(call, $hasOwn);
3677
3656
  return hasown;
3678
3657
  }
3679
3658
  var undefined$1;
@@ -3687,7 +3666,7 @@ var $TypeError$3 = type;
3687
3666
  var $URIError = uri;
3688
3667
  var abs = abs$1;
3689
3668
  var floor = floor$1;
3690
- var max = max$1;
3669
+ var max = max$2;
3691
3670
  var min = min$1;
3692
3671
  var pow = pow$1;
3693
3672
  var round = round$1;
@@ -3721,7 +3700,7 @@ var getProto = requireGetProto();
3721
3700
  var $ObjectGPO = requireObject_getPrototypeOf();
3722
3701
  var $ReflectGPO = requireReflect_getPrototypeOf();
3723
3702
  var $apply = requireFunctionApply();
3724
- var $call = requireFunctionCall();
3703
+ var $call = functionCall;
3725
3704
  var needsEval = {};
3726
3705
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
3727
3706
  var INTRINSICS = {
@@ -3892,7 +3871,7 @@ var LEGACY_ALIASES = {
3892
3871
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3893
3872
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3894
3873
  };
3895
- var bind$1 = requireFunctionBind();
3874
+ var bind$1 = functionBind;
3896
3875
  var hasOwn = requireHasown();
3897
3876
  var $concat = bind$1.call($call, Array.prototype.concat);
3898
3877
  var $spliceApply = bind$1.call($apply, Array.prototype.splice);
@@ -5231,6 +5210,7 @@ const handleCallFetchUpdateData = async ({ params }, { setTemplate, setReference
5231
5210
  } else {
5232
5211
  console.error(`请求返回异常:${JSON.stringify(json)}`);
5233
5212
  }
5213
+ return json;
5234
5214
  } else {
5235
5215
  console.error(`请求异常:${json}`);
5236
5216
  }
@@ -11868,7 +11848,7 @@ class CacheStorage {
11868
11848
  }
11869
11849
  }
11870
11850
  }
11871
- function bind(fn, thisArg) {
11851
+ function bind2(fn, thisArg) {
11872
11852
  return function wrap() {
11873
11853
  return fn.apply(thisArg, arguments);
11874
11854
  };
@@ -12031,7 +12011,7 @@ const extend = (a, b3, thisArg, { allOwnKeys } = {}) => {
12031
12011
  (val, key) => {
12032
12012
  if (thisArg && isFunction$1(val)) {
12033
12013
  Object.defineProperty(a, key, {
12034
- value: bind(val, thisArg),
12014
+ value: bind2(val, thisArg),
12035
12015
  writable: true,
12036
12016
  enumerable: true,
12037
12017
  configurable: true
@@ -14435,7 +14415,7 @@ Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
14435
14415
  });
14436
14416
  function createInstance(defaultConfig) {
14437
14417
  const context = new Axios$1(defaultConfig);
14438
- const instance = bind(Axios$1.prototype.request, context);
14418
+ const instance = bind2(Axios$1.prototype.request, context);
14439
14419
  utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
14440
14420
  utils$1.extend(instance, context, null, { allOwnKeys: true });
14441
14421
  instance.create = function create(instanceConfig) {