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>
33 lines
No EOL
847 B
Text
33 lines
No EOL
847 B
Text
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.AsyncIterableUtil = void 0;
|
|
/**
|
|
* @internal
|
|
*/
|
|
class AsyncIterableUtil {
|
|
static async *map(iterable, map) {
|
|
for await (const value of iterable) {
|
|
yield await map(value);
|
|
}
|
|
}
|
|
static async *flatMap(iterable, map) {
|
|
for await (const value of iterable) {
|
|
yield* map(value);
|
|
}
|
|
}
|
|
static async collect(iterable) {
|
|
const result = [];
|
|
for await (const value of iterable) {
|
|
result.push(value);
|
|
}
|
|
return result;
|
|
}
|
|
static async first(iterable) {
|
|
for await (const value of iterable) {
|
|
return value;
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
exports.AsyncIterableUtil = AsyncIterableUtil;
|
|
//# sourceMappingURL=AsyncIterableUtil.js.map |