@ethersproject/sha2
Advanced tools
Comparing version 5.0.0-beta.126 to 5.0.0-beta.127
@@ -1,1 +0,1 @@ | ||
export declare const version = "5.0.0-beta.126"; | ||
export declare const version = "5.0.0-beta.127"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = "5.0.0-beta.126"; | ||
exports.version = "5.0.0-beta.127"; |
13
index.js
"use strict"; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var crypto_1 = require("crypto"); | ||
var bytes_1 = require("@ethersproject/bytes"); | ||
var errors = __importStar(require("@ethersproject/errors")); | ||
var logger_1 = require("@ethersproject/logger"); | ||
var _version_1 = require("./_version"); | ||
var logger = new logger_1.Logger(_version_1.version); | ||
var SupportedAlgorithms; | ||
@@ -33,3 +28,3 @@ (function (SupportedAlgorithms) { | ||
if (!SupportedAlgorithms[algorithm]) { | ||
errors.throwError("unsupported algorithm - " + algorithm, errors.UNSUPPORTED_OPERATION, { | ||
logger.throwError("unsupported algorithm - " + algorithm, logger_1.Logger.errors.UNSUPPORTED_OPERATION, { | ||
operation: "computeHmac", | ||
@@ -36,0 +31,0 @@ algorithm: algorithm |
{ | ||
"name": "@ethersproject/sha2", | ||
"version": "5.0.0-beta.126", | ||
"version": "5.0.0-beta.127", | ||
"description": "Error utility functions for ethers.", | ||
@@ -24,3 +24,3 @@ "main": "index.js", | ||
}, | ||
"tarballHash": "0xc92d2e95c42c5f2dd6b4bedb2b93cdc5239bf309c547382b9bada64860df5301" | ||
"tarballHash": "0xa9993356699afdb770f47a55a8dd278064671152428243b9dd8d9db87de8076c" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6549
111