🚚 Rename getSolidpkgZip to getReleaseZip
This commit is contained in:
parent
e46faff11b
commit
e6ac909bb0
4 changed files with 26 additions and 6 deletions
|
@ -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);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue