@directus/composables 11.2.5 → 11.2.6
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.js +3 -3
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, defineComponent, inject, isRef, nextTick, onBeforeUnmount, onMounted, onUnmounted, provide, reactive, ref, shallowRef, toRef, toRefs, unref, watch } from "vue";
|
|
2
2
|
import { API_INJECT, EXTENSIONS_INJECT, SDK_INJECT, STORES_INJECT } from "@directus/constants";
|
|
3
3
|
import { nanoid } from "nanoid";
|
|
4
|
-
import {
|
|
4
|
+
import { isEqual, isNil, throttle } from "lodash-es";
|
|
5
5
|
import { getEndpoint, moveInArray } from "@directus/utils";
|
|
6
6
|
import axios from "axios";
|
|
7
7
|
|
|
@@ -890,9 +890,9 @@ function useItems(collection, query) {
|
|
|
890
890
|
filter: null
|
|
891
891
|
};
|
|
892
892
|
let loadingTimeout = null;
|
|
893
|
-
const fetchItems =
|
|
893
|
+
const fetchItems = throttle((shouldUpdateCount) => {
|
|
894
894
|
Promise.all([getItems(), shouldUpdateCount ? getItemCount() : Promise.resolve()]);
|
|
895
|
-
},
|
|
895
|
+
}, 500);
|
|
896
896
|
watch([
|
|
897
897
|
collection,
|
|
898
898
|
limit,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@directus/composables",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.6",
|
|
4
4
|
"description": "Shared Vue composables for Directus use",
|
|
5
5
|
"homepage": "https://directus.io",
|
|
6
6
|
"repository": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"axios": "1.12.2",
|
|
26
26
|
"lodash-es": "4.17.21",
|
|
27
27
|
"nanoid": "5.1.6",
|
|
28
|
-
"@directus/
|
|
29
|
-
"@directus/
|
|
28
|
+
"@directus/constants": "14.0.0",
|
|
29
|
+
"@directus/utils": "13.0.12"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@directus/tsconfig": "3.0.0",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"typescript": "5.9.3",
|
|
38
38
|
"vitest": "3.2.4",
|
|
39
39
|
"vue": "3.5.22",
|
|
40
|
-
"@directus/extensions": "3.0.13",
|
|
41
40
|
"@directus/sdk": "20.1.1",
|
|
41
|
+
"@directus/extensions": "3.0.13",
|
|
42
42
|
"@directus/types": "13.3.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|