@m4trix/evals 0.2.0 → 0.3.0
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/README.md +5 -7
- package/dist/cli-simple.cjs +4 -2
- package/dist/cli-simple.cjs.map +1 -1
- package/dist/cli-simple.js +4 -2
- package/dist/cli-simple.js.map +1 -1
- package/dist/cli.cjs +4 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +4 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +11 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -4
package/dist/cli.js
CHANGED
|
@@ -1352,7 +1352,9 @@ function getJitiLoader() {
|
|
|
1352
1352
|
}
|
|
1353
1353
|
const createJiti2 = jitiModule.createJiti ?? jitiModule.default;
|
|
1354
1354
|
if (typeof createJiti2 !== "function") {
|
|
1355
|
-
throw new Error(
|
|
1355
|
+
throw new Error(
|
|
1356
|
+
"Failed to initialize jiti for m4trix eval config loading."
|
|
1357
|
+
);
|
|
1356
1358
|
}
|
|
1357
1359
|
cachedLoader = createJiti2(import.meta.url, {
|
|
1358
1360
|
interopDefault: true,
|
|
@@ -1375,7 +1377,7 @@ function resolveConfigValue(value) {
|
|
|
1375
1377
|
}
|
|
1376
1378
|
if (typeof value !== "object") {
|
|
1377
1379
|
throw new Error(
|
|
1378
|
-
"Invalid m4trix eval config export. Expected an object or
|
|
1380
|
+
"Invalid m4trix eval config export. Expected an object or defineConfig(() => config)."
|
|
1379
1381
|
);
|
|
1380
1382
|
}
|
|
1381
1383
|
return value;
|