@intuned/runtime-dev 0.1.0-test.17 → 0.1.0-test.19
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.
|
@@ -71,13 +71,15 @@ export async function runApi({
|
|
|
71
71
|
module: await importModule(`api/${functionName}`),
|
|
72
72
|
params,
|
|
73
73
|
},
|
|
74
|
-
auth:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
74
|
+
auth: isAuthSessionEnabled
|
|
75
|
+
? {
|
|
76
|
+
session: {
|
|
77
|
+
type: "state",
|
|
78
|
+
state: session,
|
|
79
|
+
},
|
|
80
|
+
runCheck: isAuthSessionEnabled,
|
|
81
|
+
}
|
|
82
|
+
: undefined,
|
|
81
83
|
runOptions: {
|
|
82
84
|
environment: "deployed",
|
|
83
85
|
headless,
|
package/WebTemplate/utils.ts
CHANGED
|
@@ -213,9 +213,7 @@ export async function importModule(path: string) {
|
|
|
213
213
|
// cleanup environment variables before running the user code
|
|
214
214
|
// cleanEnvironmentVariables();
|
|
215
215
|
|
|
216
|
-
const
|
|
217
|
-
|
|
218
|
-
const [folderName, ...functionNameParts] = fullPath.split("/");
|
|
216
|
+
const [folderName, ...functionNameParts] = path.split("/");
|
|
219
217
|
const functionNameDepth = functionNameParts.length;
|
|
220
218
|
|
|
221
219
|
// string literals should be inline
|