Skip to content

Commit

Permalink
fix: add isGloballyWhitelisted back, but deprecated (#8556)
Browse files Browse the repository at this point in the history
Fixes the regression described at #8416 (comment)
  • Loading branch information
haoqunjiang authored Jun 14, 2023
1 parent 96c76fa commit 63dfe8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/shared/src/globalsAllowList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ const GLOBALS_ALLOWED =
'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console'

export const isGloballyAllowed = /*#__PURE__*/ makeMap(GLOBALS_ALLOWED)

/** @deprecated use `isGloballyAllowed` instead */
export const isGloballyWhitelisted = isGloballyAllowed

0 comments on commit 63dfe8e

Please sign in to comment.