This is an automated email from the ASF dual-hosted git repository. shazron pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cordova-ios.git
The following commit(s) were added to refs/heads/master by this push: new 8e718c0 Add warning that function in spawn.js is deprecated (#481) 8e718c0 is described below commit 8e718c01615e2f286b52129fdd7af4c18e91dcb6 Author: Chris Brody <chris.br...@gmail.com> AuthorDate: Wed Jan 9 01:25:19 2019 -0500 Add warning that function in spawn.js is deprecated (#481) Co-authored-by: Christopher J. Brody <chris.br...@gmail.com> Co-authored-by: Oliver Salzburg <oliver.salzb...@gmail.com> --- bin/templates/scripts/cordova/lib/spawn.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/templates/scripts/cordova/lib/spawn.js b/bin/templates/scripts/cordova/lib/spawn.js index a6c2930..78bdf7b 100644 --- a/bin/templates/scripts/cordova/lib/spawn.js +++ b/bin/templates/scripts/cordova/lib/spawn.js @@ -30,6 +30,9 @@ var proc = require('child_process'); * @deprecated Use `require('cordova-common').superspawn` instead. */ module.exports = function (cmd, args, opt_cwd) { + console.warn( + 'This function is deprecated, may be removed from a future release. ' + + "Use `require('cordova-common').superspawn` instead."); var d = Q.defer(); try { var child = proc.spawn(cmd, args, {cwd: opt_cwd, stdio: 'inherit'}); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org