replace deprecated function __defineGetter__
This commit is contained in:
parent
efe4601fdb
commit
803e75e9b9
8
index.js
8
index.js
|
@ -4,11 +4,11 @@ exports.ModelBaseClass = require('./lib/model.js');
|
||||||
exports.GeoPoint = require('./lib/geo.js').GeoPoint;
|
exports.GeoPoint = require('./lib/geo.js').GeoPoint;
|
||||||
exports.ValidationError = require('./lib/validations.js').ValidationError;
|
exports.ValidationError = require('./lib/validations.js').ValidationError;
|
||||||
|
|
||||||
exports.__defineGetter__('version', function () {
|
Object.defineProperty(exports, 'version', {
|
||||||
return require('./package.json').version;
|
get: function() {return require('./package.json').version;}
|
||||||
});
|
});
|
||||||
|
|
||||||
var commonTest = './test/common_test';
|
var commonTest = './test/common_test';
|
||||||
exports.__defineGetter__('test', function () {
|
Object.defineProperty(exports, 'test', {
|
||||||
return require(commonTest);
|
get: function() {return require(commonTest);}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue