@arrai-innovations/reactive-helpers 2.6.0 → 2.6.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/package.json +1 -1
- package/use/listSubscription.js +1 -1
- package/use/objectSubscription.js +1 -1
- package/utils/getFakeId.js +1 -1
- package/utils/index.js +1 -0
- package/utils/loadingCombine.js +1 -1
package/package.json
CHANGED
package/use/listSubscription.js
CHANGED
|
@@ -4,7 +4,7 @@ import { cloneDeep, isEmpty, isObject } from "lodash";
|
|
|
4
4
|
import { assignReactiveObject } from "../utils/assignReactiveObject";
|
|
5
5
|
import inspect from "browser-util-inspect";
|
|
6
6
|
import { useCancellableIntent } from "../utils/cancellableIntent";
|
|
7
|
-
import loadingCombine from "../utils/loadingCombine";
|
|
7
|
+
import { loadingCombine } from "../utils/loadingCombine";
|
|
8
8
|
|
|
9
9
|
export class ListSubscriptionError extends Error {
|
|
10
10
|
constructor(message) {
|
|
@@ -3,7 +3,7 @@ import { computed, effectScope, reactive, toRef } from "vue";
|
|
|
3
3
|
import { assignReactiveObject } from "../utils/assignReactiveObject";
|
|
4
4
|
import { useObjectInstance } from "./objectInstance";
|
|
5
5
|
import { useCancellableIntent } from "../utils/cancellableIntent";
|
|
6
|
-
import loadingCombine from "../utils/loadingCombine";
|
|
6
|
+
import { loadingCombine } from "../utils/loadingCombine";
|
|
7
7
|
|
|
8
8
|
export class ObjectSubscriptionError extends Error {
|
|
9
9
|
constructor(message) {
|
package/utils/getFakeId.js
CHANGED
|
@@ -9,7 +9,7 @@ export function getFakeId(arraySetMapOrObject, key = "id") {
|
|
|
9
9
|
if (isSet(arraySetMapOrObject) || isMap(arraySetMapOrObject)) {
|
|
10
10
|
test = () => arraySetMapOrObject.has(fakeId);
|
|
11
11
|
} else if (isArray(arraySetMapOrObject)) {
|
|
12
|
-
test = () => arraySetMapOrObject.some((item) => item[key] === fakeId);
|
|
12
|
+
test = () => arraySetMapOrObject.some((item) => item?.[key] === fakeId);
|
|
13
13
|
} else {
|
|
14
14
|
test = () => fakeId in arraySetMapOrObject;
|
|
15
15
|
}
|
package/utils/index.js
CHANGED
package/utils/loadingCombine.js
CHANGED