@astrale-os/sdk 0.5.0-beta.146 → 0.5.0-beta.148
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.
|
@@ -122,9 +122,11 @@ function acceptGeneratedMaterial(input, runtime) {
|
|
|
122
122
|
invalid();
|
|
123
123
|
}
|
|
124
124
|
assertMaterialEnvelope(material, runtime);
|
|
125
|
-
|
|
125
|
+
// One traversal seals the whole envelope. `input.material` is the exact `material` value and
|
|
126
|
+
// every other admitted key holds a primitive, so a second pass would re-walk an already frozen
|
|
127
|
+
// graph: on a real Domain that is one redundant traversal of every `schema.compiled` node.
|
|
126
128
|
deepFreeze(input);
|
|
127
|
-
return
|
|
129
|
+
return Object.freeze({ material });
|
|
128
130
|
}
|
|
129
131
|
function digestOf(input) {
|
|
130
132
|
try {
|