blake3
Version:
BLAKE3 hashing for JavaScript
1 lines • 1.07 kB
Source Map (JSON)
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["index.mts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,6EAA6E;AAC7E,6EAA6E;AAC7E,8BAA8B;AAC9B,EAAE;AACF,4EAA4E;AAC5E,+EAA+E;AAC/E,IAAK,OAAe,CAAC,OAAO,EAAE;IAC5B,MAAM,IAAI,KAAK,CACb,4EAA4E;QAC1E,yEAAyE;QACzE,qBAAqB,CACxB,CAAC;CACH;AAED,cAAc,sBAAsB,CAAC","sourcesContent":["// Bunlers add the `process.browser` flag to indicate the build enviroment.\n// Throw a verbose error if we see people bundling the Node.js build in their\n// browser, since it probably won't work for them (or at least not give them)\n// nice tree shaking and such.\n//\n// Note that we don't check the presence of window/document, since those can\n// be emulated in common test scenarios (e.g. jest's default setup with jsdom).\nif ((process as any).browser) {\n throw new Error(\n 'You tried to import the Node.js version of blake3, instead of the browser ' +\n 'version, in your build. You can fix this by importing \"blake3/browser\" ' +\n 'instead of \"blake3\"',\n );\n}\n\nexport * from '@c4312/blake3-native';\n"]}