Skip to content

Commit b7e836c

Browse files
Remove ability for customers to use unprotected HTTP modules (#5727)
* Remove ability for customers to use unprotected HTTP modules, they should use secured dependencies instead * Remove ability for customers to use unprotected HTTP modules --------- Co-authored-by: yau-wd <yau.ong@workday.com>
1 parent 23ce86c commit b7e836c

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

packages/components/src/utils.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -122,21 +122,7 @@ export const availableDependencies = [
122122

123123
const defaultAllowExternalDependencies = ['axios', 'moment', 'node-fetch']
124124

125-
export const defaultAllowBuiltInDep = [
126-
'assert',
127-
'buffer',
128-
'crypto',
129-
'events',
130-
'http',
131-
'https',
132-
'net',
133-
'path',
134-
'querystring',
135-
'timers',
136-
'tls',
137-
'url',
138-
'zlib'
139-
]
125+
export const defaultAllowBuiltInDep = ['assert', 'buffer', 'crypto', 'events', 'path', 'querystring', 'timers', 'url', 'zlib']
140126

141127
/**
142128
* Get base classes of components

0 commit comments

Comments
 (0)