@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 +1 -1
- package/common/constants.d.ts +1 -1
- package/common/constants.js +1 -1
- package/package.json +1 -1
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
|
|
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';
|
package/common/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ClientsBasePathMap } from '../types';
|
|
2
|
-
declare const API_KEY_HEADER = "
|
|
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;
|
package/common/constants.js
CHANGED
|
@@ -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 = '
|
|
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;
|