@geexcode/geex-angular 0.0.33 → 0.0.34
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 +6 -13
- package/dist/index.mjs +6 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -165,21 +165,14 @@ function createTenantModule(injector) {
|
|
|
165
165
|
}
|
|
166
166
|
function createAuthModule(injector) {
|
|
167
167
|
const user = (0, import_core.signal)(null);
|
|
168
|
-
let _initPromise = null;
|
|
169
168
|
const module2 = {
|
|
170
|
-
init: () => {
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
init: async () => {
|
|
170
|
+
try {
|
|
171
|
+
const userData = await module2.loadUserData();
|
|
172
|
+
user.set(userData ?? null);
|
|
173
|
+
} catch (err) {
|
|
174
|
+
console.error(err);
|
|
173
175
|
}
|
|
174
|
-
_initPromise = (async () => {
|
|
175
|
-
try {
|
|
176
|
-
const userData = await module2.loadUserData();
|
|
177
|
-
user.set(userData ?? null);
|
|
178
|
-
} catch (err) {
|
|
179
|
-
console.error(err);
|
|
180
|
-
}
|
|
181
|
-
})();
|
|
182
|
-
return _initPromise;
|
|
183
176
|
},
|
|
184
177
|
user,
|
|
185
178
|
async loadUserData() {
|
package/dist/index.mjs
CHANGED
|
@@ -119,21 +119,14 @@ function createTenantModule(injector) {
|
|
|
119
119
|
}
|
|
120
120
|
function createAuthModule(injector) {
|
|
121
121
|
const user = signal(null);
|
|
122
|
-
let _initPromise = null;
|
|
123
122
|
const module = {
|
|
124
|
-
init: () => {
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
init: async () => {
|
|
124
|
+
try {
|
|
125
|
+
const userData = await module.loadUserData();
|
|
126
|
+
user.set(userData ?? null);
|
|
127
|
+
} catch (err) {
|
|
128
|
+
console.error(err);
|
|
127
129
|
}
|
|
128
|
-
_initPromise = (async () => {
|
|
129
|
-
try {
|
|
130
|
-
const userData = await module.loadUserData();
|
|
131
|
-
user.set(userData ?? null);
|
|
132
|
-
} catch (err) {
|
|
133
|
-
console.error(err);
|
|
134
|
-
}
|
|
135
|
-
})();
|
|
136
|
-
return _initPromise;
|
|
137
130
|
},
|
|
138
131
|
user,
|
|
139
132
|
async loadUserData() {
|