🚚 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

@ -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);
});