@player-ui/common-expressions-plugin 0.14.1-next.6 → 0.14.1
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/CommonExpressionsPlugin.native.js +2 -2
- package/dist/CommonExpressionsPlugin.native.js.map +1 -1
- package/dist/xlr/ceil.json +1 -1
- package/dist/xlr/concat.json +1 -1
- package/dist/xlr/containsAny.json +1 -1
- package/dist/xlr/findProperty.json +1 -1
- package/dist/xlr/findPropertyIndex.json +1 -1
- package/dist/xlr/floor.json +1 -1
- package/dist/xlr/isEmpty.json +1 -1
- package/dist/xlr/isNotEmpty.json +1 -1
- package/dist/xlr/length.json +1 -1
- package/dist/xlr/lowerCase.json +1 -1
- package/dist/xlr/number.json +1 -1
- package/dist/xlr/replace.json +1 -1
- package/dist/xlr/round.json +1 -1
- package/dist/xlr/sentenceCase.json +1 -1
- package/dist/xlr/size.json +1 -1
- package/dist/xlr/split.json +1 -1
- package/dist/xlr/substr.json +1 -1
- package/dist/xlr/sum.json +1 -1
- package/dist/xlr/titleCase.json +1 -1
- package/dist/xlr/trim.json +1 -1
- package/dist/xlr/upperCase.json +1 -1
- package/package.json +3 -3
|
@@ -430,7 +430,7 @@ var CommonExpressionsPlugin = function() {
|
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
};
|
|
433
|
-
var
|
|
433
|
+
var createObjectMatcher = function createObjectMatcher(partialObj) {
|
|
434
434
|
var pairs = traverseObj(partialObj);
|
|
435
435
|
var matchFunction = function(searchObj) {
|
|
436
436
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
@@ -2655,7 +2655,7 @@ var CommonExpressionsPlugin = function() {
|
|
|
2655
2655
|
{
|
|
2656
2656
|
/** Add match -> value mapping to the registry */ key: "set",
|
|
2657
2657
|
value: function set(match, value) {
|
|
2658
|
-
var matcher = (typeof match === "undefined" ? "undefined" : _type_of(match)) === "object" ?
|
|
2658
|
+
var matcher = (typeof match === "undefined" ? "undefined" : _type_of(match)) === "object" ? createObjectMatcher(match) : createBasicMatcher(match);
|
|
2659
2659
|
this.store.insert({
|
|
2660
2660
|
key: match,
|
|
2661
2661
|
value: value,
|