@intuned/runtime-dev 1.0.4-remove-playwright.16 → 1.0.4-remove-playwright.18
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.
|
@@ -44,7 +44,7 @@ _commander.program.description("run auth session create").option("--cdpAddress <
|
|
|
44
44
|
async function runCreate() {
|
|
45
45
|
const generator = (0, _runApi.runApiGenerator)({
|
|
46
46
|
automationFunction: {
|
|
47
|
-
name: `${_constants.AUTH_SESSIONS_FOLDER_NAME}/create
|
|
47
|
+
name: `${_constants.AUTH_SESSIONS_FOLDER_NAME}/create`,
|
|
48
48
|
params: inputData
|
|
49
49
|
},
|
|
50
50
|
runOptions: {
|
|
@@ -15,6 +15,7 @@ async function tsNodeImport(apiName) {
|
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
const path = (0, _fileUtils.getFullPathInProject)(...apiName.split("/"));
|
|
18
|
+
console.log("pathpathpath", path);
|
|
18
19
|
const imported = await (specifier => new Promise(r => r(`${specifier}`)).then(s => _interopRequireWildcard(require(s))))(path);
|
|
19
20
|
return imported;
|
|
20
21
|
}
|
|
@@ -94,6 +94,7 @@ async function* runApiGenerator({
|
|
|
94
94
|
let page;
|
|
95
95
|
const validatedModuleResult = await importUsingImportFunction(automationFunction.name, importFunction);
|
|
96
96
|
if (validatedModuleResult.isErr()) {
|
|
97
|
+
console.log("validatedModuleResult", validatedModuleResult);
|
|
97
98
|
return (0, _neverthrow.err)(validatedModuleResult.error);
|
|
98
99
|
}
|
|
99
100
|
const importedModule = validatedModuleResult.value;
|
|
@@ -245,6 +246,7 @@ async function checkAuthSessionWithRetries(page, context, checkFn, retries = 3)
|
|
|
245
246
|
async function importUsingImportFunction(path, importFunction) {
|
|
246
247
|
try {
|
|
247
248
|
const imported = importFunction ? await importFunction(path) : await (specifier => new Promise(r => r(specifier)).then(s => _interopRequireWildcard(require(s))))(`../../../${path}.ts`);
|
|
249
|
+
console.log("imported importedimported", imported);
|
|
248
250
|
if (!imported || !imported.default || !imported.default.constructor) {
|
|
249
251
|
return (0, _neverthrow.err)(new _errors.InvalidApiError("API file path does not have a default export"));
|
|
250
252
|
}
|