dot notation preferred

This commit is contained in:
Todd Baur 2017-03-08 23:52:17 +09:00
parent b003a30b3b
commit 83f3e1c5ee
4 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ var ServicesMonitor = require('./services.js');
var Pipeline = require('../pipeline/pipeline.js');
var Server = require('../pipeline/server.js');
var Watch = require('../pipeline/watch.js');
var version = require('../../package.json')['version'];
var version = require('../../package.json').version;
var Engine = function(options) {
this.env = options.env;

View File

@ -2,7 +2,7 @@
var blessed = require("blessed");
var CommandHistory = require('./command_history.js');
var version = require('../../package.json')['version'];
var version = require('../../package.json').version;
function Dashboard(options) {
var title = (options && options.title) || "Embark " + version;

View File

@ -22,7 +22,7 @@ var IPFS = require('./upload/ipfs.js');
var Swarm = require('./upload/swarm.js');
var Cmd = require('./cmd.js');
var version = require('../package.json')['version'];
var version = require('../package.json').version;
var Embark = {

View File

@ -2,7 +2,7 @@
var Console = require('../lib/dashboard/console.js');
var Plugins = require('../lib/core/plugins.js');
var assert = require('assert');
var version = require('../package.json')['version'];
var version = require('../package.json').version;
describe('embark.Console', function() {
var plugins = new Plugins({plugins: {}});