Skip to content

Commit

Permalink
Fix node 4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris authored and sgtcoolguy committed Aug 16, 2017
1 parent 0e5fe41 commit 9db40e7
Show file tree
Hide file tree
Showing 24 changed files with 48 additions and 2 deletions.
2 changes: 2 additions & 0 deletions android/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* Please see the LICENSE included with this distribution for details.
*/

'use strict';

const ADB = require('node-titanium-sdk/lib/adb'),
AdmZip = require('adm-zip'),
android = require('node-titanium-sdk/lib/android'),
Expand Down
2 changes: 2 additions & 0 deletions android/cli/commands/_buildModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* Please see the LICENSE included with this distribution for details.
*/

'use strict';

const AdmZip = require('adm-zip'),
androidDetect = require('../lib/detect').detect,
appc = require('node-appc'),
Expand Down
2 changes: 2 additions & 0 deletions android/cli/hooks/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* See the LICENSE file for more information.
*/

'use strict';

const appc = require('node-appc'),
fs = require('fs'),
path = require('path'),
Expand Down
2 changes: 2 additions & 0 deletions android/cli/hooks/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* See the LICENSE file for more information.
*/

'use strict';

const ADB = require('node-titanium-sdk/lib/adb'),
appc = require('node-appc'),
async = require('async'),
Expand Down
2 changes: 2 additions & 0 deletions android/cli/lib/AndroidManifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Please see the LICENSE file for information about licensing.
*/

'use strict';

const appc = require('node-appc'),
DOMParser = require('xmldom').DOMParser,
fs = require('fs'),
Expand Down
2 changes: 2 additions & 0 deletions android/cli/lib/base-builder.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

const appc = require('node-appc'),
Builder = require('node-titanium-sdk/lib/builder'),
DOMParser = require('xmldom').DOMParser,
Expand Down
2 changes: 2 additions & 0 deletions android/cli/lib/detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* Please see the LICENSE included with this distribution for details.
*/

'use strict';

const android = require('node-titanium-sdk/lib/android'),
ADB = require('node-titanium-sdk/lib/adb'),
EmulatorManager = require('node-titanium-sdk/lib/emulator'),
Expand Down
1 change: 1 addition & 0 deletions android/cli/lib/info.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict';
const appc = require('node-appc'),
__ = appc.i18n(__dirname).__,
fs = require('fs'),
Expand Down
2 changes: 2 additions & 0 deletions cli/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* See the LICENSE file for more information.
*/

'use strict';

const appc = require('node-appc'),
fields = require('fields'),
fs = require('fs'),
Expand Down
2 changes: 2 additions & 0 deletions cli/commands/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* See the LICENSE file for more information.
*/

'use strict';

const appc = require('node-appc'),
i18n = appc.i18n(__dirname),
__ = i18n.__,
Expand Down
2 changes: 2 additions & 0 deletions cli/commands/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* Please see the LICENSE included with this distribution for details.
*/

'use strict';

const appc = require('node-appc'),
async = require('async'),
fields = require('fields'),
Expand Down
2 changes: 2 additions & 0 deletions cli/commands/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Copyright (c) 2012-2017, Appcelerator, Inc. All Rights Reserved.
* See the LICENSE file for more information.
*/
'use strict';

const path = require('path'),
ti = require('node-titanium-sdk'),
appc = require('node-appc'),
Expand Down
2 changes: 2 additions & 0 deletions cli/lib/creator.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* Please see the LICENSE included with this distribution for details.
*/

'use strict';

const appc = require('node-appc'),
async = require('async'),
ejs = require('ejs'),
Expand Down
2 changes: 2 additions & 0 deletions cli/lib/creators/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* Please see the LICENSE included with this distribution for details.
*/

'use strict';

const appc = require('node-appc'),
Creator = require('../creator'),
fs = require('fs'),
Expand Down
2 changes: 2 additions & 0 deletions cli/lib/creators/applewatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* Please see the LICENSE included with this distribution for details.
*/

'use strict';

const appc = require('node-appc'),
Creator = require('../creator'),
DOMParser = require('xmldom').DOMParser,
Expand Down
2 changes: 2 additions & 0 deletions cli/lib/creators/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* Please see the LICENSE included with this distribution for details.
*/

'use strict';

const appc = require('node-appc'),
Creator = require('../creator'),
fs = require('fs'),
Expand Down
5 changes: 3 additions & 2 deletions cli/lib/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
* See the LICENSE file for more information.
*/

const
appc = require('node-appc'),
'use strict';

const appc = require('node-appc'),
fs = require('fs'),
path = require('path'),
genymotion = require('node-titanium-sdk/lib/emulators/genymotion'),
Expand Down
2 changes: 2 additions & 0 deletions iphone/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* Please see the LICENSE included with this distribution for details.
*/

'use strict';

const appc = require('node-appc'),
async = require('async'),
bufferEqual = require('buffer-equal'),
Expand Down
2 changes: 2 additions & 0 deletions iphone/cli/commands/_buildModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* Please see the LICENSE included with this distribution for details.
*/

'use strict';

const appc = require('node-appc'),
AdmZip = require('adm-zip'),
archiver = require('archiver'),
Expand Down
2 changes: 2 additions & 0 deletions iphone/cli/hooks/hyperloop.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* @author Jeff Haynie
* @date 02/06/2014
*/
'use strict';

const fs = require('fs'),
path = require('path'),
os = require('os'),
Expand Down
2 changes: 2 additions & 0 deletions iphone/cli/hooks/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* See the LICENSE file for more information.
*/

'use strict';

const appc = require('node-appc'),
async = require('async'),
fs = require('fs'),
Expand Down
2 changes: 2 additions & 0 deletions iphone/cli/hooks/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* See the LICENSE file for more information.
*/

'use strict';

const appc = require('node-appc'),
__ = appc.i18n(__dirname).__,
afs = appc.fs,
Expand Down
2 changes: 2 additions & 0 deletions iphone/cli/hooks/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* See the LICENSE file for more information.
*/

'use strict';

const appc = require('node-appc'),
ioslib = require('ioslib'),
i18n = appc.i18n(__dirname),
Expand Down
2 changes: 2 additions & 0 deletions iphone/cli/lib/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* Please see the LICENSE included with this distribution for details.
*/

'use strict';

const appc = require('node-appc'),
fs = require('fs'),
ioslib = require('ioslib'),
Expand Down

0 comments on commit 9db40e7

Please sign in to comment.