MCPcopy
hub / github.com/di-sukharev/opencommit / mergePromise

Function mergePromise

out/cli.cjs:66715–66720  ·  view source on GitHub ↗
(spawned, promise)

Source from the content-addressed store, hash-verified

66713
66714// node_modules/execa/lib/promise.js
66715var nativePromisePrototype = (async () => {
66716})().constructor.prototype;
66717var descriptors = ["then", "catch", "finally"].map((property) => [
66718 property,
66719 Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
66720]);
66721var mergePromise = (spawned, promise) => {
66722 for (const [property, descriptor] of descriptors) {
66723 const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);

Callers 1

execaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…