integreat 0.7.43 → 0.7.45

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/index.d.ts CHANGED
@@ -27,6 +27,10 @@ declare namespace integreat {
27
27
  export interface Meta {
28
28
  queue?: boolean | number
29
29
  ident?: Ident
30
+ project?: string
31
+ id?: string
32
+ cid?: string
33
+ gid?: string
30
34
  [key: string]: unknown
31
35
  }
32
36
 
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.43'
8
+ const version = '0.7.45'
9
9
 
10
10
  /**
11
11
  * Return an Integreat instance with a dispatch method.
@@ -11,7 +11,7 @@ function requestFromAction(
11
11
  { endpoint, schemas = {}, auth } = {}
12
12
  ) {
13
13
  const { data, ...params } = payload
14
- const { ident = null, id } = meta
14
+ const { ident = null, id, cid, gid } = meta
15
15
  const typePlural = getPluralType(params.type, schemas)
16
16
 
17
17
  return {
@@ -23,6 +23,8 @@ function requestFromAction(
23
23
  access: { ident },
24
24
  meta: {
25
25
  id,
26
+ cid,
27
+ gid,
26
28
  typePlural,
27
29
  },
28
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "integreat",
3
- "version": "0.7.43",
3
+ "version": "0.7.45",
4
4
  "description": "Node.js integration layer",
5
5
  "author": "Kjell-Morten Bratsberg Thorsen <post@kjellmorten.no> (http://kjellmorten.no/)",
6
6
  "license": "ISC",
@@ -51,7 +51,7 @@
51
51
  "later": "^1.2.0",
52
52
  "map-any": "^0.2.1",
53
53
  "map-transform": "^0.3.12",
54
- "nanoid": "^3.3.7",
54
+ "nanoid": "^3.3.8",
55
55
  "p-limit": "^2.3.0",
56
56
  "p-progress": "^0.5.1",
57
57
  "ramda": "^0.27.2",