File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,13 @@ var path = require('path');
35
35
var pkg = require ( '../package.json' ) ;
36
36
var program = require ( 'commander' ) ;
37
37
var request = require ( 'superagent' ) ;
38
- var S = require ( 'string' ) ;
39
38
var YAML = require ( 'js-yaml' ) ;
40
39
40
+ String . prototype . padRight = function ( length ) {
41
+ var pad = Array ( 256 ) . join ( ' ' ) ;
42
+ return ( this + pad ) . substring ( 0 , length ) ;
43
+ } ;
44
+
41
45
var exitWithError = function ( msg ) {
42
46
console . error ( ) ;
43
47
console . error ( ' error: ' + msg ) ;
@@ -222,8 +226,8 @@ program
222
226
console . log ( 'Swagger ' + version + ' Information:' ) ;
223
227
console . log ( ) ;
224
228
225
- console . log ( ' ' + S ( 'documentation url' ) . padRight ( paddingAmount ) . s + spec . docsUrl ) ;
226
- console . log ( ' ' + S ( 'schema(s) url' ) . padRight ( paddingAmount ) . s + spec . schemasUrl ) ;
229
+ console . log ( ' ' + 'documentation url' . padRight ( paddingAmount ) + spec . docsUrl ) ;
230
+ console . log ( ' ' + 'schema(s) url' . padRight ( paddingAmount ) + spec . schemasUrl ) ;
227
231
console . log ( ) ;
228
232
} ) ;
229
233
Original file line number Diff line number Diff line change 79
79
"qs" : " ^6.0.3" ,
80
80
"serve-static" : " ^1.10.0" ,
81
81
"spark-md5" : " ^3.0.0" ,
82
- "string" : " ^3.3.0" ,
83
82
"superagent" : " ^3.5.2" ,
84
83
"swagger-converter" : " ^0.1.7" ,
85
84
"traverse" : " ^0.6.6" ,
You can’t perform that action at this time.
0 commit comments