@devskin/browser-sdk 1.0.45 → 1.0.47
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/dist/devskin.cjs.js +4 -2
- package/dist/devskin.cjs.js.map +1 -1
- package/dist/devskin.esm.js +4 -2
- package/dist/devskin.esm.js.map +1 -1
- package/dist/devskin.umd.js +4 -2
- package/dist/devskin.umd.js.map +1 -1
- package/dist/devskin.umd.min.js +4 -4
- package/dist/devskin.umd.min.js.map +1 -1
- package/dist/transport.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/devskin.cjs.js
CHANGED
|
@@ -13779,7 +13779,8 @@ class Transport {
|
|
|
13779
13779
|
const xhr = new XMLHttpRequest();
|
|
13780
13780
|
xhr.open('POST', url, true);
|
|
13781
13781
|
xhr.setRequestHeader('Content-Type', 'application/json');
|
|
13782
|
-
xhr.setRequestHeader('
|
|
13782
|
+
xhr.setRequestHeader('X-API-Key', this.config.apiKey);
|
|
13783
|
+
xhr.setRequestHeader('X-App-Id', this.config.appId);
|
|
13783
13784
|
xhr.onload = () => {
|
|
13784
13785
|
if (xhr.status >= 200 && xhr.status < 300) {
|
|
13785
13786
|
if (this.config.debug) {
|
|
@@ -13839,7 +13840,8 @@ class Transport {
|
|
|
13839
13840
|
method: 'POST',
|
|
13840
13841
|
headers: {
|
|
13841
13842
|
'Content-Type': 'application/json',
|
|
13842
|
-
|
|
13843
|
+
'X-API-Key': this.config.apiKey,
|
|
13844
|
+
'X-App-Id': this.config.appId,
|
|
13843
13845
|
},
|
|
13844
13846
|
body: JSON.stringify(payload),
|
|
13845
13847
|
// Use keepalive for better reliability during page unload
|