inngest
Version:
Official SDK for Inngest.com. Inngest is the reliability layer for modern applications. Inngest combines durable execution, events, and queues into a zero-infra platform with built-in observability.
25 lines (24 loc) • 803 B
JavaScript
//#region src/components/InngestEndpointAdapter.ts
let InngestEndpointAdapter;
(function(_InngestEndpointAdapter) {
const Tag = _InngestEndpointAdapter.Tag = "Inngest.EndpointAdapter";
_InngestEndpointAdapter.create = (rawFn, proxyFn) => {
const scopedOptions = {};
const fn = (options) => rawFn({
...scopedOptions,
...options
});
const properties = {
[Symbol.toStringTag]: { value: Tag },
withOptions: { value: (options) => {
Object.assign(scopedOptions, options);
return fn;
} }
};
if (proxyFn) properties["createProxyHandler"] = { value: proxyFn };
return Object.defineProperties(fn, properties);
};
})(InngestEndpointAdapter || (InngestEndpointAdapter = {}));
//#endregion
export { InngestEndpointAdapter };
//# sourceMappingURL=InngestEndpointAdapter.js.map