Skip to content

Commit 71bc56c

Browse files
committed
lib: added choices_luid xml node parser
1 parent 78b744a commit 71bc56c

5 files changed

Lines changed: 17 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "quickbase",
3-
"version": "2.5.2",
3+
"version": "2.6.0",
44
"description": "A lightweight, very flexible QuickBase API",
55
"keywords": [
66
"QuickBase",

quickbase.browserify.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

quickbase.es5.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,9 @@ var QueryBuilder = function () {
596596

597597

598598
var xmlNodeParsers = {
599+
choices_luid: function choices_luid(val) {
600+
return val.choice_luid;
601+
},
599602
fields: function fields(val) {
600603
return QuickBase.checkIsArrAndConvert(val).map(function (value) {
601604
// Support Case #480141
@@ -604,6 +607,10 @@ var xmlNodeParsers = {
604607
value.formula = value.formula._;
605608
}
606609

610+
if (value.hasOwnProperty('choices_luid')) {
611+
value.choices_luid = xmlNodeParsers.choices_luid(value.choices_luid);
612+
}
613+
607614
return value;
608615
});
609616
},

quickbase.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,9 @@ class QueryBuilder {
550550

551551
/* XML Node Parsers */
552552
const xmlNodeParsers = {
553+
choices_luid(val) {
554+
return val.choice_luid;
555+
},
553556
fields(val) {
554557
return QuickBase.checkIsArrAndConvert(val).map((value) => {
555558
// Support Case #480141
@@ -558,6 +561,10 @@ const xmlNodeParsers = {
558561
value.formula = value.formula._;
559562
}
560563

564+
if (value.hasOwnProperty('choices_luid')) {
565+
value.choices_luid = xmlNodeParsers.choices_luid(value.choices_luid);
566+
}
567+
561568
return value;
562569
});
563570
},

quickbase.sa.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)