@tricoteuses/assemblee 1.1.2 → 1.1.4
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/lib/bugs/acteur-00010/plugin.test.js +53 -55
- package/lib/bugs/acteur-00010.js +26 -30
- package/lib/bugs/agenda-00002/plugin.test.js +78 -82
- package/lib/bugs/agenda-00002.js +206 -214
- package/lib/bugs/agenda-00008/plugin.test.js +54 -56
- package/lib/bugs/agenda-00008.js +38 -42
- package/lib/bugs/agenda-00011/plugin.test.js +204 -214
- package/lib/bugs/agenda-00011.js +117 -131
- package/lib/bugs.js +212 -232
- package/lib/cleaners/actes_legislatifs.js +1 -1
- package/lib/cleaners/acteurs.js +2 -2
- package/lib/cleaners/amendements.js +1 -1
- package/lib/cleaners/documents.js +1 -1
- package/lib/cleaners/dossiers_legislatifs.js +1 -1
- package/lib/cleaners/reunions.js +1 -1
- package/lib/cleaners/scrutins.js +1 -1
- package/lib/cleaners/xml.js +2 -2
- package/lib/datasets.js +2 -2
- package/lib/dossiers_legislatifs.js +1 -1
- package/lib/file_systems.js +48 -50
- package/lib/git.js +1 -1
- package/lib/inserters.js +1 -1
- package/lib/loaders.js +1 -1
- package/lib/parsers/documents.js +29 -31
- package/lib/parsers/recherche_amendements.js +284 -288
- package/lib/raw_types/acteurs_et_organes.d.ts +1 -0
- package/lib/raw_types/acteurs_et_organes.js +3 -2
- package/lib/raw_types/acteurs_et_organes.mjs +3 -2
- package/lib/scripts/bugs_helper.js +301 -317
- package/lib/scripts/clean_data.js +1 -1
- package/lib/scripts/clean_reorganized_data.js +13 -15
- package/lib/scripts/diff_amendements.js +1 -1
- package/lib/scripts/document_dossiers_legislatifs.js +2 -2
- package/lib/scripts/merge_scrutins.js +1 -1
- package/lib/scripts/parse_textes_lois.js +1 -1
- package/lib/scripts/raw_types_from_amendements.js +133 -135
- package/lib/scripts/reorganize_data.js +13 -15
- package/lib/scripts/retrieve_deputes_photos.js +169 -171
- package/lib/scripts/retrieve_documents.js +266 -278
- package/lib/scripts/retrieve_open_data.js +140 -144
- package/lib/scripts/retrieve_pending_amendments.js +118 -120
- package/lib/scripts/retrieve_senateurs_photos.js +167 -169
- package/lib/scripts/retrieve_textes_lois.js +129 -131
- package/lib/scripts/validate_json.js +87 -91
- package/lib/shared_types/codes_actes.d.ts +2 -0
- package/lib/shared_types/codes_actes.js +2 -1
- package/lib/shared_types/codes_actes.mjs +2 -1
- package/lib/types/acteurs_et_organes.d.ts +1 -0
- package/lib/types/acteurs_et_organes.js +3 -2
- package/lib/types/acteurs_et_organes.mjs +3 -2
- package/package.json +6 -6
package/lib/bugs.js
CHANGED
|
@@ -44,8 +44,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
44
44
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
45
45
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
46
46
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
47
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
48
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
47
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
48
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
49
49
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
50
50
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
51
51
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -67,12 +67,10 @@ var BasePlugin = /*#__PURE__*/function () {
|
|
|
67
67
|
value: function () {
|
|
68
68
|
var _preFix = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
69
69
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
70
|
-
while (1) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
return _context.stop();
|
|
75
|
-
}
|
|
70
|
+
while (1) switch (_context.prev = _context.next) {
|
|
71
|
+
case 0:
|
|
72
|
+
case "end":
|
|
73
|
+
return _context.stop();
|
|
76
74
|
}
|
|
77
75
|
}, _callee);
|
|
78
76
|
}));
|
|
@@ -86,14 +84,12 @@ var BasePlugin = /*#__PURE__*/function () {
|
|
|
86
84
|
value: function () {
|
|
87
85
|
var _fix = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_content, _filename) {
|
|
88
86
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
89
|
-
while (1) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
return _context2.stop();
|
|
96
|
-
}
|
|
87
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
88
|
+
case 0:
|
|
89
|
+
return _context2.abrupt("return", null);
|
|
90
|
+
case 1:
|
|
91
|
+
case "end":
|
|
92
|
+
return _context2.stop();
|
|
97
93
|
}
|
|
98
94
|
}, _callee2);
|
|
99
95
|
}));
|
|
@@ -107,12 +103,10 @@ var BasePlugin = /*#__PURE__*/function () {
|
|
|
107
103
|
value: function () {
|
|
108
104
|
var _preCheck = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
109
105
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
110
|
-
while (1) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return _context3.stop();
|
|
115
|
-
}
|
|
106
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
107
|
+
case 0:
|
|
108
|
+
case "end":
|
|
109
|
+
return _context3.stop();
|
|
116
110
|
}
|
|
117
111
|
}, _callee3);
|
|
118
112
|
}));
|
|
@@ -126,14 +120,12 @@ var BasePlugin = /*#__PURE__*/function () {
|
|
|
126
120
|
value: function () {
|
|
127
121
|
var _check = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_content, _filename) {
|
|
128
122
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
129
|
-
while (1) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
return _context4.stop();
|
|
136
|
-
}
|
|
123
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
124
|
+
case 0:
|
|
125
|
+
return _context4.abrupt("return", null);
|
|
126
|
+
case 1:
|
|
127
|
+
case "end":
|
|
128
|
+
return _context4.stop();
|
|
137
129
|
}
|
|
138
130
|
}, _callee4);
|
|
139
131
|
}));
|
|
@@ -147,12 +139,10 @@ var BasePlugin = /*#__PURE__*/function () {
|
|
|
147
139
|
value: function () {
|
|
148
140
|
var _postCheck = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(_analysis) {
|
|
149
141
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
150
|
-
while (1) {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
return _context5.stop();
|
|
155
|
-
}
|
|
142
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
143
|
+
case 0:
|
|
144
|
+
case "end":
|
|
145
|
+
return _context5.stop();
|
|
156
146
|
}
|
|
157
147
|
}, _callee5);
|
|
158
148
|
}));
|
|
@@ -202,38 +192,36 @@ var SchemaBugs = /*#__PURE__*/function () {
|
|
|
202
192
|
var _preFix2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
203
193
|
var _iterator2, _step2, plugin;
|
|
204
194
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
205
|
-
while (1) {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
_context6.next = 9;
|
|
214
|
-
break;
|
|
215
|
-
}
|
|
216
|
-
plugin = _step2.value;
|
|
217
|
-
_context6.next = 7;
|
|
218
|
-
return plugin.preFix();
|
|
219
|
-
case 7:
|
|
220
|
-
_context6.next = 3;
|
|
195
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
196
|
+
case 0:
|
|
197
|
+
_iterator2 = _createForOfIteratorHelper(this.plugins);
|
|
198
|
+
_context6.prev = 1;
|
|
199
|
+
_iterator2.s();
|
|
200
|
+
case 3:
|
|
201
|
+
if ((_step2 = _iterator2.n()).done) {
|
|
202
|
+
_context6.next = 9;
|
|
221
203
|
break;
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
204
|
+
}
|
|
205
|
+
plugin = _step2.value;
|
|
206
|
+
_context6.next = 7;
|
|
207
|
+
return plugin.preFix();
|
|
208
|
+
case 7:
|
|
209
|
+
_context6.next = 3;
|
|
210
|
+
break;
|
|
211
|
+
case 9:
|
|
212
|
+
_context6.next = 14;
|
|
213
|
+
break;
|
|
214
|
+
case 11:
|
|
215
|
+
_context6.prev = 11;
|
|
216
|
+
_context6.t0 = _context6["catch"](1);
|
|
217
|
+
_iterator2.e(_context6.t0);
|
|
218
|
+
case 14:
|
|
219
|
+
_context6.prev = 14;
|
|
220
|
+
_iterator2.f();
|
|
221
|
+
return _context6.finish(14);
|
|
222
|
+
case 17:
|
|
223
|
+
case "end":
|
|
224
|
+
return _context6.stop();
|
|
237
225
|
}
|
|
238
226
|
}, _callee6, this, [[1, 11, 14, 17]]);
|
|
239
227
|
}));
|
|
@@ -248,74 +236,72 @@ var SchemaBugs = /*#__PURE__*/function () {
|
|
|
248
236
|
var _fix2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(filenames) {
|
|
249
237
|
var results, _iterator3, _step3, plugin, _iterator4, _step4, filename, content, result;
|
|
250
238
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
251
|
-
while (1) {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
_context7.next = 31;
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
plugin = _step3.value;
|
|
264
|
-
_iterator4 = _createForOfIteratorHelper(filenames);
|
|
265
|
-
_context7.prev = 7;
|
|
266
|
-
_iterator4.s();
|
|
267
|
-
case 9:
|
|
268
|
-
if ((_step4 = _iterator4.n()).done) {
|
|
269
|
-
_context7.next = 20;
|
|
270
|
-
break;
|
|
271
|
-
}
|
|
272
|
-
filename = _step4.value;
|
|
273
|
-
content = (0, _file_systems.load)(filename);
|
|
274
|
-
_context7.next = 14;
|
|
275
|
-
return plugin.fix(content, filename);
|
|
276
|
-
case 14:
|
|
277
|
-
result = _context7.sent;
|
|
278
|
-
results[plugin.name] = result;
|
|
279
|
-
if (result == true) (0, _file_systems.write)(content, filename);
|
|
280
|
-
if (this.options.debug) console.log("".concat(plugin.name, " ").concat(filename, " ").concat(result ? "FIXED" : "OK"));
|
|
281
|
-
case 18:
|
|
282
|
-
_context7.next = 9;
|
|
283
|
-
break;
|
|
284
|
-
case 20:
|
|
285
|
-
_context7.next = 25;
|
|
286
|
-
break;
|
|
287
|
-
case 22:
|
|
288
|
-
_context7.prev = 22;
|
|
289
|
-
_context7.t0 = _context7["catch"](7);
|
|
290
|
-
_iterator4.e(_context7.t0);
|
|
291
|
-
case 25:
|
|
292
|
-
_context7.prev = 25;
|
|
293
|
-
_iterator4.f();
|
|
294
|
-
return _context7.finish(25);
|
|
295
|
-
case 28:
|
|
296
|
-
if (this.options.commit) {
|
|
297
|
-
git.commit(this.options.commit, "Fix ".concat(plugin.name));
|
|
298
|
-
}
|
|
299
|
-
case 29:
|
|
300
|
-
_context7.next = 4;
|
|
239
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
240
|
+
case 0:
|
|
241
|
+
results = {};
|
|
242
|
+
_iterator3 = _createForOfIteratorHelper(this.plugins);
|
|
243
|
+
_context7.prev = 2;
|
|
244
|
+
_iterator3.s();
|
|
245
|
+
case 4:
|
|
246
|
+
if ((_step3 = _iterator3.n()).done) {
|
|
247
|
+
_context7.next = 31;
|
|
301
248
|
break;
|
|
302
|
-
|
|
303
|
-
|
|
249
|
+
}
|
|
250
|
+
plugin = _step3.value;
|
|
251
|
+
_iterator4 = _createForOfIteratorHelper(filenames);
|
|
252
|
+
_context7.prev = 7;
|
|
253
|
+
_iterator4.s();
|
|
254
|
+
case 9:
|
|
255
|
+
if ((_step4 = _iterator4.n()).done) {
|
|
256
|
+
_context7.next = 20;
|
|
304
257
|
break;
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
258
|
+
}
|
|
259
|
+
filename = _step4.value;
|
|
260
|
+
content = (0, _file_systems.load)(filename);
|
|
261
|
+
_context7.next = 14;
|
|
262
|
+
return plugin.fix(content, filename);
|
|
263
|
+
case 14:
|
|
264
|
+
result = _context7.sent;
|
|
265
|
+
results[plugin.name] = result;
|
|
266
|
+
if (result == true) (0, _file_systems.write)(content, filename);
|
|
267
|
+
if (this.options.debug) console.log("".concat(plugin.name, " ").concat(filename, " ").concat(result ? "FIXED" : "OK"));
|
|
268
|
+
case 18:
|
|
269
|
+
_context7.next = 9;
|
|
270
|
+
break;
|
|
271
|
+
case 20:
|
|
272
|
+
_context7.next = 25;
|
|
273
|
+
break;
|
|
274
|
+
case 22:
|
|
275
|
+
_context7.prev = 22;
|
|
276
|
+
_context7.t0 = _context7["catch"](7);
|
|
277
|
+
_iterator4.e(_context7.t0);
|
|
278
|
+
case 25:
|
|
279
|
+
_context7.prev = 25;
|
|
280
|
+
_iterator4.f();
|
|
281
|
+
return _context7.finish(25);
|
|
282
|
+
case 28:
|
|
283
|
+
if (this.options.commit) {
|
|
284
|
+
git.commit(this.options.commit, "Fix ".concat(plugin.name));
|
|
285
|
+
}
|
|
286
|
+
case 29:
|
|
287
|
+
_context7.next = 4;
|
|
288
|
+
break;
|
|
289
|
+
case 31:
|
|
290
|
+
_context7.next = 36;
|
|
291
|
+
break;
|
|
292
|
+
case 33:
|
|
293
|
+
_context7.prev = 33;
|
|
294
|
+
_context7.t1 = _context7["catch"](2);
|
|
295
|
+
_iterator3.e(_context7.t1);
|
|
296
|
+
case 36:
|
|
297
|
+
_context7.prev = 36;
|
|
298
|
+
_iterator3.f();
|
|
299
|
+
return _context7.finish(36);
|
|
300
|
+
case 39:
|
|
301
|
+
return _context7.abrupt("return", results);
|
|
302
|
+
case 40:
|
|
303
|
+
case "end":
|
|
304
|
+
return _context7.stop();
|
|
319
305
|
}
|
|
320
306
|
}, _callee7, this, [[2, 33, 36, 39], [7, 22, 25, 28]]);
|
|
321
307
|
}));
|
|
@@ -330,38 +316,36 @@ var SchemaBugs = /*#__PURE__*/function () {
|
|
|
330
316
|
var _preCheck2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
|
|
331
317
|
var _iterator5, _step5, plugin;
|
|
332
318
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
333
|
-
while (1) {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
_context8.next = 9;
|
|
342
|
-
break;
|
|
343
|
-
}
|
|
344
|
-
plugin = _step5.value;
|
|
345
|
-
_context8.next = 7;
|
|
346
|
-
return plugin.preCheck();
|
|
347
|
-
case 7:
|
|
348
|
-
_context8.next = 3;
|
|
319
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
320
|
+
case 0:
|
|
321
|
+
_iterator5 = _createForOfIteratorHelper(this.plugins);
|
|
322
|
+
_context8.prev = 1;
|
|
323
|
+
_iterator5.s();
|
|
324
|
+
case 3:
|
|
325
|
+
if ((_step5 = _iterator5.n()).done) {
|
|
326
|
+
_context8.next = 9;
|
|
349
327
|
break;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
328
|
+
}
|
|
329
|
+
plugin = _step5.value;
|
|
330
|
+
_context8.next = 7;
|
|
331
|
+
return plugin.preCheck();
|
|
332
|
+
case 7:
|
|
333
|
+
_context8.next = 3;
|
|
334
|
+
break;
|
|
335
|
+
case 9:
|
|
336
|
+
_context8.next = 14;
|
|
337
|
+
break;
|
|
338
|
+
case 11:
|
|
339
|
+
_context8.prev = 11;
|
|
340
|
+
_context8.t0 = _context8["catch"](1);
|
|
341
|
+
_iterator5.e(_context8.t0);
|
|
342
|
+
case 14:
|
|
343
|
+
_context8.prev = 14;
|
|
344
|
+
_iterator5.f();
|
|
345
|
+
return _context8.finish(14);
|
|
346
|
+
case 17:
|
|
347
|
+
case "end":
|
|
348
|
+
return _context8.stop();
|
|
365
349
|
}
|
|
366
350
|
}, _callee8, this, [[1, 11, 14, 17]]);
|
|
367
351
|
}));
|
|
@@ -376,43 +360,41 @@ var SchemaBugs = /*#__PURE__*/function () {
|
|
|
376
360
|
var _check2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(content, filename) {
|
|
377
361
|
var results, _iterator6, _step6, plugin;
|
|
378
362
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
379
|
-
while (1) {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
_context9.next = 11;
|
|
389
|
-
break;
|
|
390
|
-
}
|
|
391
|
-
plugin = _step6.value;
|
|
392
|
-
_context9.next = 8;
|
|
393
|
-
return plugin.check(content, filename);
|
|
394
|
-
case 8:
|
|
395
|
-
results[plugin.name] = _context9.sent;
|
|
396
|
-
case 9:
|
|
397
|
-
_context9.next = 4;
|
|
398
|
-
break;
|
|
399
|
-
case 11:
|
|
400
|
-
_context9.next = 16;
|
|
363
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
364
|
+
case 0:
|
|
365
|
+
results = {};
|
|
366
|
+
_iterator6 = _createForOfIteratorHelper(this.plugins);
|
|
367
|
+
_context9.prev = 2;
|
|
368
|
+
_iterator6.s();
|
|
369
|
+
case 4:
|
|
370
|
+
if ((_step6 = _iterator6.n()).done) {
|
|
371
|
+
_context9.next = 11;
|
|
401
372
|
break;
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
373
|
+
}
|
|
374
|
+
plugin = _step6.value;
|
|
375
|
+
_context9.next = 8;
|
|
376
|
+
return plugin.check(content, filename);
|
|
377
|
+
case 8:
|
|
378
|
+
results[plugin.name] = _context9.sent;
|
|
379
|
+
case 9:
|
|
380
|
+
_context9.next = 4;
|
|
381
|
+
break;
|
|
382
|
+
case 11:
|
|
383
|
+
_context9.next = 16;
|
|
384
|
+
break;
|
|
385
|
+
case 13:
|
|
386
|
+
_context9.prev = 13;
|
|
387
|
+
_context9.t0 = _context9["catch"](2);
|
|
388
|
+
_iterator6.e(_context9.t0);
|
|
389
|
+
case 16:
|
|
390
|
+
_context9.prev = 16;
|
|
391
|
+
_iterator6.f();
|
|
392
|
+
return _context9.finish(16);
|
|
393
|
+
case 19:
|
|
394
|
+
return _context9.abrupt("return", results);
|
|
395
|
+
case 20:
|
|
396
|
+
case "end":
|
|
397
|
+
return _context9.stop();
|
|
416
398
|
}
|
|
417
399
|
}, _callee9, this, [[2, 13, 16, 19]]);
|
|
418
400
|
}));
|
|
@@ -427,38 +409,36 @@ var SchemaBugs = /*#__PURE__*/function () {
|
|
|
427
409
|
var _postCheck2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(analysis) {
|
|
428
410
|
var _iterator7, _step7, plugin;
|
|
429
411
|
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
430
|
-
while (1) {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
_context10.next = 9;
|
|
439
|
-
break;
|
|
440
|
-
}
|
|
441
|
-
plugin = _step7.value;
|
|
442
|
-
_context10.next = 7;
|
|
443
|
-
return plugin.postCheck(analysis);
|
|
444
|
-
case 7:
|
|
445
|
-
_context10.next = 3;
|
|
446
|
-
break;
|
|
447
|
-
case 9:
|
|
448
|
-
_context10.next = 14;
|
|
412
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
413
|
+
case 0:
|
|
414
|
+
_iterator7 = _createForOfIteratorHelper(this.plugins);
|
|
415
|
+
_context10.prev = 1;
|
|
416
|
+
_iterator7.s();
|
|
417
|
+
case 3:
|
|
418
|
+
if ((_step7 = _iterator7.n()).done) {
|
|
419
|
+
_context10.next = 9;
|
|
449
420
|
break;
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
421
|
+
}
|
|
422
|
+
plugin = _step7.value;
|
|
423
|
+
_context10.next = 7;
|
|
424
|
+
return plugin.postCheck(analysis);
|
|
425
|
+
case 7:
|
|
426
|
+
_context10.next = 3;
|
|
427
|
+
break;
|
|
428
|
+
case 9:
|
|
429
|
+
_context10.next = 14;
|
|
430
|
+
break;
|
|
431
|
+
case 11:
|
|
432
|
+
_context10.prev = 11;
|
|
433
|
+
_context10.t0 = _context10["catch"](1);
|
|
434
|
+
_iterator7.e(_context10.t0);
|
|
435
|
+
case 14:
|
|
436
|
+
_context10.prev = 14;
|
|
437
|
+
_iterator7.f();
|
|
438
|
+
return _context10.finish(14);
|
|
439
|
+
case 17:
|
|
440
|
+
case "end":
|
|
441
|
+
return _context10.stop();
|
|
462
442
|
}
|
|
463
443
|
}, _callee10, this, [[1, 11, 14, 17]]);
|
|
464
444
|
}));
|
|
@@ -471,4 +451,4 @@ var SchemaBugs = /*#__PURE__*/function () {
|
|
|
471
451
|
return SchemaBugs;
|
|
472
452
|
}();
|
|
473
453
|
exports.SchemaBugs = SchemaBugs;
|
|
474
|
-
//# sourceMappingURL=data:application/json;char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Module ? obj : { "default": obj }; }
|
|
24
24
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
25
25
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
26
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
26
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
27
27
|
function cleanActeLegislatif(acteLegislatif) {
|
|
28
28
|
(0, _xml.cleanXmlArtefacts)(acteLegislatif);
|
|
29
29
|
var xsiType = acteLegislatif["@xsi:type"];
|