integreat 0.7.41 → 0.7.42
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/lib/actions/get.js +1 -7
- package/lib/integreat.js +1 -1
- package/package.json +1 -1
package/lib/actions/get.js
CHANGED
|
@@ -50,12 +50,6 @@ function filterResponseData(data, id) {
|
|
|
50
50
|
return data.filter((data) => ids.includes(data.id))
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
const removeData = ({ type, payload: { data, ...payload }, meta }) => ({
|
|
54
|
-
type,
|
|
55
|
-
payload,
|
|
56
|
-
meta,
|
|
57
|
-
})
|
|
58
|
-
|
|
59
53
|
/**
|
|
60
54
|
* Get several items from a service, based on the given action object.
|
|
61
55
|
* @param {Object} action - payload and ident from the action object
|
|
@@ -90,7 +84,7 @@ async function get(action, { getService } = {}) {
|
|
|
90
84
|
debug('GET: Fetch from service %s at %s', service.id, endpointDebug)
|
|
91
85
|
|
|
92
86
|
const { response } = await service.send(
|
|
93
|
-
appendToAction(
|
|
87
|
+
appendToAction(action, { id, onlyMappedValues })
|
|
94
88
|
)
|
|
95
89
|
|
|
96
90
|
return filterWithId
|
package/lib/integreat.js
CHANGED