massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / table / node_modules / ajv / dist / vocabularies / jtd / ref.js
index 25c9bf4ab1f5b4090780655325e82b9be43980e9..3cfda2ef2333c25f3c92cba4da8c5848fcb81c1c 100644 (file)
@@ -11,13 +11,13 @@ const def = {
     keyword: "ref",
     schemaType: "string",
     code(cxt) {
-        metadata_1.checkMetadata(cxt);
+        (0, metadata_1.checkMetadata)(cxt);
         const { gen, data, schema: ref, parentSchema, it } = cxt;
         const { schemaEnv: { root }, } = it;
         const valid = gen.name("valid");
         if (parentSchema.nullable) {
-            gen.var(valid, codegen_1._ `${data} === null`);
-            gen.if(codegen_1.not(valid), validateJtdRef);
+            gen.var(valid, (0, codegen_1._) `${data} === null`);
+            gen.if((0, codegen_1.not)(valid), validateJtdRef);
         }
         else {
             gen.var(valid, false);
@@ -36,13 +36,13 @@ const def = {
         }
         function callValidate(schema) {
             const sch = compile_1.compileSchema.call(it.self, new compile_1.SchemaEnv({ schema, root, schemaPath: `/definitions/${ref}` }));
-            const v = ref_1.getValidate(cxt, sch);
+            const v = (0, ref_1.getValidate)(cxt, sch);
             const errsCount = gen.const("_errs", names_1.default.errors);
-            ref_1.callRef(cxt, v, sch, sch.$async);
-            gen.assign(valid, codegen_1._ `${errsCount} === ${names_1.default.errors}`);
+            (0, ref_1.callRef)(cxt, v, sch, sch.$async);
+            gen.assign(valid, (0, codegen_1._) `${errsCount} === ${names_1.default.errors}`);
         }
         function inlineRefSchema(schema) {
-            const schName = gen.scopeValue("schema", it.opts.code.source === true ? { ref: schema, code: codegen_1.stringify(schema) } : { ref: schema });
+            const schName = gen.scopeValue("schema", it.opts.code.source === true ? { ref: schema, code: (0, codegen_1.stringify)(schema) } : { ref: schema });
             cxt.subschema({
                 schema,
                 dataTypes: [],