File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11
22module . exports = exports = unpublish
33
4- exports . usage = 'Fetches info on published binaries'
4+ exports . usage = 'Lists all published binaries'
55
66var fs = require ( 'fs' )
77 , path = require ( 'path' )
Original file line number Diff line number Diff line change @@ -59,12 +59,15 @@ function validate_config(package_json,callback) {
5959 }
6060 var o = package_json . binary ;
6161 required_parameters . forEach ( function ( p ) {
62+ if ( missing . indexOf ( 'binary' ) > - 1 ) {
63+ missing . pop ( 'binary' ) ;
64+ }
6265 if ( ! o || o [ p ] == undefined ) {
63- missing . push ( 'binary.' + o ) ;
66+ missing . push ( 'binary.' + p ) ;
6467 }
6568 } ) ;
6669 if ( missing . length >= 1 ) {
67- throw new Error ( msg + "package.json must declare these properties: " + missing . join ( ', ' ) ) ;
70+ throw new Error ( msg + "package.json must declare these properties: \n " + missing . join ( '\n ' ) ) ;
6871 }
6972 if ( o ) {
7073 // enforce https over http
You can’t perform that action at this time.
0 commit comments