Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /usr/share/nodejs/normalize-package-data/lib/ drwxr-xr-x |
Viewing file: Select action/file-type: module.exports = normalize var fixer = require('./fixer') normalize.fixer = fixer var makeWarning = require('./make_warning') var fieldsToFix = ['name', 'version', 'description', 'repository', 'modules', 'scripts', 'files', 'bin', 'man', 'bugs', 'keywords', 'readme', 'homepage', 'license'] var otherThingsToFix = ['dependencies', 'people', 'typos'] var thingsToFix = fieldsToFix.map(function (fieldName) { return ucFirst(fieldName) + 'Field' }) // two ways to do this in CoffeeScript on only one line, sub-70 chars: // thingsToFix = fieldsToFix.map (name) -> ucFirst(name) + "Field" // thingsToFix = (ucFirst(name) + "Field" for name in fieldsToFix) thingsToFix = thingsToFix.concat(otherThingsToFix) function normalize (data, warn, strict) { if (warn === true) { warn = null strict = true } if (!strict) { strict = false } if (!warn || data.private) { warn = function (msg) { /* noop */ } } if (data.scripts && data.scripts.install === 'node-gyp rebuild' && !data.scripts.preinstall) { data.gypfile = true } fixer.warn = function () { warn(makeWarning.apply(null, arguments)) } thingsToFix.forEach(function (thingName) { fixer['fix' + ucFirst(thingName)](data, strict) }) data._id = data.name + '@' + data.version } function ucFirst (string) { return string.charAt(0).toUpperCase() + string.slice(1) } |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0057 ]-- |