Skip to content

Commit

Permalink
fix util require path
Browse files Browse the repository at this point in the history
  • Loading branch information
particlebanana committed Oct 24, 2013
1 parent 247fcc6 commit de4a9ca
Show file tree
Hide file tree
Showing 22 changed files with 25 additions and 25 deletions.
8 changes: 4 additions & 4 deletions lib/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

var EventEmitter = require('events').EventEmitter,
async = require('async'),
util = require('sails/lib/util'),
log = require('sails/lib/hooks/logger/captains')(),
util = require('../util'),
loadSails = require('./load'),
onTeardown = require('./teardown'),
exposeGlobals = require('./exposeGlobals'),
Expand Down Expand Up @@ -114,11 +114,11 @@ function Sails () {
this.lift = function (configOverride, cb) {
// Make callback optional
cb = util.optional(cb);

var sails = this;

async.series([

function (cb) {
sails.load(configOverride, cb);
},
Expand Down Expand Up @@ -147,7 +147,7 @@ function Sails () {

this.lower = function (cb) {
var sails = this;

sails.log.verbose('Lowering sails...');
cb = util.optional(cb);
sails._exiting = true;
Expand Down
2 changes: 1 addition & 1 deletion lib/configuration/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function (sails) {
* Module dependencies.
*/

var util = require('sails/lib/util'),
var util = require('../util'),
fs = require('fs');


Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/controllers/controller.create.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function (sails) {
*/

var idHelper = require('./helpers/id')(sails),
util = require('sails/lib/util');
util = require('../../util');


/**
Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/controllers/controller.destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function (sails) {
*/

var idHelper = require('./helpers/id')(sails),
util = require('sails/lib/util');
util = require('../../util');



Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/controllers/controller.find.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function (sails) {
*/

var idHelper = require('./helpers/id')(sails),
util = require('sails/lib/util');
util = require('../../util');


/**
Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/controllers/controller.update.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function (sails) {
*/

var idHelper = require('./helpers/id')(sails),
util = require('sails/lib/util');
util = require('../../util');


/**
Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/controllers/helpers/id.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function (sails) {
* Module dependencies.
*/

var util = require('sails/lib/util');
var util = require('../../../util');


/**
Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = function(sails) {
var _ = require('lodash'),
async = require('async'),
pluralize = require('pluralize'),
util = require('sails/lib/util'),
util = require('../../util'),
Controller = {
find: require('./controller.find.js')(sails),
create: require('./controller.create.js')(sails),
Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/cors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function(sails) {
*/

var _ = require('lodash'),
util = require('sails/lib/util'),
util = require('../../util'),
expresstUtils = require('../../../node_modules/express/lib/utils.js');
Hook = require('../../index');

Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/csrf/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function(sails) {
*/

var _ = require('lodash'),
util = require('sails/lib/util'),
util = require('../../util'),
Hook = require('../../index');


Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/moduleloader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function(sails) {
* Module dependencies
*/

var util = require('sails/lib/util'),
var util = require('../../util'),
buildDictionary = require('./buildDictionary'),
async = require('async');

Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/orm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function(sails) {
*/


var util = require('sails/lib/util'),
var util = require('../../util'),
async = require('async'),
FatalError = require('../../errors/fatal')(sails),
loadAppModelsAndAdapters = require('./loadUserModules')(sails),
Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/orm/loadUserModules.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function(sails) {
* Module dependencies.
*/

var util = require('sails/lib/util'),
var util = require('../../util'),
async = require('async');


Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/policies/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function(sails) {
*/

var async = require('async'),
util = require('sails/lib/util'),
util = require('../../util'),
FatalError = require('../../errors/fatal')(sails);


Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/pubsub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function(sails) {
*/


var util = require('sails/lib/util');
var util = require('../../util');


/**
Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/request/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function(sails) {
*/


var util = require('sails/lib/util');
var util = require('../../util');


/**
Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/services/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function(sails) {
* Module dependencies
*/

var util = require('sails/lib/util'),
var util = require('../../util'),
async = require('async');


Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/session/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function (sails) {
* Module dependencies.
*/

var util = require('sails/lib/util'),
var util = require('../../util'),
crypto = require("crypto");


Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/sockets/interpreter/getVerb.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var util = require('sails/lib/util');
var util = require('../../../util');

// Get simulated HTTP verb for a given request object
module.exports = function getVerb (socketIOData, messageName) {
Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/userconfig/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = function(sails) {
* Module dependencies
*/

var util = require('sails/lib/util'),
var util = require('../../util'),
async = require('async');


Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/userhooks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = function(sails) {
/**
* Module dependencies
*/
var util = require('sails/lib/util'),
var util = require('../../util'),
initializeHooks = require('../../app/loadHooks')(sails);

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/hooks/views/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function (sails) {
*/


var util = require('sails/lib/util'),
var util = require('../../util'),
async = require('async'),
fs = require('fs'),
path = require('path'),
Expand Down

0 comments on commit de4a9ca

Please sign in to comment.