@23blocks/sdk 5.0.1 → 6.0.1

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
@@ -406,7 +406,7 @@ const transport = createHttpTransport({
406
406
  headers: () => {
407
407
  const token = localStorage.getItem('access_token');
408
408
  return {
409
- 'api-key': 'your-api-key',
409
+ 'x-api-key': 'your-api-key',
410
410
  ...(token ? { Authorization: `Bearer ${token}` } : {}),
411
411
  };
412
412
  },
package/dist/index.esm.js CHANGED
@@ -253,7 +253,7 @@ export * from '@23blocks/jsonapi-codec';
253
253
  credentials: authMode === 'cookie' ? 'include' : undefined,
254
254
  headers: ()=>{
255
255
  const headers = _({}, staticHeaders, {
256
- 'api-key': apiKey
256
+ 'x-api-key': apiKey
257
257
  });
258
258
  if (tenantId) {
259
259
  headers['tenant-id'] = tenantId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@23blocks/sdk",
3
- "version": "5.0.1",
3
+ "version": "6.0.1",
4
4
  "description": "23blocks SDK - unified meta-package re-exporting all blocks and utilities",
5
5
  "license": "MIT",
6
6
  "author": "23blocks <hello@23blocks.com>",