@intuned/runtime-dev 0.1.0-test.20 → 0.1.0-test.21

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.
@@ -49,10 +49,7 @@ export async function checkAuthSession({
49
49
  },
50
50
  });
51
51
  if (result.isErr()) {
52
- return {
53
- status: 500,
54
- body: result.error,
55
- };
52
+ return result.error.apiResponse;
56
53
  }
57
54
  return {
58
55
  status: 200,
@@ -2,7 +2,7 @@ import { authSessionsContextsStore } from "./store";
2
2
  import { getTraceFilePath, isHeadless, importModule } from "../../utils";
3
3
  import * as fs from "fs-extra";
4
4
  import { runApiGenerator } from "@intuned/runtime/dist/common/runApi";
5
- import type { RequestMoreInfoDetails } from "@intuned/runtime/runtime";
5
+ import type { RequestMoreInfoDetails } from "@intuned/runtime/dist/runtime";
6
6
 
7
7
  export async function createAuthSession({
8
8
  parameters,
@@ -77,10 +77,7 @@ export async function createAuthSession({
77
77
  const r = result.value;
78
78
 
79
79
  if (r.isErr()) {
80
- return {
81
- status: 500,
82
- body: r.error,
83
- };
80
+ return r.error.apiResponse;
84
81
  }
85
82
 
86
83
  return {
@@ -1,4 +1,4 @@
1
- import type { RequestMoreInfoDetails } from "@intuned/runtime/runtime";
1
+ import type { RequestMoreInfoDetails } from "@intuned/runtime/dist/runtime";
2
2
  import type {
3
3
  RunApiResult,
4
4
  RunApiResultWithSessionOk,
@@ -243,5 +243,5 @@ async function validateModule(moduleToValidate) {
243
243
  func: moduleToValidate.default
244
244
  });
245
245
  }
246
- return (0, _neverthrow.err)(new _errors.InvalidApiError("API file path does not have a default async function/generator export"));
246
+ return (0, _neverthrow.err)(new _errors.InvalidApiError(`API file path does not have a default async function/generator export. Got ${moduleToValidate.default.constructor.name}`));
247
247
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "0.1.0-test.20",
3
+ "version": "0.1.0-test.21",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
7
- "./runtime": "./dist/runtime/index.js",
7
+ "./dist/runtime": "./dist/runtime/index.js",
8
8
  "./dist/common/runApi": "./dist/common/runApi/index.js",
9
9
  "./dist/common/settingsSchema": "./dist/common/settingsSchema.js",
10
10
  "./dist/common/contextStorageStateHelpers": "./dist/common/contextStorageStateHelpers.js",