massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / table / node_modules / ajv / dist / vocabularies / unevaluated / unevaluatedItems.js
index f270a278dccd8e8d141f2691a162337777a07d4d..0a0cd3aa4fdef840586d786a76c2af32d3524115 100644 (file)
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
 const codegen_1 = require("../../compile/codegen");
 const util_1 = require("../../compile/util");
 const error = {
-    message: ({ params: { len } }) => codegen_1.str `must NOT have more than ${len} items`,
-    params: ({ params: { len } }) => codegen_1._ `{limit: ${len}}`,
+    message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`,
+    params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`,
 };
 const def = {
     keyword: "unevaluatedItems",
@@ -16,14 +16,14 @@ const def = {
         const items = it.items || 0;
         if (items === true)
             return;
-        const len = gen.const("len", codegen_1._ `${data}.length`);
+        const len = gen.const("len", (0, codegen_1._) `${data}.length`);
         if (schema === false) {
             cxt.setParams({ len: items });
-            cxt.fail(codegen_1._ `${len} > ${items}`);
+            cxt.fail((0, codegen_1._) `${len} > ${items}`);
         }
-        else if (typeof schema == "object" && !util_1.alwaysValidSchema(it, schema)) {
-            const valid = gen.var("valid", codegen_1._ `${len} <= ${items}`);
-            gen.if(codegen_1.not(valid), () => validateItems(valid, items));
+        else if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) {
+            const valid = gen.var("valid", (0, codegen_1._) `${len} <= ${items}`);
+            gen.if((0, codegen_1.not)(valid), () => validateItems(valid, items));
             cxt.ok(valid);
         }
         it.items = true;
@@ -31,7 +31,7 @@ const def = {
             gen.forRange("i", from, len, (i) => {
                 cxt.subschema({ keyword: "unevaluatedItems", dataProp: i, dataPropType: util_1.Type.Num }, valid);
                 if (!it.allErrors)
-                    gen.if(codegen_1.not(valid), () => gen.break());
+                    gen.if((0, codegen_1.not)(valid), () => gen.break());
             });
         }
     },