@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.esm.js
CHANGED
|
@@ -13775,7 +13775,8 @@ class Transport {
|
|
|
13775
13775
|
const xhr = new XMLHttpRequest();
|
|
13776
13776
|
xhr.open('POST', url, true);
|
|
13777
13777
|
xhr.setRequestHeader('Content-Type', 'application/json');
|
|
13778
|
-
xhr.setRequestHeader('
|
|
13778
|
+
xhr.setRequestHeader('X-API-Key', this.config.apiKey);
|
|
13779
|
+
xhr.setRequestHeader('X-App-Id', this.config.appId);
|
|
13779
13780
|
xhr.onload = () => {
|
|
13780
13781
|
if (xhr.status >= 200 && xhr.status < 300) {
|
|
13781
13782
|
if (this.config.debug) {
|
|
@@ -13835,7 +13836,8 @@ class Transport {
|
|
|
13835
13836
|
method: 'POST',
|
|
13836
13837
|
headers: {
|
|
13837
13838
|
'Content-Type': 'application/json',
|
|
13838
|
-
|
|
13839
|
+
'X-API-Key': this.config.apiKey,
|
|
13840
|
+
'X-App-Id': this.config.appId,
|
|
13839
13841
|
},
|
|
13840
13842
|
body: JSON.stringify(payload),
|
|
13841
13843
|
// Use keepalive for better reliability during page unload
|