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

Function __copyProps

out/cli.cjs:19–26  ·  view source on GitHub ↗
(to, from, except, desc)

Source from the content-addressed store, hash-verified

17 __defProp(target, name, { get: all3[name], enumerable: true });
18};
19var __copyProps = (to, from, except, desc) => {
20 if (from && typeof from === "object" || typeof from === "function") {
21 for (let key of __getOwnPropNames(from))
22 if (!__hasOwnProp.call(to, key) && key !== except)
23 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
24 }
25 return to;
26};
27var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
28 // If the importer is in node compatibility mode or this is not an ESM
29 // file that has been converted to a CommonJS file using a Babel-

Callers 1

__toESMFunction · 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…