

def get_js_urls(bundle, debug=None):
    '\n    Fetch URLs for the JS files in the requested bundle.\n\n    :param bundle:\n        Name of the bundle to fetch.\n\n    :param debug:\n        If True, return URLs for individual files instead of the minified\n        bundle.\n    '
    if (debug is None):
        debug = settings.TEMPLATE_DEBUG
    if debug:
        return [_get_item_path(('%s?build=%s' % (item, _get_mtime(item)))) for item in settings.MINIFY_BUNDLES['js'][bundle]]
    else:
        build_id = BUILD_ID_JS
        bundle_full = ('js:%s' % bundle)
        if (bundle_full in BUNDLE_HASHES):
            build_id = BUNDLE_HASHES[bundle_full]
        return (_get_item_path(('js/%s-min.js?build=%s' % (bundle, build_id))),)

dataset/ETHPy150Open jsocol/jingo-minify/jingo_minify/helpers.py get_js_urls/original