@budibase/shared-core 2.29.2 → 2.29.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/index.d.ts +0 -1
- package/dist/index.js +5 -41
- package/dist/index.js.map +4 -4
- package/dist/index.js.meta.json +1 -1
- package/dist/table.d.ts +1 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/constants/rows.d.ts +0 -3
package/dist/index.js
CHANGED
|
@@ -1044,10 +1044,10 @@ var require_lodash = __commonJS({
|
|
|
1044
1044
|
}();
|
|
1045
1045
|
var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
|
|
1046
1046
|
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined2, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
|
|
1047
|
-
var DataView = getNative(context, "DataView"), Map = getNative(context, "Map"), Promise2 = getNative(context, "Promise"),
|
|
1047
|
+
var DataView = getNative(context, "DataView"), Map = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
|
|
1048
1048
|
var metaMap = WeakMap && new WeakMap();
|
|
1049
1049
|
var realNames = {};
|
|
1050
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise2), setCtorString = toSource(
|
|
1050
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
|
1051
1051
|
var symbolProto = Symbol2 ? Symbol2.prototype : undefined2, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined2, symbolToString = symbolProto ? symbolProto.toString : undefined2;
|
|
1052
1052
|
function lodash(value) {
|
|
1053
1053
|
if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
|
|
@@ -2801,8 +2801,8 @@ var require_lodash = __commonJS({
|
|
|
2801
2801
|
return func(number);
|
|
2802
2802
|
};
|
|
2803
2803
|
}
|
|
2804
|
-
var createSet = !(
|
|
2805
|
-
return new
|
|
2804
|
+
var createSet = !(Set && 1 / setToArray(new Set([, -0]))[1] == INFINITY) ? noop : function(values3) {
|
|
2805
|
+
return new Set(values3);
|
|
2806
2806
|
};
|
|
2807
2807
|
function createToPairs(keysFunc) {
|
|
2808
2808
|
return function(object) {
|
|
@@ -3101,7 +3101,7 @@ var require_lodash = __commonJS({
|
|
|
3101
3101
|
return result2;
|
|
3102
3102
|
};
|
|
3103
3103
|
var getTag = baseGetTag;
|
|
3104
|
-
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag ||
|
|
3104
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
3105
3105
|
getTag = function(value) {
|
|
3106
3106
|
var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined2, ctorString = Ctor ? toSource(Ctor) : "";
|
|
3107
3107
|
if (ctorString) {
|
|
@@ -10013,8 +10013,6 @@ __export(src_exports, {
|
|
|
10013
10013
|
BpmStatusKey: () => BpmStatusKey,
|
|
10014
10014
|
BpmStatusValue: () => BpmStatusValue,
|
|
10015
10015
|
BuilderSocketEvent: () => BuilderSocketEvent,
|
|
10016
|
-
CONSTANT_EXTERNAL_ROW_COLS: () => CONSTANT_EXTERNAL_ROW_COLS,
|
|
10017
|
-
CONSTANT_INTERNAL_ROW_COLS: () => CONSTANT_INTERNAL_ROW_COLS,
|
|
10018
10016
|
DEFAULT_BB_DATASOURCE_ID: () => DEFAULT_BB_DATASOURCE_ID,
|
|
10019
10017
|
GridSocketEvent: () => GridSocketEvent,
|
|
10020
10018
|
Header: () => Header,
|
|
@@ -10031,9 +10029,7 @@ __export(src_exports, {
|
|
|
10031
10029
|
canBeDisplayColumn: () => canBeDisplayColumn,
|
|
10032
10030
|
canBeSortColumn: () => canBeSortColumn,
|
|
10033
10031
|
dataFilters: () => filters_exports,
|
|
10034
|
-
findDuplicateInternalColumns: () => findDuplicateInternalColumns,
|
|
10035
10032
|
helpers: () => helpers_exports,
|
|
10036
|
-
isInternalColumnName: () => isInternalColumnName,
|
|
10037
10033
|
sdk: () => sdk_exports,
|
|
10038
10034
|
utils: () => utils_exports
|
|
10039
10035
|
});
|
|
@@ -10180,20 +10176,6 @@ var SWITCHABLE_TYPES = {
|
|
|
10180
10176
|
["number" /* NUMBER */]: ["number" /* NUMBER */, "boolean" /* BOOLEAN */]
|
|
10181
10177
|
};
|
|
10182
10178
|
|
|
10183
|
-
// src/constants/rows.ts
|
|
10184
|
-
var CONSTANT_INTERNAL_ROW_COLS = [
|
|
10185
|
-
"_id",
|
|
10186
|
-
"_rev",
|
|
10187
|
-
"type",
|
|
10188
|
-
"createdAt",
|
|
10189
|
-
"updatedAt",
|
|
10190
|
-
"tableId"
|
|
10191
|
-
];
|
|
10192
|
-
var CONSTANT_EXTERNAL_ROW_COLS = ["_id", "_rev", "tableId"];
|
|
10193
|
-
function isInternalColumnName(name) {
|
|
10194
|
-
return CONSTANT_INTERNAL_ROW_COLS.includes(name);
|
|
10195
|
-
}
|
|
10196
|
-
|
|
10197
10179
|
// src/constants/index.ts
|
|
10198
10180
|
var OperatorOptions = {
|
|
10199
10181
|
Equals: {
|
|
@@ -11233,20 +11215,6 @@ function canBeDisplayColumn(type) {
|
|
|
11233
11215
|
function canBeSortColumn(type) {
|
|
11234
11216
|
return !!allowSortColumnByType[type];
|
|
11235
11217
|
}
|
|
11236
|
-
function findDuplicateInternalColumns(table) {
|
|
11237
|
-
const columnNames = Object.keys(table.schema).concat(CONSTANT_INTERNAL_ROW_COLS).map((colName) => colName.toLowerCase());
|
|
11238
|
-
const set = new Set(columnNames);
|
|
11239
|
-
let duplicates = [];
|
|
11240
|
-
if (set.size !== columnNames.length) {
|
|
11241
|
-
for (let key of set.keys()) {
|
|
11242
|
-
const count = columnNames.filter((name) => name === key).length;
|
|
11243
|
-
if (count > 1) {
|
|
11244
|
-
duplicates.push(key);
|
|
11245
|
-
}
|
|
11246
|
-
}
|
|
11247
|
-
}
|
|
11248
|
-
return duplicates;
|
|
11249
|
-
}
|
|
11250
11218
|
// Annotate the CommonJS export names for ESM import in node:
|
|
11251
11219
|
0 && (module.exports = {
|
|
11252
11220
|
BpmCorrelationKey,
|
|
@@ -11254,8 +11222,6 @@ function findDuplicateInternalColumns(table) {
|
|
|
11254
11222
|
BpmStatusKey,
|
|
11255
11223
|
BpmStatusValue,
|
|
11256
11224
|
BuilderSocketEvent,
|
|
11257
|
-
CONSTANT_EXTERNAL_ROW_COLS,
|
|
11258
|
-
CONSTANT_INTERNAL_ROW_COLS,
|
|
11259
11225
|
DEFAULT_BB_DATASOURCE_ID,
|
|
11260
11226
|
GridSocketEvent,
|
|
11261
11227
|
Header,
|
|
@@ -11272,9 +11238,7 @@ function findDuplicateInternalColumns(table) {
|
|
|
11272
11238
|
canBeDisplayColumn,
|
|
11273
11239
|
canBeSortColumn,
|
|
11274
11240
|
dataFilters,
|
|
11275
|
-
findDuplicateInternalColumns,
|
|
11276
11241
|
helpers,
|
|
11277
|
-
isInternalColumnName,
|
|
11278
11242
|
sdk,
|
|
11279
11243
|
utils
|
|
11280
11244
|
});
|