@intuned/runtime-dev 0.1.0-test.26 → 0.1.0-test.27
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,7 +1,11 @@
|
|
|
1
1
|
import { authSessionsContextsStore } from "./store";
|
|
2
2
|
import { getTraceFilePath, isHeadless, importModule } from "../../utils";
|
|
3
3
|
import * as fs from "fs-extra";
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
runApiGenerator,
|
|
6
|
+
type RunApiResult,
|
|
7
|
+
type RunApiResultWithSessionOk,
|
|
8
|
+
} from "@intuned/runtime/dist/common/runApi";
|
|
5
9
|
import type { RequestMoreInfoDetails } from "@intuned/runtime/dist/runtime";
|
|
6
10
|
|
|
7
11
|
export async function createAuthSession({
|
|
@@ -74,7 +78,7 @@ export async function createAuthSession({
|
|
|
74
78
|
|
|
75
79
|
const result = await createGenerator.next();
|
|
76
80
|
|
|
77
|
-
if (result.done) {
|
|
81
|
+
if (result.done === true) {
|
|
78
82
|
const r = result.value;
|
|
79
83
|
|
|
80
84
|
if (r.isErr()) {
|
|
@@ -13,7 +13,6 @@ async function getSettings() {
|
|
|
13
13
|
const settings = await (0, _fsExtra.readJSON)(settingsFilePath);
|
|
14
14
|
if (settings) {
|
|
15
15
|
const parsed = _settingsSchema.settingsSchema.safeParse(settings);
|
|
16
|
-
console.log(parsed);
|
|
17
16
|
if (parsed.success) {
|
|
18
17
|
return parsed.data;
|
|
19
18
|
} else {
|