Convert private flag to boolean value
Detect source privacy and set npm registry depend on it