@agent-inspect/eval 6.7.2 → 6.7.3
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.
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var url = require('url');
|
|
3
4
|
var readers = require('agent-inspect/readers');
|
|
4
5
|
var crypto = require('crypto');
|
|
5
6
|
|
|
@@ -921,7 +922,7 @@ function isTraceReadResult(value) {
|
|
|
921
922
|
return value !== null && typeof value === "object" && "runs" in value && "events" in value && "format" in value;
|
|
922
923
|
}
|
|
923
924
|
function traceInputFrom(value) {
|
|
924
|
-
return { type: "file", path: value instanceof URL ? value
|
|
925
|
+
return { type: "file", path: value instanceof URL ? url.fileURLToPath(value) : value };
|
|
925
926
|
}
|
|
926
927
|
async function resolveRead(input, options) {
|
|
927
928
|
try {
|