Skip to content

Commit

Permalink
tools: update lint-md-dependencies to [email protected]
Browse files Browse the repository at this point in the history
PR-URL: #53555
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Mohammed Keyvanzadeh <[email protected]>
  • Loading branch information
nodejs-github-bot authored and aduh95 committed Jul 12, 2024
1 parent 0de6836 commit 48a11ad
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 48a11ad

Please sign in to comment.