@appsemble/utils 0.23.6 → 0.23.7

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/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.23.6/config/assets/logo.svg) Appsemble Utilities
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.23.7/config/assets/logo.svg) Appsemble Utilities
2
2
 
3
3
  > Internal utility functions used across multiple Appsemble projects.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/utils)](https://www.npmjs.com/package/@appsemble/utils)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.23.6/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.23.6)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.23.7/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.23.7)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
8
8
 
9
9
  ## Table of Contents
@@ -26,5 +26,5 @@ not guaranteed.
26
26
 
27
27
  ## License
28
28
 
29
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.23.6/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.23.7/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
@@ -15,7 +15,7 @@ function proxy(method, body) {
15
15
  description: 'The data that was passed to the action',
16
16
  required: true,
17
17
  content: {
18
- 'application/json': {},
18
+ '*/*': {},
19
19
  },
20
20
  };
21
21
  }
@@ -2,9 +2,9 @@ export function formatRequestAction({ method = 'GET', query, ...action }, data,
2
2
  return {
3
3
  method,
4
4
  url: String(remap(action.url, data, context)),
5
- headers: {},
6
5
  params: remap(query, data, context),
7
6
  responseType: 'arraybuffer',
7
+ headers: {},
8
8
  };
9
9
  }
10
10
  //# sourceMappingURL=formatRequestAction.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/utils",
3
- "version": "0.23.6",
3
+ "version": "0.23.7",
4
4
  "description": "Utility functions used in Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
@@ -37,7 +37,7 @@
37
37
  "test": "vitest"
38
38
  },
39
39
  "dependencies": {
40
- "@appsemble/types": "0.23.6",
40
+ "@appsemble/types": "0.23.7",
41
41
  "axios": "^1.0.0",
42
42
  "cron-parser": "^4.0.0",
43
43
  "date-fns": "^2.0.0",
@@ -333,7 +333,7 @@ parameters:
333
333
  `,
334
334
  },
335
335
  user: {
336
- enum: ['sub', 'name', 'email', 'email_verified', 'picture', 'profile', 'locale'],
336
+ enum: ['sub', 'name', 'email', 'email_verified', 'picture', 'profile', 'locale', 'properties'],
337
337
  description: `
338
338
  > **Note:** For this remapper to work, the user that activated the remapper has to be logged in to
339
339
  > the app
@@ -347,6 +347,7 @@ Provides some fields of user information taken from the OpenID user info. These
347
347
  - \`name\`: The user’s name
348
348
  - \`picture\`: Full URL to the user’s profile picture web address
349
349
  - \`sub\`: The user’s identifier
350
+ - \`properties\`: Custom properties defined on the user
350
351
 
351
352
  Example:
352
353
 
@@ -357,7 +358,8 @@ Example:
357
358
  "locale": "en",
358
359
  "name": "Test User",
359
360
  "picture": "https://www.gravatar.com/avatar/f46b82357ce29bcd1099915946cda468?s=128&d=mp",
360
- "sub": "5c6270e2-ad31-414f-bcab-6752a2c4dcfd"
361
+ "sub": "5c6270e2-ad31-414f-bcab-6752a2c4dcfd",
362
+ "properties": {}
361
363
  }
362
364
  \`\`\`
363
365
  `,