File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ export type DsnProtocol = 'http' | 'https';
55export  interface  DsnComponents  { 
66  /** Protocol used to connect to Sentry. */ 
77  protocol : DsnProtocol ; 
8-   /** Public authorization key (deprecated, renamed to publicKey). */ 
9-   user ?: string ; 
108  /** Public authorization key. */ 
119  publicKey ?: string ; 
1210  /** Private authorization key (deprecated, optional). */ 
Original file line number Diff line number Diff line change @@ -55,13 +55,7 @@ function dsnFromString(str: string): DsnComponents {
5555} 
5656
5757function  dsnFromComponents ( components : DsnComponents ) : DsnComponents  { 
58-   // TODO this is for backwards compatibility, and can be removed in a future version 
59-   if  ( 'user'  in  components  &&  ! ( 'publicKey'  in  components ) )  { 
60-     components . publicKey  =  components . user ; 
61-   } 
62- 
6358  return  { 
64-     user : components . publicKey  ||  '' , 
6559    protocol : components . protocol , 
6660    publicKey : components . publicKey  ||  '' , 
6761    pass : components . pass  ||  '' , 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments