diff --git a/package-lock.json b/package-lock.json index 5d697af..daf3d34 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,16 +21,16 @@ "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" }, "ssn": { - "version": "git+https://git.jedipedia.net/swtor/ssn.git#4dec585ba98d9569a5c003f66ca69f2215acdda7", + "version": "git+https://git.jedipedia.net/swtor/ssn.git#78bda898f9f7135fb5abfa98956d75a1b6973033", "from": "git+https://git.jedipedia.net/swtor/ssn.git", "requires": { "@types/node": "^10.12.2", - "ssn-installer": "git+https://git.jedipedia.net/swtor/ssn-installer.git#15ca59a6a6c06d092383d6fdfb72a8e55bfa407b", + "ssn-installer": "git+https://git.jedipedia.net/swtor/ssn-installer.git#488e49b6b234caca0bfbc3f746fa16abdc002dea", "xml-js": "^1.6.8" } }, "ssn-installer": { - "version": "git+https://git.jedipedia.net/swtor/ssn-installer.git#15ca59a6a6c06d092383d6fdfb72a8e55bfa407b", + "version": "git+https://git.jedipedia.net/swtor/ssn-installer.git#488e49b6b234caca0bfbc3f746fa16abdc002dea", "from": "git+https://git.jedipedia.net/swtor/ssn-installer.git" }, "xml-js": { diff --git a/src/installPatch.ts b/src/installPatch.ts index 62bddc4..5a2072f 100644 --- a/src/installPatch.ts +++ b/src/installPatch.ts @@ -1,7 +1,7 @@ #!/usr/bin/env node import parseArguments from 'argument-parser'; -import { getPatch, Product, verifyProductName } from 'ssn'; +import { installPatch, Product, verifyProductName } from 'ssn'; const { args, fail } = parseArguments({ product: { short: 'p', description: 'Name of the product you want to install', verify: verifyProductName, message: (value) => `"${value}" is not a valid product name.` }, @@ -17,7 +17,7 @@ const { args, fail } = parseArguments({ (async () => { try { - await getPatch({ + await installPatch({ product: args.product as Product, from: Number(args.from), to: Number(args.to),