@23blocks/angular 5.0.1 → 6.0.0

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
@@ -498,7 +498,7 @@ const transport = createHttpTransport({
498
498
  headers: () => {
499
499
  const token = localStorage.getItem('access_token');
500
500
  return {
501
- 'api-key': 'your-api-key',
501
+ 'x-api-key': 'your-api-key',
502
502
  ...(token ? { Authorization: `Bearer ${token}` } : {}),
503
503
  };
504
504
  },
package/dist/index.esm.js CHANGED
@@ -217,7 +217,7 @@ import { createUniversityBlock } from '@23blocks/block-university';
217
217
  credentials: config.authMode === 'cookie' ? 'include' : undefined,
218
218
  headers: ()=>{
219
219
  const headers = _({}, config.headers, {
220
- 'api-key': config.apiKey
220
+ 'x-api-key': config.apiKey
221
221
  });
222
222
  if (config.tenantId) {
223
223
  headers['tenant-id'] = config.tenantId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@23blocks/angular",
3
- "version": "5.0.1",
3
+ "version": "6.0.0",
4
4
  "description": "Angular bindings for 23blocks SDK - Injectable services with RxJS Observables",
5
5
  "license": "MIT",
6
6
  "author": "23blocks <hello@23blocks.com>",