()
Returns the version of the library.
Returns the version of the library.
Returns the version of the library .
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)
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 )