@8base/utils
Advanced tools
Comparing version 0.15.3 to 0.15.4
@@ -20,2 +20,4 @@ "use strict"; | ||
var DEFAULT_DEPTH = 1; | ||
var getTableByName = function getTableByName(tablesList, tableName) { | ||
@@ -49,3 +51,3 @@ return tablesList.find(function (_ref) { | ||
var _queryObjectConfig$de = queryObjectConfig.deep, | ||
deep = _queryObjectConfig$de === void 0 ? 3 : _queryObjectConfig$de, | ||
deep = _queryObjectConfig$de === void 0 ? DEFAULT_DEPTH : _queryObjectConfig$de, | ||
_queryObjectConfig$wi = queryObjectConfig.withMeta, | ||
@@ -52,0 +54,0 @@ withMeta = _queryObjectConfig$wi === void 0 ? true : _queryObjectConfig$wi, |
{ | ||
"name": "@8base/utils", | ||
"version": "0.15.3", | ||
"version": "0.15.4", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
@@ -8,3 +8,2 @@ // @flow | ||
export type CheckedRule = { | ||
@@ -16,2 +15,4 @@ id: string, | ||
const DEFAULT_DEPTH = 1; | ||
const getTableByName = (tablesList: TableSchema[], tableName: string) => | ||
@@ -41,3 +42,7 @@ tablesList.find(({ name }) => tableName === name); | ||
const { fields = [] } = getTableByName(tablesList, tableName) || {}; | ||
const { deep = 3, withMeta = true, includeColumns } = queryObjectConfig; | ||
const { | ||
deep = DEFAULT_DEPTH, | ||
withMeta = true, | ||
includeColumns, | ||
} = queryObjectConfig; | ||
@@ -44,0 +49,0 @@ const queryObject = {}; |
Sorry, the diff of this file is not supported yet
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
410502
3358