-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Plain eval is used without transpilation:
js-docker-isolation-provider/index.ts
Line 31 in 7d4ffde
| const fn = memoEval(code); |
Example Of Non-Working Typescript Handler
Handler Code
import { DeepClient } from "@deep-foundation/deeplinks/imports/client.js";
import { Link } from "@deep-foundation/deeplinks/imports/minilinks.js";
import { DeepClientInstance } from "@deep-foundation/deeplinks/imports/client";
async (options: {
deep: DeepClient;
data: {
newLink: Link<number>;
};
}) => {
return 5
};Error
{
"stack": "SyntaxError: Cannot use import statement outside a module\n at eval (<anonymous>)\n at memoized (/node_modules/lodash/memoize.js:62:23)\n at makeFunction (file:///index.js:29:16)\n at file:///index.js:61:20\n at Generator.next (<anonymous>)\n at file:///index.js:7:71\n at new Promise (<anonymous>)\n at __awaiter (file:///index.js:3:12)\n at file:///index.js:56:33\n at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)",
"message": "Cannot use import statement outside a module"
}
Expected Behavior
No response
Current Behavior
No response
Steps to reproduce
No response
Environment
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Todo