Skip to content

Commit 03474d5

Browse files
Update packages/cloudflare/src/cli/build/patches/plugins/patch-depd-deprecations.ts
Co-authored-by: Victor Berchet <[email protected]>
1 parent 76b6a44 commit 03474d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cloudflare/src/cli/build/patches/plugins/patch-depd-deprecations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ rule:
3535
fix:
3636
function wrapfunction($FN, $MESSAGE) {
3737
if(typeof $FN !== 'function') throw new Error("argument fn must be a function");
38-
return (...args) => {
38+
return function deprecated_$FN(...args) {
3939
console.warn($MESSAGE);
4040
return $FN(...args);
4141
}

0 commit comments

Comments
 (0)