blake3
Version:
BLAKE3 hashing for JavaScript
30 lines • 1.51 kB
JavaScript
;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
// Bunlers add the `process.browser` flag to indicate the build enviroment.
// Throw a verbose error if we see people bundling the Node.js build in their
// browser, since it probably won't work for them (or at least not give them)
// nice tree shaking and such.
//
// Note that we don't check the presence of window/document, since those can
// be emulated in common test scenarios (e.g. jest's default setup with jsdom).
if (process.browser) {
throw new Error('You tried to import the Node.js version of blake3, instead of the browser ' +
'version, in your build. You can fix this by importing "blake3/browser" ' +
'instead of "blake3"');
}
__exportStar(require("@c4312/blake3-native"), exports);
//# sourceMappingURL=index.cjs.map