rankrunners-cms 0.0.48 → 0.0.49
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/package.json
CHANGED
|
@@ -33,9 +33,10 @@ const isSchemaNode: IsSchemaNode<AnyNode> = (
|
|
|
33
33
|
if (!node || typeof node !== "object") return false;
|
|
34
34
|
// Delegate to the first codec whose guard approves this node.
|
|
35
35
|
for (const c of Object.values(codecs)) {
|
|
36
|
+
const guard = (c as { isSchemaNode?: IsSchemaNode<AnyNode> }).isSchemaNode;
|
|
36
37
|
if (
|
|
37
|
-
typeof
|
|
38
|
-
|
|
38
|
+
typeof guard === "function" &&
|
|
39
|
+
guard(node, {
|
|
39
40
|
isSchemaNode: (n) =>
|
|
40
41
|
isSchemaNode(n, {
|
|
41
42
|
isSchemaNode: (x) =>
|