Rocky_Mountain_Vending/.pnpm-store/v10/files/c9/80dcf84b7cc9b1e039b4e140cb1ef513f7c57ba0e177f52b145beeddd3819ed9e88a9985752d6fc541c03f558d828696d13a3586679e77f75d8e5ba1765fcd
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

42 lines
1.6 KiB
Text

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebPlatformFunctions = void 0;
const PlatformFunctions_js_1 = require("./PlatformFunctions.js");
const StripeEmitter_js_1 = require("../StripeEmitter.js");
/**
* Specializes WebPlatformFunctions using APIs available in Web workers.
*/
class WebPlatformFunctions extends PlatformFunctions_js_1.PlatformFunctions {
/** @override */
getUname() {
return Promise.resolve(null);
}
/** @override */
createEmitter() {
return new StripeEmitter_js_1.StripeEmitter();
}
/** @override */
tryBufferData(data) {
if (data.file.data instanceof ReadableStream) {
throw new Error('Uploading a file as a stream is not supported in non-Node environments. Please open or upvote an issue at github.com/stripe/stripe-node if you use this, detailing your use-case.');
}
return Promise.resolve(data);
}
/** @override */
createNodeHttpClient() {
throw new Error('Stripe: `createNodeHttpClient()` is not available in non-Node environments. Please use `createFetchHttpClient()` instead.');
}
/** @override */
createDefaultHttpClient() {
return super.createFetchHttpClient();
}
/** @override */
createNodeCryptoProvider() {
throw new Error('Stripe: `createNodeCryptoProvider()` is not available in non-Node environments. Please use `createSubtleCryptoProvider()` instead.');
}
/** @override */
createDefaultCryptoProvider() {
return this.createSubtleCryptoProvider();
}
}
exports.WebPlatformFunctions = WebPlatformFunctions;