From e6ac909bb0eade74041d250c4995ea9ef8cb34f7 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 21 Oct 2018 03:35:46 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Rename=20getSolidpkgZip=20to=20g?= =?UTF-8?q?etReleaseZip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- package-lock.json | 21 ++++++++++++++++++++- package.json | 3 ++- src/{getSolidpkgZip.ts => getReleaseZip.ts} | 6 +++--- 4 files changed, 26 insertions(+), 6 deletions(-) rename src/{getSolidpkgZip.ts => getReleaseZip.ts} (79%) diff --git a/README.md b/README.md index f770875..9f2fd2e 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/package-lock.json b/package-lock.json index 004a72e..c7d77bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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" + } } } } diff --git a/package.json b/package.json index 1e02dab..801c64e 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/getSolidpkgZip.ts b/src/getReleaseZip.ts similarity index 79% rename from src/getSolidpkgZip.ts rename to src/getReleaseZip.ts index 50e93b8..3a5b5a5 100644 --- a/src/getSolidpkgZip.ts +++ b/src/getReleaseZip.ts @@ -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 '); @@ -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); });