@dative-gpi/foundation-core-services 0.0.41 → 0.0.42

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.
@@ -1,4 +1,3 @@
1
1
  export * from "./hubs";
2
2
  export * from "./services";
3
- export * from "./useCore";
4
- export * from "./useOrganisationId";
3
+ export * from "./useCore";
@@ -1,6 +1,6 @@
1
1
  import { onMounted, ref } from "vue";
2
2
 
3
- import { useOrganisationId } from "./useOrganisationId";
3
+ import { useOrganisationId } from "@dative-gpi/foundation-shared-services/composables";
4
4
 
5
5
  let called = false;
6
6
 
@@ -1,4 +1,4 @@
1
- import { useOrganisationId } from "../../composables/useOrganisationId";
1
+ import { useOrganisationId } from "@dative-gpi/foundation-shared-services/composables";
2
2
 
3
3
  const { organisationId } = useOrganisationId();
4
4
 
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.41",
4
+ "version": "0.0.42",
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.41",
14
+ "@dative-gpi/foundation-core-domain": "0.0.42",
15
15
  "@microsoft/signalr": "^8.0.0",
16
16
  "vue": "^3.2.0",
17
17
  "vue-router": "^4.2.5"
18
18
  },
19
- "gitHead": "35e8912ae4de63d3e590f6f4f80eb95619c5b57b"
19
+ "gitHead": "b04bea74796441bbb7176bcdd7d1a23317faa2b8"
20
20
  }
@@ -1,28 +0,0 @@
1
- import { ref, watch } from "vue";
2
-
3
- const organisationId = ref<string | null>(null);
4
-
5
- export const useOrganisationId = () => {
6
- const setOrganisationId = (payload: string) => {
7
- organisationId.value = payload;
8
- };
9
-
10
- const ready = new Promise((resolve) => {
11
- if (organisationId.value) {
12
- resolve(organisationId.value);
13
- }
14
- else {
15
- watch(organisationId, () => {
16
- if (organisationId.value) {
17
- resolve(organisationId.value);
18
- }
19
- });
20
- }
21
- });
22
-
23
- return {
24
- ready,
25
- organisationId,
26
- setOrganisationId
27
- };
28
- }