integreat 0.7.46 → 0.7.47

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/integreat.js CHANGED
@@ -5,7 +5,7 @@ const setupMapping = require('./mapping')
5
5
  const setupDispatch = require('./dispatch')
6
6
  const builtinActions = require('./actions')
7
7
 
8
- const version = '0.7.46'
8
+ const version = '0.7.47'
9
9
 
10
10
  /**
11
11
  * Return an Integreat instance with a dispatch method.
@@ -57,7 +57,7 @@ const receiveBeforeArgs = (
57
57
  mappings: endpoint.mappings,
58
58
  })
59
59
 
60
- const removeIdAndSetGid = ({ id, ...meta }) => ({ ...meta, gid: id })
60
+ const removeIds = ({ id, gid, cid, ...meta }) => meta
61
61
 
62
62
  const createNextAction = (action, { options }, mappedResponse) => ({
63
63
  type: options.actionType,
@@ -67,7 +67,7 @@ const createNextAction = (action, { options }, mappedResponse) => ({
67
67
  ...mappedResponse.params,
68
68
  ...(mappedResponse.data ? { data: mappedResponse.data } : {}),
69
69
  },
70
- meta: removeIdAndSetGid({ ...action.meta, ...options.actionMeta }),
70
+ meta: removeIds({ ...action.meta, ...options.actionMeta }),
71
71
  })
72
72
 
73
73
  const wrapResponse = (response) => ({ response })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "integreat",
3
- "version": "0.7.46",
3
+ "version": "0.7.47",
4
4
  "description": "Node.js integration layer",
5
5
  "author": "Kjell-Morten Bratsberg Thorsen <post@kjellmorten.no> (http://kjellmorten.no/)",
6
6
  "license": "ISC",