react-native-onyx 1.0.78 → 1.0.79

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.
@@ -88,10 +88,13 @@ const provider = {
88
88
  ON CONFLICT DO UPDATE
89
89
  SET valueJSON = JSON_PATCH(valueJSON, JSON(:value));
90
90
  `;
91
- const queryArguments = _.map(pairs, (pair) => {
91
+
92
+ const nonNullishPairs = _.filter(pairs, pair => !_.isUndefined(pair[1]));
93
+ const queryArguments = _.map(nonNullishPairs, (pair) => {
92
94
  const value = JSON.stringify(pair[1]);
93
95
  return [pair[0], value];
94
96
  });
97
+
95
98
  return db.executeBatchAsync([[query, queryArguments]]);
96
99
  },
97
100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-onyx",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "author": "Expensify, Inc.",
5
5
  "homepage": "https://expensify.com",
6
6
  "description": "State management for React Native",