✨ Enable curl download
This commit is contained in:
parent
40bb7c8178
commit
cb0807d3cf
3 changed files with 6 additions and 6 deletions
8
package-lock.json
generated
8
package-lock.json
generated
|
@ -4,9 +4,9 @@
|
|||
"lockfileVersion": 1,
|
||||
"dependencies": {
|
||||
"@types/node": {
|
||||
"version": "10.11.4",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.11.4.tgz",
|
||||
"integrity": "sha512-ojnbBiKkZFYRfQpmtnnWTMw+rzGp/JiystjluW9jgN3VzRwilXddJ6aGQ9V/7iuDG06SBgn7ozW9k3zcAnYjYQ==",
|
||||
"version": "10.11.7",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.11.7.tgz",
|
||||
"integrity": "sha512-yOxFfkN9xUFLyvWaeYj90mlqTJ41CsQzWKS3gXdOMOyPVacUsymejKxJ4/pMW7exouubuEeZLJawGgcNGYlTeg==",
|
||||
"dev": true
|
||||
},
|
||||
"sax": {
|
||||
|
@ -15,7 +15,7 @@
|
|||
"integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw=="
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"xml-js": {
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^10.11.4"
|
||||
"@types/node": "^10.11.7"
|
||||
},
|
||||
"dependencies": {
|
||||
"ssn-installer": "git+https://git.jedipedia.net/swtor/ssn-installer.git",
|
||||
|
|
|
@ -62,7 +62,7 @@ export default async function getPatch({ product, from, to, sourceDirectory, tar
|
|||
//start download, making sure that .zip file downloads first
|
||||
const indexOfLastFile = solidpkg.files.length - 1;
|
||||
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
|
||||
const fileEntries = readSsnFile(await zipFile);
|
||||
|
|
Loading…
Reference in a new issue