@cocreate/utils 1.34.1 → 1.34.3
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/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/src/index.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.34.3](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.34.2...v1.34.3) (2024-07-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* $pull continue if key does not exist ([41f44a0](https://github.com/CoCreate-app/CoCreate-utils/commit/41f44a0f374ce2f264bc5cfcf37fae0279559351))
|
|
7
|
+
|
|
8
|
+
## [1.34.2](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.34.1...v1.34.2) (2024-06-23)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* bump dependencies ([c182805](https://github.com/CoCreate-app/CoCreate-utils/commit/c182805904267db3b47c54ec6c29df222ef35741))
|
|
14
|
+
|
|
1
15
|
## [1.34.1](https://github.com/CoCreate-app/CoCreate-utils/compare/v1.34.0...v1.34.1) (2024-06-23)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -257,6 +257,8 @@
|
|
|
257
257
|
if (!exists)
|
|
258
258
|
newObject[keys[i]].push(value)
|
|
259
259
|
} else if (operator === '$pull') {
|
|
260
|
+
if (!newObject[keys[i]])
|
|
261
|
+
continue
|
|
260
262
|
if (Array.isArray(value)) {
|
|
261
263
|
newObject[keys[i]] = newObject[keys[i]].filter(item => !Array.isArray(item) || !isEqualArray(item, value));
|
|
262
264
|
} else if (typeof value === 'object' && value !== null) {
|