Skip to content

Commit

Permalink
tools: update lint-md-dependencies to unified@11.0.5
Browse files Browse the repository at this point in the history
PR-URL: #53555
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
  • Loading branch information
nodejs-github-bot authored and marco-ippolito committed Aug 19, 2024
1 parent 06a6bd8 commit f941693
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 28 deletions.
9 changes: 2 additions & 7 deletions tools/lint-md/lint-md.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -497,16 +497,11 @@ const CallableInstance =
const proto = (
constr.prototype
);
const func = proto[property];
const value = proto[property];
const apply = function () {
return func.apply(apply, arguments)
return value.apply(apply, arguments)
};
Object.setPrototypeOf(apply, proto);
const names = Object.getOwnPropertyNames(func);
for (const p of names) {
const descriptor = Object.getOwnPropertyDescriptor(func, p);
if (descriptor) Object.defineProperty(apply, p, descriptor);
}
return apply
}
)
Expand Down
50 changes: 30 additions & 20 deletions tools/lint-md/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tools/lint-md/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"remark-preset-lint-node": "^5.0.2",
"remark-stringify": "^11.0.0",
"to-vfile": "^8.0.0",
"unified": "^11.0.4",
"unified": "^11.0.5",
"vfile-reporter": "^8.1.1"
},
"devDependencies": {
Expand Down

0 comments on commit f941693

Please sign in to comment.