Rocky_Mountain_Vending/.pnpm-store/v10/files/63/408aee50371845acca8cf0f11c66f8677344281c147ee7cee52202b619ead108c0f93f205a02367a6c4344892ed2f07fb9c66aa81e5d969a18490f486544e7
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

27 lines
No EOL
933 B
Text

import { Sha256 as WebCryptoSha256 } from "./webCryptoSha256";
import { Sha256 as JsSha256 } from "@aws-crypto/sha256-js";
import { supportsWebCrypto } from "@aws-crypto/supports-web-crypto";
import { locateWindow } from "@aws-sdk/util-locate-window";
import { convertToBuffer } from "@aws-crypto/util";
var Sha256 = /** @class */ (function () {
function Sha256(secret) {
if (supportsWebCrypto(locateWindow())) {
this.hash = new WebCryptoSha256(secret);
}
else {
this.hash = new JsSha256(secret);
}
}
Sha256.prototype.update = function (data, encoding) {
this.hash.update(convertToBuffer(data));
};
Sha256.prototype.digest = function () {
return this.hash.digest();
};
Sha256.prototype.reset = function () {
this.hash.reset();
};
return Sha256;
}());
export { Sha256 };
//# sourceMappingURL=crossPlatformSha256.js.map