🚚 Rename getSolidpkgZip to getReleaseZip

This commit is contained in:
C-3PO 2018-10-21 03:35:46 +02:00
parent e46faff11b
commit e6ac909bb0
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
4 changed files with 26 additions and 6 deletions

View file

@ -26,7 +26,7 @@ complete -W 'assets_swtor_de_de assets_swtor_en_us assets_swtor_fr_fr assets_swt
```bash
node dist/getManifest.js assets_swtor_main
node dist/getSolidPkg.js assets_swtor_main 126 127
node dist/getSolidPkgZip.js assets_swtor_main 126 127
node dist/getReleaseZip.js assets_swtor_main 126 127
node dist/installPatch.js assets_swtor_main 126 127
swtor_install assets_swtor_main 126 127
```

21
package-lock.json generated
View file

@ -9,13 +9,23 @@
"integrity": "sha512-3TUHC3jsBAB7qVRGxT6lWyYo2v96BMmD2PTcl47H25Lu7UXtFH/2qqmKiVrnel6Ne//0TFYf6uvNX+HW2FRkLQ==",
"dev": true
},
"camelcase": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.0.0.tgz",
"integrity": "sha512-faqwZqnWxbxn+F1d399ygeamQNy3lPp/H9H6rNrqYh4FSVCtcY+3cub1MxA8o9mDd55mM8Aghuu/kuyYA6VTsA=="
},
"decamelize": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
"integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA="
},
"sax": {
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
"integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw=="
},
"ssn": {
"version": "git+https://git.jedipedia.net/swtor/ssn.git#684a123a7689ae2bc12a7ba00a6466366fc5bc19",
"version": "git+https://git.jedipedia.net/swtor/ssn.git#f56f0c85e101fb8550536c1fbaf10a1c2431b783",
"from": "git+https://git.jedipedia.net/swtor/ssn.git",
"requires": {
"ssn-installer": "git+https://git.jedipedia.net/swtor/ssn-installer.git#01926cfe97a3166cff46a2061dda519f9c262d40",
@ -33,6 +43,15 @@
"requires": {
"sax": "^1.2.4"
}
},
"yargs-parser": {
"version": "11.0.0",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.0.0.tgz",
"integrity": "sha512-dvsafRjM45h79WOTvS/dP35Sb31SlGAKz6tFjI97kGC4MJFBuzTZY6TTYHrz0QSMQdkyd8Y+RsOMLr+JY0nPFQ==",
"requires": {
"camelcase": "^5.0.0",
"decamelize": "^1.2.0"
}
}
}
}

View file

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

View file

@ -1,4 +1,4 @@
import { getSolidpkgZip, ISsnFileEntry, Product, verifyProductName } from 'ssn';
import { getReleaseZip, ISsnFileEntry, Product, verifyProductName } from 'ssn';
import failWithError from './failWithError';
const failFunction = failWithError.bind(null, 'node dist/getSolidpkgZip.js <product> <from> <to>');
@ -23,8 +23,8 @@ if (!to.match(/^(0|[1-9][0-9]{0,2})$/)) {
failFunction(`to value "${to.substring(0, 300)}" is not a valid integer; it must be in range [0, 999].`);
}
//Get solidpkg's .zip file and write output to stdout
getSolidpkgZip(product as Product, Number(from), Number(to)).then((output: ISsnFileEntry[]) => {
//Get the .zip file from this release and write output to stdout
getReleaseZip(product as Product, Number(from), Number(to)).then((output: ISsnFileEntry[]) => {
process.stdout.write(JSON.stringify(output));
//process.exit(0);
});