@forgeax/engine-pack 0.1.33 → 0.1.35
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 +1 -1
- package/dist/build.mjs +11 -6
- package/dist/build.mjs.map +1 -1
- package/dist/cli-asset.mjs +4 -4
- package/dist/cli-asset.mjs.map +1 -1
- package/dist/evidence/material-cook.d.ts +2 -1
- package/dist/evidence/material-cook.d.ts.map +1 -1
- package/dist/index.mjs +11 -6
- package/dist/index.mjs.map +1 -1
- package/dist/material-cook.mjs +7 -2
- package/dist/material-cook.mjs.map +1 -1
- package/dist/pack-authoring-node.mjs +4 -4
- package/dist/pack-authoring-node.mjs.map +1 -1
- package/dist/pack-authoring.d.ts.map +1 -1
- package/dist/pack-authoring.mjs +4 -4
- package/dist/pack-authoring.mjs.map +1 -1
- package/dist/scanner.mjs +4 -4
- package/dist/scanner.mjs.map +1 -1
- package/dist/scriptable-pack-node.mjs +4 -4
- package/dist/scriptable-pack-node.mjs.map +1 -1
- package/dist/scriptable-pack.mjs +4 -4
- package/dist/scriptable-pack.mjs.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/ai-recovery.unit.test.ts +4 -1
- package/src/__tests__/material-cook-schema.unit.test.ts +26 -0
- package/src/__tests__/pack-authoring.unit.test.ts +26 -0
- package/src/evidence/material-cook.ts +9 -1
- package/src/pack-authoring.ts +8 -4
- package/src/schema/material-cook.schema.json +74 -1
package/dist/cli-asset.mjs
CHANGED
|
@@ -7443,8 +7443,8 @@ function vectorLength(type) {
|
|
|
7443
7443
|
}
|
|
7444
7444
|
function parameterValueError(parameter, value, propertyPath) {
|
|
7445
7445
|
const { type } = parameter;
|
|
7446
|
-
if (type === "bool"
|
|
7447
|
-
return parameterFailure(propertyPath, "a boolean", value, "bool value has the wrong type");
|
|
7446
|
+
if (type === "bool") {
|
|
7447
|
+
return typeof value === "boolean" ? void 0 : parameterFailure(propertyPath, "a boolean", value, "bool value has the wrong type");
|
|
7448
7448
|
}
|
|
7449
7449
|
if (numericType(type)) {
|
|
7450
7450
|
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
@@ -7505,8 +7505,8 @@ function parameterValueError(parameter, value, propertyPath) {
|
|
|
7505
7505
|
}
|
|
7506
7506
|
return void 0;
|
|
7507
7507
|
}
|
|
7508
|
-
if (type === "string"
|
|
7509
|
-
return parameterFailure(propertyPath, "a string", value, "string parameter has the wrong type");
|
|
7508
|
+
if (type === "string") {
|
|
7509
|
+
return typeof value === "string" ? void 0 : parameterFailure(propertyPath, "a string", value, "string parameter has the wrong type");
|
|
7510
7510
|
}
|
|
7511
7511
|
if (type === "enum") {
|
|
7512
7512
|
if (typeof value !== "string") {
|