From 6555fb80fdd8f6a5d201efadec3189d1244830a0 Mon Sep 17 00:00:00 2001 From: Nevena Bojovic Date: Tue, 1 Mar 2022 22:05:25 +0100 Subject: Izbrisala bin, obj i node-modules. --- .../Front/node_modules/ajv-formats/dist/index.js | 37 ---------------------- 1 file changed, 37 deletions(-) delete mode 100644 sandbox/testAppNevena/Front/node_modules/ajv-formats/dist/index.js (limited to 'sandbox/testAppNevena/Front/node_modules/ajv-formats/dist/index.js') diff --git a/sandbox/testAppNevena/Front/node_modules/ajv-formats/dist/index.js b/sandbox/testAppNevena/Front/node_modules/ajv-formats/dist/index.js deleted file mode 100644 index 5db64fec..00000000 --- a/sandbox/testAppNevena/Front/node_modules/ajv-formats/dist/index.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const formats_1 = require("./formats"); -const limit_1 = require("./limit"); -const codegen_1 = require("ajv/dist/compile/codegen"); -const fullName = new codegen_1.Name("fullFormats"); -const fastName = new codegen_1.Name("fastFormats"); -const formatsPlugin = (ajv, opts = { keywords: true }) => { - if (Array.isArray(opts)) { - addFormats(ajv, opts, formats_1.fullFormats, fullName); - return ajv; - } - const [formats, exportName] = opts.mode === "fast" ? [formats_1.fastFormats, fastName] : [formats_1.fullFormats, fullName]; - const list = opts.formats || formats_1.formatNames; - addFormats(ajv, list, formats, exportName); - if (opts.keywords) - limit_1.default(ajv); - return ajv; -}; -formatsPlugin.get = (name, mode = "full") => { - const formats = mode === "fast" ? formats_1.fastFormats : formats_1.fullFormats; - const f = formats[name]; - if (!f) - throw new Error(`Unknown format "${name}"`); - return f; -}; -function addFormats(ajv, list, fs, exportName) { - var _a; - var _b; - (_a = (_b = ajv.opts.code).formats) !== null && _a !== void 0 ? _a : (_b.formats = codegen_1._ `require("ajv-formats/dist/formats").${exportName}`); - for (const f of list) - ajv.addFormat(f, fs[f]); -} -module.exports = exports = formatsPlugin; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = formatsPlugin; -//# sourceMappingURL=index.js.map \ No newline at end of file -- cgit v1.2.3