File tree 1 file changed +14
-17
lines changed
1 file changed +14
-17
lines changed Original file line number Diff line number Diff line change 1
1
exports = module . exports = SemVer
2
2
3
- /* eslint-disable no-multi-spaces, indent */
4
- // The debug function is excluded entirely from the minified version.
5
- /* nomin */ var debug
6
- /* nomin */ /* istanbul ignore next */
7
- /* nomin */ if ( typeof process === 'object' &&
8
- /* nomin */ process . env &&
9
- /* nomin */ process . env . NODE_DEBUG &&
10
- /* nomin */ / \b s e m v e r \b / i. test ( process . env . NODE_DEBUG ) ) {
11
- /* nomin */ debug = function ( ) {
12
- /* nomin */ var args = Array . prototype . slice . call ( arguments , 0 )
13
- /* nomin */ args . unshift ( 'SEMVER' )
14
- /* nomin */ console . log . apply ( console , args )
15
- /* nomin */ }
16
- /* nomin */ } else {
17
- /* nomin */ debug = function ( ) { }
18
- /* nomin */ }
19
- /* eslint-enable no-multi-spaces, indent */
3
+ var debug
4
+ /* istanbul ignore next */
5
+ if ( typeof process === 'object' &&
6
+ process . env &&
7
+ process . env . NODE_DEBUG &&
8
+ / \b s e m v e r \b / i. test ( process . env . NODE_DEBUG ) ) {
9
+ debug = function ( ) {
10
+ var args = Array . prototype . slice . call ( arguments , 0 )
11
+ args . unshift ( 'SEMVER' )
12
+ console . log . apply ( console , args )
13
+ }
14
+ } else {
15
+ debug = function ( ) { }
16
+ }
20
17
21
18
// Note: this is the semver.org version of the spec that it implements
22
19
// Not necessarily the package version of this code.
You can’t perform that action at this time.
0 commit comments