PHP 7.4.33
Preview: common.js Size: 1.11 KB
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/metro-file-map/src/watchers/common.js
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true,
});
exports.TOUCH_EVENT = exports.DELETE_EVENT = exports.ALL_EVENT = void 0;
exports.includedByGlob = includedByGlob;
exports.posixPathMatchesPattern = void 0;
exports.typeFromStat = typeFromStat;
const micromatch = require("micromatch");
const path = require("path");
const DELETE_EVENT = (exports.DELETE_EVENT = "delete");
const TOUCH_EVENT = (exports.TOUCH_EVENT = "touch");
const ALL_EVENT = (exports.ALL_EVENT = "all");
function includedByGlob(type, globs, dot, relativePath) {
  if (globs.length === 0 || type !== "f") {
    return dot || micromatch.some(relativePath, "**/*");
  }
  return micromatch.some(relativePath, globs, {
    dot,
  });
}
const posixPathMatchesPattern = (exports.posixPathMatchesPattern =
  path.sep === "/"
    ? (pattern, filePath) => pattern.test(filePath)
    : (pattern, filePath) => pattern.test(filePath.replaceAll(path.sep, "/")));
function typeFromStat(stat) {
  if (stat.isSymbolicLink()) {
    return "l";
  }
  if (stat.isDirectory()) {
    return "d";
  }
  if (stat.isFile()) {
    return "f";
  }
  return null;
}

Directory Contents

Dirs: 0 × Files: 12
Name Size Perms Modified Actions
2.17 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
2.04 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
1.11 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
2.38 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
8.43 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
11.65 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
3.02 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
3.77 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
1.16 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
1.73 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
8.73 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
9.21 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).