remove duplicate urls
This commit is contained in:
@@ -7,7 +7,7 @@ def npm_create_package_lock_file(package):
|
||||
|
||||
|
||||
def get_all_urls_packages():
|
||||
return findall("https://.+.tgz", open("package-lock.json", "rt").read())
|
||||
return list(dict.fromkeys(findall("https://.+.tgz", open("package-lock.json", "rt").read())))
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user