dtable-sdk
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -164,5 +164,11 @@ "use strict"; | ||
}, { | ||
key: "getTables", | ||
value: function getTables() { | ||
return this.dtableStore.value.tables; | ||
} | ||
}, { | ||
key: "getTableByName", | ||
value: function getTableByName(name) { | ||
return _dtableStore.TableUtils.getTableByName(this.dtableStore.value.tables, name); | ||
var tables = this.getTables(); | ||
return _dtableStore.TableUtils.getTableByName(tables, name); | ||
} | ||
@@ -184,3 +190,3 @@ }, { | ||
value: function appendRow(table, rowData) { | ||
var tables = this.dtableStore.value.tables; | ||
var tables = this.getTables(); | ||
var tableIndex = tables.findIndex(function (t) { | ||
@@ -204,3 +210,3 @@ return t._id === table._id; | ||
value: function modifyRow(table, row, updated) { | ||
var tables = this.dtableStore.value.tables; | ||
var tables = this.getTables(); | ||
var tableIndex = tables.findIndex(function (t) { | ||
@@ -222,4 +228,5 @@ return t._id === table._id; | ||
var value = this.dtableStore.value; | ||
var tables = this.getTables(); | ||
var table = _dtableStore.TableUtils.getTableByName(value.tables, tableName); | ||
var table = _dtableStore.TableUtils.getTableByName(tables, tableName); | ||
@@ -226,0 +233,0 @@ if (!table) { |
{ | ||
"name": "dtable-sdk", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "dtable sdk", | ||
@@ -5,0 +5,0 @@ "main": "./dist/dtable.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
187400
4684