@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.umd.js
CHANGED
|
@@ -13781,7 +13781,8 @@
|
|
|
13781
13781
|
const xhr = new XMLHttpRequest();
|
|
13782
13782
|
xhr.open('POST', url, true);
|
|
13783
13783
|
xhr.setRequestHeader('Content-Type', 'application/json');
|
|
13784
|
-
xhr.setRequestHeader('
|
|
13784
|
+
xhr.setRequestHeader('X-API-Key', this.config.apiKey);
|
|
13785
|
+
xhr.setRequestHeader('X-App-Id', this.config.appId);
|
|
13785
13786
|
xhr.onload = () => {
|
|
13786
13787
|
if (xhr.status >= 200 && xhr.status < 300) {
|
|
13787
13788
|
if (this.config.debug) {
|
|
@@ -13841,7 +13842,8 @@
|
|
|
13841
13842
|
method: 'POST',
|
|
13842
13843
|
headers: {
|
|
13843
13844
|
'Content-Type': 'application/json',
|
|
13844
|
-
|
|
13845
|
+
'X-API-Key': this.config.apiKey,
|
|
13846
|
+
'X-App-Id': this.config.appId,
|
|
13845
13847
|
},
|
|
13846
13848
|
body: JSON.stringify(payload),
|
|
13847
13849
|
// Use keepalive for better reliability during page unload
|