parameters: ()
docstring: Returns the version of the library.
docstring_summary: Returns the version of the library.
docstring_tokens: Returns the version of the library .
function: def calculate_version():
    """Returns the version of the library."""
    # Fall back to NPM's installed package version, and assume the sources
    # are dirty since the build scripts are being run at all after install.
    try:
      return git_version()
    except RuntimeError:
      # If there is an error in |git_version|, ignore it and try NPM.  If there
      # is an error with NPM, propagate the error.
      return npm_version(is_dirty=True)
function_tokens: def calculate_version ( ) : # Fall back to NPM's installed package version, and assume the sources # are dirty since the build scripts are being run at all after install. try : return git_version ( ) except RuntimeError : # If there is an error in |git_version|, ignore it and try NPM.  If there # is an error with NPM, propagate the error. return npm_version ( is_dirty = True )