@basis-theory/basis-theory-js 1.15.0 → 1.16.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
@@ -35,7 +35,7 @@ const bt = await new BasisTheory().init('key_N88mVGsp3sCXkykyN2EFED'); // replac
35
35
 
36
36
  ### Per-request configuration
37
37
 
38
- All of the service methods accept an optional `RequestOptions` object. This is used if you want to set a correlation ID or if you want to set a per-request X-API-KEY
38
+ All of the service methods accept an optional `RequestOptions` object. This is used if you want to set a correlation ID or if you want to set a per-request `BT-API-KEY`
39
39
 
40
40
  ```javascript
41
41
  import { v4 as uuid } from 'uuid';
@@ -1,5 +1,5 @@
1
1
  import type { ClientsBasePathMap } from '../types';
2
- declare const API_KEY_HEADER = "X-API-KEY";
2
+ declare const API_KEY_HEADER = "BT-API-KEY";
3
3
  declare const BT_TRACE_ID_HEADER = "bt-trace-id";
4
4
  declare const DEFAULT_BASE_URL: string;
5
5
  declare const DEFAULT_ELEMENTS_BASE_URL: string;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DEFAULT_ELEMENTS_BASE_URL = exports.DEFAULT_BASE_URL = exports.CLIENT_BASE_PATHS = exports.BT_TRACE_ID_HEADER = exports.API_KEY_HEADER = void 0;
7
- const API_KEY_HEADER = 'X-API-KEY';
7
+ const API_KEY_HEADER = 'BT-API-KEY';
8
8
  exports.API_KEY_HEADER = API_KEY_HEADER;
9
9
  const BT_TRACE_ID_HEADER = 'bt-trace-id';
10
10
  exports.BT_TRACE_ID_HEADER = BT_TRACE_ID_HEADER;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basis-theory/basis-theory-js",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "repository": "https://github.com/Basis-Theory/basis-theory-js",
5
5
  "license": "Apache-2.0",
6
6
  "author": {