JezK
Edit File: package-name-utils.js.map
{"version":3,"file":"package-name-utils.js","names":["getPlatformSpecificPackageFilename","pkg","normalizeScope","name","substr","replace","suffix","getSystemParams","version","process","platform","arch","versions","modules"],"sourceRoot":"../../src","sources":["util/package-name-utils.js"],"sourcesContent":["/* @flow */\n\nexport function getPlatformSpecificPackageFilename(pkg: {name: string, version: string}): string {\n // TODO support hash for all subdependencies that have installs scripts\n const normalizeScope = name => (name[0] === '@' ? name.substr(1).replace('/', '-') : name);\n const suffix = getSystemParams();\n return `${normalizeScope(pkg.name)}-v${pkg.version}-${suffix}`;\n}\n\nexport function getSystemParams(): string {\n // TODO support platform variant for linux\n return `${process.platform}-${process.arch}-${process.versions.modules || ''}`;\n}\n"],"mappings":";;;;;;;AAEO,SAASA,kCAAkC,CAACC,GAAoC,EAAU;EAC/F;EACA,IAAMC,cAAc,GAAG,SAAjBA,cAAc,CAAGC,IAAI;IAAA,OAAKA,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,GAAGA,IAAI,CAACC,MAAM,CAAC,CAAC,CAAC,CAACC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,GAAGF,IAAI;EAAA,CAAC;EAC1F,IAAMG,MAAM,GAAGC,eAAe,EAAE;EAChC,iBAAUL,cAAc,CAACD,GAAG,CAACE,IAAI,CAAC,eAAKF,GAAG,CAACO,OAAO,cAAIF,MAAM;AAC9D;AAEO,SAASC,eAAe,GAAW;EACxC;EACA,iBAAUE,OAAO,CAACC,QAAQ,cAAID,OAAO,CAACE,IAAI,cAAIF,OAAO,CAACG,QAAQ,CAACC,OAAO,IAAI,EAAE;AAC9E"}