@infrab4a/connect 0.4.7-beta.1 → 0.4.7-beta.2
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/bundles/infrab4a-connect.umd.js +3 -2
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/esm2015/lib/infra/firebase/firestore/mixins/with-update-firestore.mixin.js +3 -3
- package/fesm2015/infrab4a-connect.js +2 -2
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/package.json +2 -2
|
@@ -1208,6 +1208,7 @@
|
|
|
1208
1208
|
var withUpdateFirestore = function (MixinBase) {
|
|
1209
1209
|
var getValueFromParams = function (params, field) { var _a; return (lodash.isNil((_a = params[field]) === null || _a === void 0 ? void 0 : _a.value) ? params[field] : params[field].value) || null; };
|
|
1210
1210
|
var getValueByAction = function (options) {
|
|
1211
|
+
var _b, _c;
|
|
1211
1212
|
var fieldValues = firebase__default["default"].firestore.FieldValue;
|
|
1212
1213
|
console.log(options.value);
|
|
1213
1214
|
console.log('Array.isArray(options.value)', Array.isArray(options.value));
|
|
@@ -1219,9 +1220,9 @@
|
|
|
1219
1220
|
console.log(options.action);
|
|
1220
1221
|
console.log('options.action === UpdateOptionActions.REMOVE', options.action === exports.UpdateOptionActions.REMOVE);
|
|
1221
1222
|
if (options.action === exports.UpdateOptionActions.MERGE)
|
|
1222
|
-
return
|
|
1223
|
+
return (_b = firebase__default["default"].firestore.FieldValue).arrayUnion.apply(_b, __spreadArray([], __read(options.value)));
|
|
1223
1224
|
if (options.action === exports.UpdateOptionActions.REMOVE)
|
|
1224
|
-
return
|
|
1225
|
+
return (_c = firebase__default["default"].firestore.FieldValue).arrayRemove.apply(_c, __spreadArray([], __read(options.value)));
|
|
1225
1226
|
}
|
|
1226
1227
|
return options.value;
|
|
1227
1228
|
};
|