Bump NPM version to 0.3.31 in preparation for publishing.