added isLocked function which checks if the user is either readonly or locked
build mcap-js