@intuned/runtime-dev 0.1.0-test.41 → 0.1.0-test.43
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.
|
@@ -63,7 +63,7 @@ async function* runApiGenerator({
|
|
|
63
63
|
runOptions,
|
|
64
64
|
tracing,
|
|
65
65
|
auth
|
|
66
|
-
} =
|
|
66
|
+
} = inputParseResult.data;
|
|
67
67
|
let page;
|
|
68
68
|
let context;
|
|
69
69
|
let downloadsPath;
|
|
@@ -254,13 +254,6 @@ async function importUsingImportFunction(path, importFunction) {
|
|
|
254
254
|
}
|
|
255
255
|
return (0, _neverthrow.err)(new _errors.InvalidApiError("API file path does not have a default async function/generator export"));
|
|
256
256
|
} catch (error) {
|
|
257
|
-
|
|
258
|
-
return (0, _neverthrow.err)(new _errors.ApiNotFoundError(path));
|
|
259
|
-
}
|
|
260
|
-
if ((error === null || error === void 0 ? void 0 : error.code) === "ERR_MODULE_NOT_FOUND") {
|
|
261
|
-
console.log("API not found", error);
|
|
262
|
-
return (0, _neverthrow.err)(new _errors.ApiNotFoundError(path));
|
|
263
|
-
}
|
|
264
|
-
throw error;
|
|
257
|
+
return (0, _neverthrow.err)(new _errors.ApiNotFoundError(path));
|
|
265
258
|
}
|
|
266
259
|
}
|