File tree Expand file tree Collapse file tree 2 files changed +0
-41
lines changed Expand file tree Collapse file tree 2 files changed +0
-41
lines changed Original file line number Diff line number Diff line change 103
103
return littleGuys . indexOf ( c ) === - 1
104
104
} )
105
105
106
- var registryRefer
107
-
108
106
Object . keys ( abbrevs ) . concat ( plumbing ) . forEach ( function addCommand ( c ) {
109
107
Object . defineProperty ( npm . commands , c , { get : function ( ) {
110
108
if ( ! loaded ) {
140
138
}
141
139
} )
142
140
143
- if ( ! registryRefer ) {
144
- registryRefer = [ a ] . concat ( args [ 0 ] ) . map ( function ( arg ) {
145
- // exclude anything that might be a URL, path, or private module
146
- // Those things will always have a slash in them somewhere
147
- if ( arg && arg . match && arg . match ( / \/ | \\ / ) ) {
148
- return '[REDACTED]'
149
- } else {
150
- return arg
151
- }
152
- } ) . filter ( function ( arg ) {
153
- return arg && arg . match
154
- } ) . join ( ' ' )
155
- npm . referer = registryRefer
156
- npm . config . set ( 'refer' , npm . referer )
157
- }
158
-
159
141
cmd . apply ( npm , args )
160
142
}
161
143
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments