aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format
diff options
context:
space:
mode:
authorNevena Bojovic <nenabojov@gmail.com>2022-03-01 22:05:25 +0100
committerNevena Bojovic <nenabojov@gmail.com>2022-03-01 22:05:25 +0100
commit6555fb80fdd8f6a5d201efadec3189d1244830a0 (patch)
treec1aa1c5aedc634ad1ea7fad4847884d559b51290 /sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format
parent7d3640f824f46490b47bd95f1c5a16644f712068 (diff)
Izbrisala bin, obj i node-modules.
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/format.d.ts8
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/format.js92
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/format.js.map1
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/index.d.ts3
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/index.js6
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/index.js.map1
6 files changed, 0 insertions, 111 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/format.d.ts b/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/format.d.ts
deleted file mode 100644
index 855d0a2a..00000000
--- a/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/format.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import type { CodeKeywordDefinition, ErrorObject } from "../../types";
-export declare type FormatError = ErrorObject<"format", {
- format: string;
-}, string | {
- $data: string;
-}>;
-declare const def: CodeKeywordDefinition;
-export default def;
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/format.js b/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/format.js
deleted file mode 100644
index aa667c1e..00000000
--- a/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/format.js
+++ /dev/null
@@ -1,92 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const codegen_1 = require("../../compile/codegen");
-const error = {
- message: ({ schemaCode }) => (0, codegen_1.str) `must match format "${schemaCode}"`,
- params: ({ schemaCode }) => (0, codegen_1._) `{format: ${schemaCode}}`,
-};
-const def = {
- keyword: "format",
- type: ["number", "string"],
- schemaType: "string",
- $data: true,
- error,
- code(cxt, ruleType) {
- const { gen, data, $data, schema, schemaCode, it } = cxt;
- const { opts, errSchemaPath, schemaEnv, self } = it;
- if (!opts.validateFormats)
- return;
- if ($data)
- validate$DataFormat();
- else
- validateFormat();
- function validate$DataFormat() {
- const fmts = gen.scopeValue("formats", {
- ref: self.formats,
- code: opts.code.formats,
- });
- const fDef = gen.const("fDef", (0, codegen_1._) `${fmts}[${schemaCode}]`);
- const fType = gen.let("fType");
- const format = gen.let("format");
- // TODO simplify
- gen.if((0, codegen_1._) `typeof ${fDef} == "object" && !(${fDef} instanceof RegExp)`, () => gen.assign(fType, (0, codegen_1._) `${fDef}.type || "string"`).assign(format, (0, codegen_1._) `${fDef}.validate`), () => gen.assign(fType, (0, codegen_1._) `"string"`).assign(format, fDef));
- cxt.fail$data((0, codegen_1.or)(unknownFmt(), invalidFmt()));
- function unknownFmt() {
- if (opts.strictSchema === false)
- return codegen_1.nil;
- return (0, codegen_1._) `${schemaCode} && !${format}`;
- }
- function invalidFmt() {
- const callFormat = schemaEnv.$async
- ? (0, codegen_1._) `(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))`
- : (0, codegen_1._) `${format}(${data})`;
- const validData = (0, codegen_1._) `(typeof ${format} == "function" ? ${callFormat} : ${format}.test(${data}))`;
- return (0, codegen_1._) `${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`;
- }
- }
- function validateFormat() {
- const formatDef = self.formats[schema];
- if (!formatDef) {
- unknownFormat();
- return;
- }
- if (formatDef === true)
- return;
- const [fmtType, format, fmtRef] = getFormat(formatDef);
- if (fmtType === ruleType)
- cxt.pass(validCondition());
- function unknownFormat() {
- if (opts.strictSchema === false) {
- self.logger.warn(unknownMsg());
- return;
- }
- throw new Error(unknownMsg());
- function unknownMsg() {
- return `unknown format "${schema}" ignored in schema at path "${errSchemaPath}"`;
- }
- }
- function getFormat(fmtDef) {
- const code = fmtDef instanceof RegExp
- ? (0, codegen_1.regexpCode)(fmtDef)
- : opts.code.formats
- ? (0, codegen_1._) `${opts.code.formats}${(0, codegen_1.getProperty)(schema)}`
- : undefined;
- const fmt = gen.scopeValue("formats", { key: schema, ref: fmtDef, code });
- if (typeof fmtDef == "object" && !(fmtDef instanceof RegExp)) {
- return [fmtDef.type || "string", fmtDef.validate, (0, codegen_1._) `${fmt}.validate`];
- }
- return ["string", fmtDef, fmt];
- }
- function validCondition() {
- if (typeof formatDef == "object" && !(formatDef instanceof RegExp) && formatDef.async) {
- if (!schemaEnv.$async)
- throw new Error("async format in sync schema");
- return (0, codegen_1._) `await ${fmtRef}(${data})`;
- }
- return typeof format == "function" ? (0, codegen_1._) `${fmtRef}(${data})` : (0, codegen_1._) `${fmtRef}.test(${data})`;
- }
- }
- },
-};
-exports.default = def;
-//# sourceMappingURL=format.js.map \ No newline at end of file
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/format.js.map b/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/format.js.map
deleted file mode 100644
index 897d9ded..00000000
--- a/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/format.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"format.js","sourceRoot":"","sources":["../../../lib/vocabularies/format/format.ts"],"names":[],"mappings":";;AASA,mDAAoF;AAapF,MAAM,KAAK,GAA2B;IACpC,OAAO,EAAE,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE,CAAC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A;YAChC,CAAC;YAED,SAAS,cAAc;gBACrB,IAAI,OAAO,SAAS,IAAI,QAAQ,IAAI,CAAC,CAAC,SAAS,YAAY,MAAM,CAAC,IAAI,SAAS,CAAC,KAAK,EAAE;oBACrF,IAAI,CAAC,SAAS,CAAC,MAAM;wBAAE,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAA;oBACrE,OAAO,IAAA,WAAC,EAAA,SAAS,MAAM,IAAI,IAAI,GAAG,CAAA;iBACnC;gBACD,OAAO,OAAO,MAAM,IAAI,UAAU,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,MAAM,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,IAAA,WAAC,EAAA,GAAG,MAAM,SAAS,IAAI,GAAG,CAAA;YACzF,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAED,kBAAe,GAAG,CAAA"} \ No newline at end of file
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/index.d.ts b/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/index.d.ts
deleted file mode 100644
index c8019c9d..00000000
--- a/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/index.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import type { Vocabulary } from "../../types";
-declare const format: Vocabulary;
-export default format;
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/index.js b/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/index.js
deleted file mode 100644
index d19023d2..00000000
--- a/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const format_1 = require("./format");
-const format = [format_1.default];
-exports.default = format;
-//# sourceMappingURL=index.js.map \ No newline at end of file
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/index.js.map b/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/index.js.map
deleted file mode 100644
index 6315bfe1..00000000
--- a/sandbox/testAppNevena/Front/node_modules/ajv/dist/vocabularies/format/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/vocabularies/format/index.ts"],"names":[],"mappings":";;AACA,qCAAoC;AAEpC,MAAM,MAAM,GAAe,CAAC,gBAAa,CAAC,CAAA;AAE1C,kBAAe,MAAM,CAAA"} \ No newline at end of file