Make companyName and submitURL required options
This commit is contained in:
parent
dcc99dd5cb
commit
524649797f
2 changed files with 13 additions and 4 deletions
|
@ -54,7 +54,10 @@ deprecate.event = (emitter, oldName, newName, fn) ->
|
|||
|
||||
# Print deprecate warning.
|
||||
deprecate.warn = (oldName, newName) ->
|
||||
message = "#{oldName} is deprecated. Use #{newName} instead."
|
||||
deprecate.log("#{oldName} is deprecated. Use #{newName} instead.")
|
||||
|
||||
# Print deprecation message
|
||||
deprecate.log = (message) ->
|
||||
if process.throwDeprecation
|
||||
throw new Error(message)
|
||||
else if process.traceDeprecation
|
||||
|
@ -62,4 +65,5 @@ deprecate.warn = (oldName, newName) ->
|
|||
else
|
||||
console.warn "(electron) #{message}"
|
||||
|
||||
|
||||
module.exports = deprecate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue