@jasolar/tracker-sdk 1.0.4 → 1.0.5
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/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -212,7 +212,7 @@ function send(url, data) {
|
|
|
212
212
|
var beaconUrl = url;
|
|
213
213
|
if (token) {
|
|
214
214
|
var separator = url.includes('?') ? '&' : '?';
|
|
215
|
-
beaconUrl = "".concat(url).concat(separator, "
|
|
215
|
+
beaconUrl = "".concat(url).concat(separator, "Authorization=").concat(encodeURIComponent('Bearer ' + token));
|
|
216
216
|
}
|
|
217
217
|
var blob = new Blob([body], {
|
|
218
218
|
type: 'application/json'
|
|
@@ -243,7 +243,7 @@ function send(url, data) {
|
|
|
243
243
|
var _beaconUrl = url;
|
|
244
244
|
if (token) {
|
|
245
245
|
var _separator = url.includes('?') ? '&' : '?';
|
|
246
|
-
_beaconUrl = "".concat(url).concat(_separator, "
|
|
246
|
+
_beaconUrl = "".concat(url).concat(_separator, "Authorization=").concat(encodeURIComponent('Bearer ' + token));
|
|
247
247
|
}
|
|
248
248
|
var _blob = new Blob([body], {
|
|
249
249
|
type: 'application/json'
|
package/dist/index.esm.js
CHANGED
|
@@ -210,7 +210,7 @@ function send(url, data) {
|
|
|
210
210
|
var beaconUrl = url;
|
|
211
211
|
if (token) {
|
|
212
212
|
var separator = url.includes('?') ? '&' : '?';
|
|
213
|
-
beaconUrl = "".concat(url).concat(separator, "
|
|
213
|
+
beaconUrl = "".concat(url).concat(separator, "Authorization=").concat(encodeURIComponent('Bearer ' + token));
|
|
214
214
|
}
|
|
215
215
|
var blob = new Blob([body], {
|
|
216
216
|
type: 'application/json'
|
|
@@ -241,7 +241,7 @@ function send(url, data) {
|
|
|
241
241
|
var _beaconUrl = url;
|
|
242
242
|
if (token) {
|
|
243
243
|
var _separator = url.includes('?') ? '&' : '?';
|
|
244
|
-
_beaconUrl = "".concat(url).concat(_separator, "
|
|
244
|
+
_beaconUrl = "".concat(url).concat(_separator, "Authorization=").concat(encodeURIComponent('Bearer ' + token));
|
|
245
245
|
}
|
|
246
246
|
var _blob = new Blob([body], {
|
|
247
247
|
type: 'application/json'
|