@dative-gpi/foundation-core-services 0.0.46 → 0.0.48
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/composables/useCore.ts +14 -16
- package/package.json +3 -3
package/composables/useCore.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ref } from "vue";
|
|
2
2
|
|
|
3
3
|
import { useOrganisationId } from "./useOrganisationId";
|
|
4
4
|
|
|
@@ -6,23 +6,21 @@ let called = false;
|
|
|
6
6
|
|
|
7
7
|
const ready = ref(false);
|
|
8
8
|
|
|
9
|
-
export function useCore() {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
export async function useCore() {
|
|
10
|
+
if (called) {
|
|
11
|
+
return {
|
|
12
|
+
ready
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
called = true;
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const { ready: organisationIdReady } = useOrganisationId();
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
ready.value = true;
|
|
23
|
-
});
|
|
20
|
+
await organisationIdReady;
|
|
21
|
+
ready.value = true;
|
|
24
22
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
return {
|
|
24
|
+
ready
|
|
25
|
+
};
|
|
28
26
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-core-services",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.48",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@dative-gpi/bones-ui": "^0.0.61",
|
|
14
|
-
"@dative-gpi/foundation-core-domain": "0.0.
|
|
14
|
+
"@dative-gpi/foundation-core-domain": "0.0.48",
|
|
15
15
|
"@microsoft/signalr": "^8.0.0",
|
|
16
16
|
"vue": "^3.2.0",
|
|
17
17
|
"vue-router": "^4.2.5"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "0029f53ff50ea72e704647e64d3419266ae680fa"
|
|
20
20
|
}
|