mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
19 lines
618 B
JavaScript
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;
|