File tree Expand file tree Collapse file tree 4 files changed +22
-10
lines changed
packages/devtools-proxy-support Expand file tree Collapse file tree 4 files changed +22
-10
lines changed Original file line number Diff line number Diff line change 24
24
"license" : " Apache-2.0" ,
25
25
"main" : " dist/index.js" ,
26
26
"exports" : {
27
- "require" : " ./dist/index.js" ,
28
- "import" : " ./dist/.esm-wrapper.mjs"
27
+ "." : {
28
+ "require" : " ./dist/index.js" ,
29
+ "import" : " ./dist/.esm-wrapper.mjs" ,
30
+ "types" : " ./dist/index.d.ts"
31
+ },
32
+ "./proxy-options" : {
33
+ "require" : " ./dist/proxy-options-public.js" ,
34
+ "import" : " ./dist/.esm-wrapper-po.mjs" ,
35
+ "types" : " ./dist/proxy-options-public.d.ts"
36
+ }
29
37
},
30
38
"types" : " ./dist/index.d.ts" ,
31
39
"scripts" : {
32
40
"bootstrap" : " npm run compile" ,
33
41
"prepublishOnly" : " npm run compile" ,
34
- "compile" : " tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs" ,
42
+ "compile" : " tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs && gen-esm-wrapper ./dist/proxy-options-public ./dist/.esm-wrapper-po.mjs " ,
35
43
"typecheck" : " tsc --noEmit" ,
36
44
"eslint" : " eslint" ,
37
45
"prettier" : " prettier" ,
Original file line number Diff line number Diff line change 1
- export {
2
- DevtoolsProxyOptions ,
3
- DevtoolsProxyOptionsSecrets ,
4
- translateToElectronProxyConfig ,
5
- extractProxySecrets ,
6
- mergeProxySecrets ,
7
- } from './proxy-options' ;
1
+ export * from './proxy-options-public' ;
8
2
export { Tunnel , TunnelOptions , createSocks5Tunnel } from './socks5' ;
9
3
export { createAgent , useOrCreateAgent , AgentWithInitialize } from './agent' ;
10
4
export {
Original file line number Diff line number Diff line change
1
+ // Seperate exports that can be loaded in a browser-only
2
+ // environment (e.g. compass-web).
3
+ export {
4
+ DevtoolsProxyOptions ,
5
+ DevtoolsProxyOptionsSecrets ,
6
+ translateToElectronProxyConfig ,
7
+ extractProxySecrets ,
8
+ mergeProxySecrets ,
9
+ } from './proxy-options' ;
Original file line number Diff line number Diff line change
1
+ // Only use browser-compatible imports or type imports here
1
2
import type { ConnectionOptions } from 'tls' ;
2
3
import type { TunnelOptions } from './socks5' ;
3
4
import type { ClientRequest } from 'http' ;
You can’t perform that action at this time.
0 commit comments