Enable curl download

This commit is contained in:
C-3PO 2018-10-14 00:28:24 +02:00
parent 40bb7c8178
commit cb0807d3cf
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
3 changed files with 6 additions and 6 deletions

8
package-lock.json generated
View file

@ -4,9 +4,9 @@
"lockfileVersion": 1, "lockfileVersion": 1,
"dependencies": { "dependencies": {
"@types/node": { "@types/node": {
"version": "10.11.4", "version": "10.11.7",
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.11.4.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-10.11.7.tgz",
"integrity": "sha512-ojnbBiKkZFYRfQpmtnnWTMw+rzGp/JiystjluW9jgN3VzRwilXddJ6aGQ9V/7iuDG06SBgn7ozW9k3zcAnYjYQ==", "integrity": "sha512-yOxFfkN9xUFLyvWaeYj90mlqTJ41CsQzWKS3gXdOMOyPVacUsymejKxJ4/pMW7exouubuEeZLJawGgcNGYlTeg==",
"dev": true "dev": true
}, },
"sax": { "sax": {
@ -15,7 +15,7 @@
"integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw=="
}, },
"ssn-installer": { "ssn-installer": {
"version": "git+https://git.jedipedia.net/swtor/ssn-installer.git#3ddf3645adec42dd872ebaf593f9910eee3e5046", "version": "git+https://git.jedipedia.net/swtor/ssn-installer.git#8c8c5cf68a1a74527de5ccd268db0aa34b795e13",
"from": "git+https://git.jedipedia.net/swtor/ssn-installer.git" "from": "git+https://git.jedipedia.net/swtor/ssn-installer.git"
}, },
"xml-js": { "xml-js": {

View file

@ -12,7 +12,7 @@
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^10.11.4" "@types/node": "^10.11.7"
}, },
"dependencies": { "dependencies": {
"ssn-installer": "git+https://git.jedipedia.net/swtor/ssn-installer.git", "ssn-installer": "git+https://git.jedipedia.net/swtor/ssn-installer.git",

View file

@ -62,7 +62,7 @@ export default async function getPatch({ product, from, to, sourceDirectory, tar
//start download, making sure that .zip file downloads first //start download, making sure that .zip file downloads first
const indexOfLastFile = solidpkg.files.length - 1; const indexOfLastFile = solidpkg.files.length - 1;
const zipFile = getUrlContents(createUrlObject(solidpkg.files[indexOfLastFile])); const zipFile = getUrlContents(createUrlObject(solidpkg.files[indexOfLastFile]));
const diskFiles = solidpkg.files.slice(0, indexOfLastFile).map((file) => downloadWrapper({ ...createUrlObject(file), useCurl: false })); const diskFiles = solidpkg.files.slice(0, indexOfLastFile).map((file) => downloadWrapper({ ...createUrlObject(file), useCurl: true }));
//we can parse the file entries as soon as the .zip file is downloaded //we can parse the file entries as soon as the .zip file is downloaded
const fileEntries = readSsnFile(await zipFile); const fileEntries = readSsnFile(await zipFile);