Skip to content

Commit 0312065

Browse files
nodejs-github-botmarco-ippolito
authored andcommitted
tools: update lint-md-dependencies to [email protected]
PR-URL: #53555 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
1 parent 43ac5a2 commit 0312065

File tree

3 files changed

+33
-28
lines changed

3 files changed

+33
-28
lines changed

tools/lint-md/lint-md.mjs

+2-7
Original file line numberDiff line numberDiff line change
@@ -497,16 +497,11 @@ const CallableInstance =
497497
const proto = (
498498
constr.prototype
499499
);
500-
const func = proto[property];
500+
const value = proto[property];
501501
const apply = function () {
502-
return func.apply(apply, arguments)
502+
return value.apply(apply, arguments)
503503
};
504504
Object.setPrototypeOf(apply, proto);
505-
const names = Object.getOwnPropertyNames(func);
506-
for (const p of names) {
507-
const descriptor = Object.getOwnPropertyDescriptor(func, p);
508-
if (descriptor) Object.defineProperty(apply, p, descriptor);
509-
}
510505
return apply
511506
}
512507
)

tools/lint-md/package-lock.json

+30-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/lint-md/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"remark-preset-lint-node": "^5.0.2",
1111
"remark-stringify": "^11.0.0",
1212
"to-vfile": "^8.0.0",
13-
"unified": "^11.0.4",
13+
"unified": "^11.0.5",
1414
"vfile-reporter": "^8.1.1"
1515
},
1616
"devDependencies": {

0 commit comments

Comments
 (0)