curl_ifrs
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -38,15 +38,10 @@ #!/usr/bin/env node | ||
const regulars = titles.map(title => [ | ||
titles.map(title => [ | ||
baseUrl + buildRemoteName(title), | ||
buildLocalName(title), | ||
]); | ||
]).concat(irregulars).forEach(([url, saveas]) => { | ||
const cookie = 'Cookie: JSESSIONID=' + jsessionid; | ||
console.log(`curl -H "${cookie}" "${url}" > "${saveas}"`); | ||
}); | ||
const cookie = 'Cookie: JSESSIONID=' + jsessionid; | ||
const printCurl = ([url, saveas]) => { | ||
console.log(`curl -H '${cookie}' '${url}' > '${saveas}'`); | ||
}; | ||
regulars.forEach(printCurl); | ||
irregulars.forEach(printCurl); | ||
return 0; | ||
@@ -53,0 +48,0 @@ }; |
{ | ||
"name": "curl_ifrs", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Utility to download latest unaccompanied IFRS using curl.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
27309
113