Skip to content

Commit

Permalink
Switch to new uuid, libraries update, fix to dependency tag render fo…
Browse files Browse the repository at this point in the history
…r inner content
  • Loading branch information
uzquiano committed Aug 10, 2017
1 parent 4483ab2 commit 69702bd
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
6 changes: 3 additions & 3 deletions duster/helpers/core/cloudcms/wcm/dependency.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = function(app, dust, callback)
var key = context.resolve(params.key);
var value = context.resolve(params.value);

return map(chunk, function(chunk) {
return map(chunk, function(chunk2) {

// TRACKER: START
tracker.start(context);
Expand All @@ -74,8 +74,8 @@ module.exports = function(app, dust, callback)
console.log("Unknown type for @dependency tag: " + type);
}

// keep going
end(chunk, context);
// render whatever is inside the tag and keep going
return chunk2.render( bodies.block, context );
});
};

Expand Down
4 changes: 2 additions & 2 deletions middleware/deployment/deployment.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var path = require('path');
var fs = require('fs');
var http = require('http');
var util = require("../../util/util");
var uuid = require("node-uuid");
var uuidv4 = require("uuid/v4");
var Gitana = require("gitana");
var duster = require("../../duster/index");

Expand Down Expand Up @@ -38,7 +38,7 @@ exports = module.exports = function()
}

// otherwise, we generate a host
var host = uuid.v4() + "-hosted." + descriptor.domain;
var host = uuidv4() + "-hosted." + descriptor.domain;

callback(null, host);
};
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"name": "cloudcms-server",
"description": "Cloud CMS Application Server Module",
"version": "0.8.420",
"version": "0.8.421",
"repository": {
"type": "git",
"url": "git://github.com/gitana/cloudcms-server.git"
Expand Down Expand Up @@ -49,7 +49,7 @@
"moment": "^2.15.1",
"morgan": "^1.7.0",
"node-redis-pubsub": "^1.0.0",
"node-uuid": "^1.4.7",
"uuid": "^3.1.0",
"object-hash": "^1.1.4",
"object-merge": "^2.5.1",
"on-headers": "^1.0.1",
Expand Down Expand Up @@ -80,7 +80,7 @@
"tar.gz": "^1.0.5",
"temp": "^0.8.3",
"toobusy-js": "^0.5.1",
"watch": "^0.19.2",
"watch": "^1.0.2",
"basic-logger": "^0.4.4"
},
"devDependencies": {},
Expand Down
1 change: 0 additions & 1 deletion util/hosts.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
var path = require('path');
var fs = require('fs');
var util = require("./util");
var uuid = require("node-uuid");

exports = module.exports;

Expand Down
6 changes: 3 additions & 3 deletions util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var path = require("path");
var mkdirp = require('mkdirp');
var request = require("request");
var mime = require("mime");
var uuid = require("node-uuid");
var uuidv4 = require("uuid/v4");
var os = require("os");
var async = require("async");
var temp = require("temp");
Expand Down Expand Up @@ -924,7 +924,7 @@ var replaceAll = exports.replaceAll = function(text, find, replace)

var createTempDirectory = exports.createTempDirectory = function(callback)
{
var tempDirectory = path.join(os.tmpdir(), "/tmp-" + uuid.v4());
var tempDirectory = path.join(os.tmpdir(), "/tmp-" + guid());

mkdirs(tempDirectory, function(err) {
callback(err, tempDirectory);
Expand Down Expand Up @@ -1513,7 +1513,7 @@ var countOpenHandles = exports.countOpenHandles = function(callback)

var guid = exports.guid = function()
{
return uuid.v4();
return uuidv4();
};

var bytesToSize = exports.bytesToSize = function(bytes)
Expand Down

0 comments on commit 69702bd

Please sign in to comment.