constructor()

in packages/sha1-browser/src/crossPlatformSha1.ts [10:16]


  constructor(secret?: SourceData) {
    if (supportsWebCrypto(locateWindow())) {
      this.hash = new WebCryptoSha1(secret);
    } else {
      throw new Error("SHA1 not supported");
    }
  }