class Importmap::Packager
def vendored_pin_for(package, url)
def vendored_pin_for(package, url) filename = package_filename(package) version = extract_package_version_from(url) if "#{package}.js" == filename %(pin "#{package}" # #{version}) else %(pin "#{package}", to: "#{filename}" # #{version}) end end