@yklyklpackages/message-card 0.4.0 → 0.5.0
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.cjs +89 -110
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +89 -110
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +85 -106
- package/dist/index.umd.js.map +1 -1
- package/package.json +8 -9
package/dist/index.cjs
CHANGED
|
@@ -1990,7 +1990,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
1990
1990
|
var ys = arrObjKeys(obj, inspect2);
|
|
1991
1991
|
var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
1992
1992
|
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
1993
|
-
var stringTag = !isPlainObject2 && toStringTag$1 && Object(obj) === obj && toStringTag$1 in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
1993
|
+
var stringTag = !isPlainObject2 && toStringTag$1 && Object(obj) === obj && toStringTag$1 in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
|
|
1994
1994
|
var constructorTag = isPlainObject2 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
1995
1995
|
var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
|
|
1996
1996
|
if (ys.length === 0) {
|
|
@@ -2015,25 +2015,25 @@ function canTrustToString(obj) {
|
|
|
2015
2015
|
return !toStringTag$1 || !(typeof obj === "object" && (toStringTag$1 in obj || typeof obj[toStringTag$1] !== "undefined"));
|
|
2016
2016
|
}
|
|
2017
2017
|
function isArray$4(obj) {
|
|
2018
|
-
return toStr(obj) === "[object Array]" && canTrustToString(obj);
|
|
2018
|
+
return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
|
|
2019
2019
|
}
|
|
2020
2020
|
function isDate$1(obj) {
|
|
2021
|
-
return toStr(obj) === "[object Date]" && canTrustToString(obj);
|
|
2021
|
+
return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
|
|
2022
2022
|
}
|
|
2023
2023
|
function isRegExp$2(obj) {
|
|
2024
|
-
return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
2024
|
+
return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
2025
2025
|
}
|
|
2026
2026
|
function isError(obj) {
|
|
2027
|
-
return toStr(obj) === "[object Error]" && canTrustToString(obj);
|
|
2027
|
+
return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
|
|
2028
2028
|
}
|
|
2029
2029
|
function isString$2(obj) {
|
|
2030
|
-
return toStr(obj) === "[object String]" && canTrustToString(obj);
|
|
2030
|
+
return toStr$1(obj) === "[object String]" && canTrustToString(obj);
|
|
2031
2031
|
}
|
|
2032
2032
|
function isNumber$1(obj) {
|
|
2033
|
-
return toStr(obj) === "[object Number]" && canTrustToString(obj);
|
|
2033
|
+
return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
|
|
2034
2034
|
}
|
|
2035
2035
|
function isBoolean$1(obj) {
|
|
2036
|
-
return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
2036
|
+
return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
2037
2037
|
}
|
|
2038
2038
|
function isSymbol(obj) {
|
|
2039
2039
|
if (hasShammedSymbols) {
|
|
@@ -2069,7 +2069,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
|
|
|
2069
2069
|
function has$3(obj, key) {
|
|
2070
2070
|
return hasOwn$1.call(obj, key);
|
|
2071
2071
|
}
|
|
2072
|
-
function toStr(obj) {
|
|
2072
|
+
function toStr$1(obj) {
|
|
2073
2073
|
return objectToString.call(obj);
|
|
2074
2074
|
}
|
|
2075
2075
|
function nameOf(f) {
|
|
@@ -2378,7 +2378,7 @@ var syntax = SyntaxError;
|
|
|
2378
2378
|
var uri = URIError;
|
|
2379
2379
|
var abs$2 = Math.abs;
|
|
2380
2380
|
var floor$1 = Math.floor;
|
|
2381
|
-
var max$
|
|
2381
|
+
var max$2 = Math.max;
|
|
2382
2382
|
var min$1 = Math.min;
|
|
2383
2383
|
var pow$1 = Math.pow;
|
|
2384
2384
|
var round$2 = Math.round;
|
|
@@ -2507,99 +2507,78 @@ function requireObject_getPrototypeOf() {
|
|
|
2507
2507
|
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
2508
2508
|
return Object_getPrototypeOf;
|
|
2509
2509
|
}
|
|
2510
|
-
var
|
|
2511
|
-
var
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
var
|
|
2516
|
-
var
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
var
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
}
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2510
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
2511
|
+
var toStr = Object.prototype.toString;
|
|
2512
|
+
var max$1 = Math.max;
|
|
2513
|
+
var funcType = "[object Function]";
|
|
2514
|
+
var concatty = function concatty2(a, b) {
|
|
2515
|
+
var arr = [];
|
|
2516
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
2517
|
+
arr[i] = a[i];
|
|
2518
|
+
}
|
|
2519
|
+
for (var j2 = 0; j2 < b.length; j2 += 1) {
|
|
2520
|
+
arr[j2 + a.length] = b[j2];
|
|
2521
|
+
}
|
|
2522
|
+
return arr;
|
|
2523
|
+
};
|
|
2524
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
2525
|
+
var arr = [];
|
|
2526
|
+
for (var i = offset, j2 = 0; i < arrLike.length; i += 1, j2 += 1) {
|
|
2527
|
+
arr[j2] = arrLike[i];
|
|
2528
|
+
}
|
|
2529
|
+
return arr;
|
|
2530
|
+
};
|
|
2531
|
+
var joiny = function(arr, joiner) {
|
|
2532
|
+
var str = "";
|
|
2533
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
2534
|
+
str += arr[i];
|
|
2535
|
+
if (i + 1 < arr.length) {
|
|
2536
|
+
str += joiner;
|
|
2533
2537
|
}
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2538
|
+
}
|
|
2539
|
+
return str;
|
|
2540
|
+
};
|
|
2541
|
+
var implementation$1 = function bind(that) {
|
|
2542
|
+
var target = this;
|
|
2543
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
2544
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
2545
|
+
}
|
|
2546
|
+
var args = slicy(arguments, 1);
|
|
2547
|
+
var bound;
|
|
2548
|
+
var binder = function() {
|
|
2549
|
+
if (this instanceof bound) {
|
|
2550
|
+
var result = target.apply(
|
|
2551
|
+
this,
|
|
2552
|
+
concatty(args, arguments)
|
|
2553
|
+
);
|
|
2554
|
+
if (Object(result) === result) {
|
|
2555
|
+
return result;
|
|
2542
2556
|
}
|
|
2557
|
+
return this;
|
|
2543
2558
|
}
|
|
2544
|
-
return
|
|
2559
|
+
return target.apply(
|
|
2560
|
+
that,
|
|
2561
|
+
concatty(args, arguments)
|
|
2562
|
+
);
|
|
2545
2563
|
};
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
var
|
|
2554
|
-
if (this instanceof bound) {
|
|
2555
|
-
var result = target.apply(
|
|
2556
|
-
this,
|
|
2557
|
-
concatty(args, arguments)
|
|
2558
|
-
);
|
|
2559
|
-
if (Object(result) === result) {
|
|
2560
|
-
return result;
|
|
2561
|
-
}
|
|
2562
|
-
return this;
|
|
2563
|
-
}
|
|
2564
|
-
return target.apply(
|
|
2565
|
-
that,
|
|
2566
|
-
concatty(args, arguments)
|
|
2567
|
-
);
|
|
2564
|
+
var boundLength = max$1(0, target.length - args.length);
|
|
2565
|
+
var boundArgs = [];
|
|
2566
|
+
for (var i = 0; i < boundLength; i++) {
|
|
2567
|
+
boundArgs[i] = "$" + i;
|
|
2568
|
+
}
|
|
2569
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
2570
|
+
if (target.prototype) {
|
|
2571
|
+
var Empty2 = function Empty3() {
|
|
2568
2572
|
};
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
Empty2.prototype = target.prototype;
|
|
2579
|
-
bound.prototype = new Empty2();
|
|
2580
|
-
Empty2.prototype = null;
|
|
2581
|
-
}
|
|
2582
|
-
return bound;
|
|
2583
|
-
};
|
|
2584
|
-
return implementation;
|
|
2585
|
-
}
|
|
2586
|
-
var functionBind;
|
|
2587
|
-
var hasRequiredFunctionBind;
|
|
2588
|
-
function requireFunctionBind() {
|
|
2589
|
-
if (hasRequiredFunctionBind) return functionBind;
|
|
2590
|
-
hasRequiredFunctionBind = 1;
|
|
2591
|
-
var implementation2 = requireImplementation();
|
|
2592
|
-
functionBind = Function.prototype.bind || implementation2;
|
|
2593
|
-
return functionBind;
|
|
2594
|
-
}
|
|
2595
|
-
var functionCall;
|
|
2596
|
-
var hasRequiredFunctionCall;
|
|
2597
|
-
function requireFunctionCall() {
|
|
2598
|
-
if (hasRequiredFunctionCall) return functionCall;
|
|
2599
|
-
hasRequiredFunctionCall = 1;
|
|
2600
|
-
functionCall = Function.prototype.call;
|
|
2601
|
-
return functionCall;
|
|
2602
|
-
}
|
|
2573
|
+
Empty2.prototype = target.prototype;
|
|
2574
|
+
bound.prototype = new Empty2();
|
|
2575
|
+
Empty2.prototype = null;
|
|
2576
|
+
}
|
|
2577
|
+
return bound;
|
|
2578
|
+
};
|
|
2579
|
+
var implementation = implementation$1;
|
|
2580
|
+
var functionBind = Function.prototype.bind || implementation;
|
|
2581
|
+
var functionCall = Function.prototype.call;
|
|
2603
2582
|
var functionApply;
|
|
2604
2583
|
var hasRequiredFunctionApply;
|
|
2605
2584
|
function requireFunctionApply() {
|
|
@@ -2609,14 +2588,14 @@ function requireFunctionApply() {
|
|
|
2609
2588
|
return functionApply;
|
|
2610
2589
|
}
|
|
2611
2590
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
2612
|
-
var bind$3 =
|
|
2591
|
+
var bind$3 = functionBind;
|
|
2613
2592
|
var $apply$1 = requireFunctionApply();
|
|
2614
|
-
var $call$2 =
|
|
2593
|
+
var $call$2 = functionCall;
|
|
2615
2594
|
var $reflectApply = reflectApply;
|
|
2616
2595
|
var actualApply = $reflectApply || bind$3.call($call$2, $apply$1);
|
|
2617
|
-
var bind$2 =
|
|
2596
|
+
var bind$2 = functionBind;
|
|
2618
2597
|
var $TypeError$4 = type$2;
|
|
2619
|
-
var $call$1 =
|
|
2598
|
+
var $call$1 = functionCall;
|
|
2620
2599
|
var $actualApply = actualApply;
|
|
2621
2600
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
2622
2601
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -2682,8 +2661,8 @@ function requireHasown() {
|
|
|
2682
2661
|
hasRequiredHasown = 1;
|
|
2683
2662
|
var call2 = Function.prototype.call;
|
|
2684
2663
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
2685
|
-
var
|
|
2686
|
-
hasown =
|
|
2664
|
+
var bind3 = functionBind;
|
|
2665
|
+
hasown = bind3.call(call2, $hasOwn);
|
|
2687
2666
|
return hasown;
|
|
2688
2667
|
}
|
|
2689
2668
|
var undefined$1;
|
|
@@ -2697,7 +2676,7 @@ var $TypeError$3 = type$2;
|
|
|
2697
2676
|
var $URIError = uri;
|
|
2698
2677
|
var abs$1 = abs$2;
|
|
2699
2678
|
var floor = floor$1;
|
|
2700
|
-
var max = max$
|
|
2679
|
+
var max = max$2;
|
|
2701
2680
|
var min = min$1;
|
|
2702
2681
|
var pow = pow$1;
|
|
2703
2682
|
var round$1 = round$2;
|
|
@@ -2731,7 +2710,7 @@ var getProto = requireGetProto();
|
|
|
2731
2710
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
2732
2711
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
2733
2712
|
var $apply = requireFunctionApply();
|
|
2734
|
-
var $call =
|
|
2713
|
+
var $call = functionCall;
|
|
2735
2714
|
var needsEval = {};
|
|
2736
2715
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
2737
2716
|
var INTRINSICS = {
|
|
@@ -2902,7 +2881,7 @@ var LEGACY_ALIASES = {
|
|
|
2902
2881
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2903
2882
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2904
2883
|
};
|
|
2905
|
-
var bind$1 =
|
|
2884
|
+
var bind$1 = functionBind;
|
|
2906
2885
|
var hasOwn = requireHasown();
|
|
2907
2886
|
var $concat = bind$1.call($call, Array.prototype.concat);
|
|
2908
2887
|
var $spliceApply = bind$1.call($apply, Array.prototype.splice);
|
|
@@ -30469,7 +30448,7 @@ class CacheStorage {
|
|
|
30469
30448
|
}
|
|
30470
30449
|
}
|
|
30471
30450
|
}
|
|
30472
|
-
function
|
|
30451
|
+
function bind2(fn, thisArg) {
|
|
30473
30452
|
return function wrap() {
|
|
30474
30453
|
return fn.apply(thisArg, arguments);
|
|
30475
30454
|
};
|
|
@@ -30607,7 +30586,7 @@ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
|
30607
30586
|
forEach(b, (val, key) => {
|
|
30608
30587
|
if (thisArg && isFunction$1(val)) {
|
|
30609
30588
|
Object.defineProperty(a, key, {
|
|
30610
|
-
value:
|
|
30589
|
+
value: bind2(val, thisArg),
|
|
30611
30590
|
writable: true,
|
|
30612
30591
|
enumerable: true,
|
|
30613
30592
|
configurable: true
|
|
@@ -32924,7 +32903,7 @@ Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
|
|
|
32924
32903
|
});
|
|
32925
32904
|
function createInstance(defaultConfig2) {
|
|
32926
32905
|
const context = new Axios$1(defaultConfig2);
|
|
32927
|
-
const instance =
|
|
32906
|
+
const instance = bind2(Axios$1.prototype.request, context);
|
|
32928
32907
|
utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
|
|
32929
32908
|
utils$1.extend(instance, context, null, { allOwnKeys: true });
|
|
32930
32909
|
instance.create = function create(instanceConfig) {
|