Rocky_Mountain_Vending/.pnpm-store/v10/files/6b/91474ec0d6a36cd003da072c59b9648e02757707303f37815f160a806b01c6949f57fff99c046d703e871eef7af637625fcbd40af96cd24825950889055f70
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

21 lines
492 B
Text

const customSymbol = /*@__PURE__*/ Symbol("customPromisify");
function _promisify(fn) {
if (fn[customSymbol]) {
return fn[customSymbol];
}
return function(...args) {
return new Promise((resolve, reject) => {
try {
fn.call(this, ...args, (err, val) => {
if (err) {
return reject(err);
}
resolve(val);
});
} catch (error) {
reject(error);
}
});
};
}
export const promisify = /*@__PURE__*/ Object.assign(_promisify, { custom: customSymbol });