loopback-datasource-juggler/index.js

14 lines
448 B
JavaScript

var fs = require('fs');
exports.Schema = require('./lib/schema').Schema;
exports.AbstractClass = require('./lib/abstract-class').AbstractClass;
exports.Validatable = require('./lib/validatable').Validatable;
try {
if (process.versions.node < '0.6' || true) {
exports.version = JSON.parse(fs.readFileSync(__dirname + '/package.json')).version;
} else {
exports.version = require('../package').version;
}
} catch (e) {}