-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename "country" property to "coutryCode" #6
Comments
After looking at the zxp sign cmd docs, they also label it as countryCode. I'll consider this, but it'll be a breaking change. This will come with a zxp-sign-cmd 2.x.x release |
I don't think there is a need to update the variable name. Firstly we can update the readme: From:
To:
And secondly, we should check the input on validity and display a nice error message when the user makes a mistake. |
Doc changes would help. I'm not comfortable doing validation in node.js-land. |
Validation can be as simple as |
+1 on error reporting. |
So looking at this in 2020 (time flies), changing the argument would potentially break the ~3 dozen modules using zxp-sign-cmd. This will be setup as "countryCode" with a fallback to the existing "country" and a console warning for deprecation of the old argument key. |
It is not clear what "country" property under selfSignedCert operation expects. Name suggests it has to be a full name country (Lithuania, Estonia), however, it expects a 2 letter coutryCode. So to avoid further confusion it would be beneficial to rename this property to countryCode instead.
The text was updated successfully, but these errors were encountered: