Comparing version 0.5.26 to 0.5.27
@@ -93,2 +93,3 @@ 'use strict'; | ||
this.relations = relations; | ||
this._relations = null; | ||
this.index = index; | ||
@@ -98,2 +99,10 @@ } | ||
(0, _createClass3.default)(Table, [{ | ||
key: 'getRelations', | ||
value: function getRelations() { | ||
if (!this._relations) { | ||
this._relations = this.relations(); | ||
} | ||
return this._relations; | ||
} | ||
}, { | ||
key: 'metaFields', | ||
@@ -394,3 +403,3 @@ value: function metaFields(metaKey) { | ||
value: function getRelation(relation) { | ||
var relationObj = this.relations()[relation]; | ||
var relationObj = this.getRelations()[relation]; | ||
_assert2.default.ok(relationObj, 'Relation \'' + this.tableName + '.' + relation + '\' is not exist.'); | ||
@@ -397,0 +406,0 @@ return relationObj; |
{ | ||
"name": "nothinkdb", | ||
"version": "0.5.26", | ||
"version": "0.5.27", | ||
"description": "Functional toolkit for rethinkdb", | ||
@@ -5,0 +5,0 @@ "main": "lib/nothinkdb.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39291
938