es-toolkit 1.32.0-dev.1021 → 1.32.0-dev.1022
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/compat/index.js
CHANGED
|
@@ -2358,7 +2358,7 @@ function assignInImpl(object, source) {
|
|
|
2358
2358
|
const keys = keysIn(source);
|
|
2359
2359
|
for (let i = 0; i < keys.length; i++) {
|
|
2360
2360
|
const key = keys[i];
|
|
2361
|
-
if (!isWeakSet$1.eq(object[key], source[key])) {
|
|
2361
|
+
if (!(key in object) || !isWeakSet$1.eq(object[key], source[key])) {
|
|
2362
2362
|
object[key] = source[key];
|
|
2363
2363
|
}
|
|
2364
2364
|
}
|
|
@@ -11,7 +11,7 @@ function assignInImpl(object, source) {
|
|
|
11
11
|
const keys = keysIn(source);
|
|
12
12
|
for (let i = 0; i < keys.length; i++) {
|
|
13
13
|
const key = keys[i];
|
|
14
|
-
if (!eq(object[key], source[key])) {
|
|
14
|
+
if (!(key in object) || !eq(object[key], source[key])) {
|
|
15
15
|
object[key] = source[key];
|
|
16
16
|
}
|
|
17
17
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-toolkit",
|
|
3
3
|
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
|
|
4
|
-
"version": "1.32.0-dev.
|
|
4
|
+
"version": "1.32.0-dev.1022+59d76e80",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|