Rocky_Mountain_Vending/.pnpm-store/v10/files/f3/ef4fbcb1eb81347b48f9fa27bfe7222da11b3e4a4c569d17de3ec48e4203a9c201715eee6b0a7c22962cb1f5e556e15b5f8d6cc7240003fdb9e8c4c140101c
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

38 lines
1.4 KiB
Text

import { PlatformFunctions } from './PlatformFunctions.js';
import { StripeEmitter } from '../StripeEmitter.js';
/**
* Specializes WebPlatformFunctions using APIs available in Web workers.
*/
export class WebPlatformFunctions extends PlatformFunctions {
/** @override */
getUname() {
return Promise.resolve(null);
}
/** @override */
createEmitter() {
return new 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();
}
}