createSHA.js 506 B

1234567891011121314
  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. const isNodeLike_1 = __importDefault(require("./isNodeLike"));
  7. function default_1(kind) {
  8. if (isNodeLike_1.default) {
  9. return module.require('crypto').createHash(kind);
  10. }
  11. return require('sha.js')(kind);
  12. }
  13. exports.default = default_1;
  14. //# sourceMappingURL=createSHA.js.map