@equinor/mad-core 0.16.5 → 0.16.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/CHANGELOG.md +8 -0
- package/dist/{chunk-PA36224F.js → chunk-Q2Z4GOVU.js} +4 -16
- package/dist/components/createCoreStackNavigator.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/screens/create-incident/CreateIncidentScreen.js +1 -1
- package/dist/components/screens/create-incident/createIncident.js +1 -1
- package/dist/index.js +1 -1
- package/dist/utils/createMadCoreNavigator.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -285,26 +285,14 @@ import {
|
|
|
285
285
|
import { addToast, ToastTypes, ToastType } from "@equinor/mad-toast";
|
|
286
286
|
import { MadAccount, MadAuthenticationResult } from "@equinor/mad-auth";
|
|
287
287
|
import { ExpoAuthSession } from "@equinor/mad-auth";
|
|
288
|
-
var authenticateSilently = (scopes) => (
|
|
289
|
-
// hasExpoAuthSession()
|
|
290
|
-
ExpoAuthSession.authenticateSilently(scopes)
|
|
291
|
-
);
|
|
288
|
+
var authenticateSilently = (scopes) => ExpoAuthSession.authenticateSilently(scopes);
|
|
292
289
|
var getAccount = () => __async(null, null, function* () {
|
|
293
|
-
return (
|
|
294
|
-
// hasExpoAuthSession() ?
|
|
295
|
-
Promise.resolve(ExpoAuthSession.getAccount())
|
|
296
|
-
);
|
|
290
|
+
return Promise.resolve(ExpoAuthSession.getAccount());
|
|
297
291
|
});
|
|
298
292
|
var signOut = () => __async(null, null, function* () {
|
|
299
|
-
return (
|
|
300
|
-
// hasExpoAuthSession() ?
|
|
301
|
-
ExpoAuthSession.signOut()
|
|
302
|
-
);
|
|
293
|
+
return ExpoAuthSession.signOut();
|
|
303
294
|
});
|
|
304
|
-
var authenticateInteractively = (scopes) => (
|
|
305
|
-
// hasExpoAuthSession()
|
|
306
|
-
ExpoAuthSession.authenticateInteractively(scopes)
|
|
307
|
-
);
|
|
295
|
+
var authenticateInteractively = (scopes) => ExpoAuthSession.authenticateInteractively(scopes);
|
|
308
296
|
|
|
309
297
|
// src/components/screens/create-incident/createIncident.ts
|
|
310
298
|
var createIncident = (data, env, serviceNow) => __async(null, null, function* () {
|
package/dist/components/index.js
CHANGED
package/dist/index.js
CHANGED