Files
Dobie Wollert d3089dcd17 Latest Code
2015-04-06 03:28:20 -04:00

19 lines
618 B
JavaScript

var assert = require('assert');
var cluster = require('cluster');
var VERSION = require('./package.json').version;
if(cluster._strongStoreCluster) {
assert(
cluster._strongStoreCluster.VERSION === VERSION,
'Multiple versions of strong-strore-cluster are being initialized.\n' +
'This version ' + VERSION + ' is incompatible with already initialized\n' +
'version ' + cluster._strongStoreCluster.VERSION + '.\n'
);
module.exports = cluster._strongStoreCluster;
return;
}
module.exports = require('./lib/lib.js');
module.exports.VERSION = VERSION;
cluster._strongStoreCluster = module.exports;