@whitesev/pops 1.1.0 → 1.2.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.amd.js +11 -3
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +11 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +11 -3
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +11 -3
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +11 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +41 -41
package/dist/index.iife.js
CHANGED
|
@@ -1492,6 +1492,12 @@ var pops = (function () {
|
|
|
1492
1492
|
}
|
|
1493
1493
|
assign(target = {}, source = {}, isAdd = false) {
|
|
1494
1494
|
let UtilsContext = this;
|
|
1495
|
+
if (source == null) {
|
|
1496
|
+
return target;
|
|
1497
|
+
}
|
|
1498
|
+
if (target == null) {
|
|
1499
|
+
target = {};
|
|
1500
|
+
}
|
|
1495
1501
|
if (Array.isArray(source)) {
|
|
1496
1502
|
let canTraverse = source.filter((item) => {
|
|
1497
1503
|
return typeof item === "object";
|
|
@@ -1505,8 +1511,9 @@ var pops = (function () {
|
|
|
1505
1511
|
const targetKeyName = sourceKeyName;
|
|
1506
1512
|
let targetValue = target[targetKeyName];
|
|
1507
1513
|
let sourceValue = source[sourceKeyName];
|
|
1508
|
-
if (
|
|
1509
|
-
|
|
1514
|
+
if (typeof sourceValue === "object" &&
|
|
1515
|
+
sourceValue != null &&
|
|
1516
|
+
sourceKeyName in target &&
|
|
1510
1517
|
!UtilsContext.isDOM(sourceValue)) {
|
|
1511
1518
|
/* 源端的值是object类型,且不是元素节点 */
|
|
1512
1519
|
target[sourceKeyName] = UtilsContext.assign(targetValue, sourceValue, isAdd);
|
|
@@ -1521,6 +1528,7 @@ var pops = (function () {
|
|
|
1521
1528
|
let targetValue = target[targetKeyName];
|
|
1522
1529
|
let sourceValue = source[targetKeyName];
|
|
1523
1530
|
if (typeof sourceValue === "object" &&
|
|
1531
|
+
sourceValue != null &&
|
|
1524
1532
|
!UtilsContext.isDOM(sourceValue) &&
|
|
1525
1533
|
Object.keys(sourceValue).length) {
|
|
1526
1534
|
/* 源端的值是object类型,且不是元素节点 */
|
|
@@ -9918,7 +9926,7 @@ var pops = (function () {
|
|
|
9918
9926
|
/** 配置 */
|
|
9919
9927
|
config = {
|
|
9920
9928
|
/** 版本号 */
|
|
9921
|
-
version: "2024.7.
|
|
9929
|
+
version: "2024.7.14",
|
|
9922
9930
|
cssText: {
|
|
9923
9931
|
/** 主CSS */
|
|
9924
9932
|
index: indexCSS,
|