aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts
index af61d0f..d1abded 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -1,3 +1,4 @@
+import "newrelic"
import { App } from "@tinyhttp/app"
import { logger } from "@tinyhttp/logger"
import { json } from "milliparsec"
@@ -42,7 +43,7 @@ app
}
const apiTimeHandle = hrtime()
- const { name: sourceFile } = tmp.fileSync() as { name: string }
+ const { name: sourceFile } = tmp.fileSync(undefined) as { name: string }
fs.writeFileSync(sourceFile, body.source)
const executionTimeHandle = hrtime()
const result = await interpretFile(sourceFile)