Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

Location:
imaps-frontend/node_modules/ignore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/ignore/index.js

    rd565449 r0c6b92a  
    8080    // (a\ ) -> (a )
    8181    // (a  ) -> (a)
     82    // (a ) -> (a)
    8283    // (a \ ) -> (a  )
    83     /\\?\s+$/,
    84     match => match.indexOf('\\') === 0
    85       ? SPACE
    86       : EMPTY
     84    /((?:\\\\)*?)(\\?\s+)$/,
     85    (_, m1, m2) => m1 + (
     86      m2.indexOf('\\') === 0
     87        ? SPACE
     88        : EMPTY
     89    )
    8790  ],
    8891
    8992  // replace (\ ) with ' '
    90   [
    91     /\\\s/g,
    92     () => SPACE
     93  // (\ ) -> ' '
     94  // (\\ ) -> '\\ '
     95  // (\\\ ) -> '\\ '
     96  [
     97    /(\\+?)\s/g,
     98    (_, m1) => {
     99      const {length} = m1
     100      return m1.slice(0, length - length % 2) + SPACE
     101    }
    93102  ],
    94103
     
    318327  if (!source) {
    319328    source = REPLACERS.reduce(
    320       (prev, current) => prev.replace(current[0], current[1].bind(pattern)),
     329      (prev, [matcher, replacer]) =>
     330        prev.replace(matcher, replacer.bind(pattern)),
    321331      pattern
    322332    )
  • imaps-frontend/node_modules/ignore/legacy.js

    rd565449 r0c6b92a  
    77function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
    88function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
     9function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
     10function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
     11function _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); }
     12function _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; }
     13function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
     14function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
    915// A simple implementation of make-array
    1016function makeArray(subject) {
     
    8389// (a\ ) -> (a )
    8490// (a  ) -> (a)
     91// (a ) -> (a)
    8592// (a \ ) -> (a  )
    86 /\\?\s+$/, function (match) {
    87   return match.indexOf('\\') === 0 ? SPACE : EMPTY;
     93/((?:\\\\)*?)(\\?\s+)$/, function (_, m1, m2) {
     94  return m1 + (m2.indexOf('\\') === 0 ? SPACE : EMPTY);
    8895}],
    8996// replace (\ ) with ' '
    90 [/\\\s/g, function () {
    91   return SPACE;
     97// (\ ) -> ' '
     98// (\\ ) -> '\\ '
     99// (\\\ ) -> '\\ '
     100[/(\\+?)\s/g, function (_, m1) {
     101  var length = m1.length;
     102  return m1.slice(0, length - length % 2) + SPACE;
    92103}],
    93104// Escape metacharacters
     
    278289  var source = regexCache[pattern];
    279290  if (!source) {
    280     source = REPLACERS.reduce(function (prev, current) {
    281       return prev.replace(current[0], current[1].bind(pattern));
     291    source = REPLACERS.reduce(function (prev, _ref) {
     292      var _ref2 = _slicedToArray(_ref, 2),
     293        matcher = _ref2[0],
     294        replacer = _ref2[1];
     295      return prev.replace(matcher, replacer.bind(pattern));
    282296    }, pattern);
    283297    regexCache[pattern] = source;
     
    354368var Ignore = /*#__PURE__*/function () {
    355369  function Ignore() {
    356     var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
    357       _ref$ignorecase = _ref.ignorecase,
    358       ignorecase = _ref$ignorecase === void 0 ? true : _ref$ignorecase,
    359       _ref$ignoreCase = _ref.ignoreCase,
    360       ignoreCase = _ref$ignoreCase === void 0 ? ignorecase : _ref$ignoreCase,
    361       _ref$allowRelativePat = _ref.allowRelativePaths,
    362       allowRelativePaths = _ref$allowRelativePat === void 0 ? false : _ref$allowRelativePat;
     370    var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
     371      _ref3$ignorecase = _ref3.ignorecase,
     372      ignorecase = _ref3$ignorecase === void 0 ? true : _ref3$ignorecase,
     373      _ref3$ignoreCase = _ref3.ignoreCase,
     374      ignoreCase = _ref3$ignoreCase === void 0 ? ignorecase : _ref3$ignoreCase,
     375      _ref3$allowRelativePa = _ref3.allowRelativePaths,
     376      allowRelativePaths = _ref3$allowRelativePa === void 0 ? false : _ref3$allowRelativePa;
    363377    _classCallCheck(this, Ignore);
    364378    define(this, KEY_IGNORE, true);
  • imaps-frontend/node_modules/ignore/package.json

    rd565449 r0c6b92a  
    11{
    22  "name": "ignore",
    3   "version": "5.3.1",
     3  "version": "5.3.2",
    44  "description": "Ignore is a manager and filter for .gitignore rules, the one used by eslint, gitbook and many others.",
    55  "files": [
     
    1818    "test:git": "npm run tap test/git-check-ignore.js",
    1919    "test:ignore": "npm run tap test/ignore.js",
     20    "test:ignore:only": "IGNORE_ONLY_IGNORES=1 npm run tap test/ignore.js",
    2021    "test:others": "npm run tap test/others.js",
    2122    "test:cases": "npm run tap test/*.js -- --coverage",
     
    6263    "mkdirp": "^3.0.1",
    6364    "pre-suf": "^1.1.1",
    64     "rimraf": "^5.0.1",
     65    "rimraf": "^6.0.1",
    6566    "spawn-sync": "^2.0.0",
    6667    "tap": "^16.3.9",
    67     "tmp": "0.2.1",
     68    "tmp": "0.2.3",
    6869    "typescript": "^5.1.6"
    6970  },
Note: See TracChangeset for help on using the changeset viewer.