Файловый менеджер - Редактировать - /home/freeclou/app.optimyar.com/front-web/build/assets/fonts/iran-yekan/WebFonts/util.tar
Назад
add-git-sha.js 0000644 00000000653 15114547171 0007176 0 ustar 00 // add a sha to a git remote url spec const addGitSha = (spec, sha) => { if (spec.hosted) { const h = spec.hosted const opt = { noCommittish: true } const base = h.https && h.auth ? h.https(opt) : h.shortcut(opt) return `${base}#${sha}` } else { // don't use new URL for this, because it doesn't handle scp urls return spec.rawSpec.replace(/#.*$/, '') + `#${sha}` } } module.exports = addGitSha cache-dir.js 0000644 00000001003 15114547171 0006721 0 ustar 00 const os = require('os') const { resolve } = require('path') module.exports = (fakePlatform = false) => { const temp = os.tmpdir() const uidOrPid = process.getuid ? process.getuid() : process.pid const home = os.homedir() || resolve(temp, 'npm-' + uidOrPid) const platform = fakePlatform || process.platform const cacheExtra = platform === 'win32' ? 'npm-cache' : '.npm' const cacheRoot = (platform === 'win32' && process.env.LOCALAPPDATA) || home return resolve(cacheRoot, cacheExtra, '_cacache') } is-package-bin.js 0000644 00000001470 15114547171 0007664 0 ustar 00 // Function to determine whether a path is in the package.bin set. // Used to prevent issues when people publish a package from a // windows machine, and then install with --no-bin-links. // // Note: this is not possible in remote or file fetchers, since // we don't have the manifest until AFTER we've unpacked. But the // main use case is registry fetching with git a distant second, // so that's an acceptable edge case to not handle. const binObj = (name, bin) => typeof bin === 'string' ? { [name]: bin } : bin const hasBin = (pkg, path) => { const bin = binObj(pkg.name, pkg.bin) const p = path.replace(/^[^\\/]*\//, '') for (const kv of Object.entries(bin)) { if (kv[1] === p) { return true } } return false } module.exports = (pkg, path) => pkg && pkg.bin ? hasBin(pkg, path) : false npm.js 0000644 00000001112 15114547171 0005675 0 ustar 00 // run an npm command const spawn = require('@npmcli/promise-spawn') module.exports = (npmBin, npmCommand, cwd, env, extra) => { const isJS = npmBin.endsWith('.js') const cmd = isJS ? process.execPath : npmBin const args = (isJS ? [npmBin] : []).concat(npmCommand) // when installing to run the `prepare` script for a git dep, we need // to ensure that we don't run into a cycle of checking out packages // in temp directories. this lets us link previously-seen repos that // are also being prepared. return spawn(cmd, args, { cwd, stdioString: true, env }, extra) } tar-create-options.js 0000644 00000001622 15114547171 0010631 0 ustar 00 const isPackageBin = require('./is-package-bin.js') const tarCreateOptions = manifest => ({ cwd: manifest._resolved, prefix: 'package/', portable: true, gzip: { // forcing the level to 9 seems to avoid some // platform specific optimizations that cause // integrity mismatch errors due to differing // end results after compression level: 9, }, // ensure that package bins are always executable // Note that npm-packlist is already filtering out // anything that is not a regular file, ignored by // .npmignore or package.json "files", etc. filter: (path, stat) => { if (isPackageBin(manifest, path)) { stat.mode |= 0o111 } return true }, // Provide a specific date in the 1980s for the benefit of zip, // which is confounded by files dated at the Unix epoch 0. mtime: new Date('1985-10-26T08:15:00.000Z'), }) module.exports = tarCreateOptions trailing-slashes.js 0000644 00000000356 15114547171 0010365 0 ustar 00 const removeTrailingSlashes = (input) => { // in order to avoid regexp redos detection let output = input while (output.endsWith('/')) { output = output.slice(0, -1) } return output } module.exports = removeTrailingSlashes
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка