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>
16 lines
No EOL
613 B
Text
16 lines
No EOL
613 B
Text
import { Subject } from '../Subject';
|
|
import { innerFrom } from '../observable/innerFrom';
|
|
import { operate } from '../util/lift';
|
|
import { fromSubscribable } from '../observable/fromSubscribable';
|
|
const DEFAULT_CONFIG = {
|
|
connector: () => new Subject(),
|
|
};
|
|
export function connect(selector, config = DEFAULT_CONFIG) {
|
|
const { connector } = config;
|
|
return operate((source, subscriber) => {
|
|
const subject = connector();
|
|
innerFrom(selector(fromSubscribable(subject))).subscribe(subscriber);
|
|
subscriber.add(source.subscribe(subject));
|
|
});
|
|
}
|
|
//# sourceMappingURL=connect.js.map |