zubbl-sdk 1.1.4 → 1.1.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/zubbl-sdk.cjs.js +3 -1
- package/dist/zubbl-sdk.esm.js +3 -1
- package/dist/zubbl-sdk.umd.js +3 -1
- package/package.json +1 -1
package/dist/zubbl-sdk.cjs.js
CHANGED
|
@@ -62,6 +62,7 @@ async function identifyUser({ email, name }) {
|
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* Get tiles for a user using their external_user_id.
|
|
65
|
+
* Sends all required headers for Worker + backend.
|
|
65
66
|
*/
|
|
66
67
|
async function getTiles({ external_user_id }) {
|
|
67
68
|
if (!config.apiKey || !config.tenantId || !config.appId) {
|
|
@@ -73,7 +74,8 @@ async function getTiles({ external_user_id }) {
|
|
|
73
74
|
const headers = {
|
|
74
75
|
Authorization: `Bearer ${config.apiKey}`,
|
|
75
76
|
"X-Tenant-Id": config.tenantId,
|
|
76
|
-
"X-App-Id": config.appId
|
|
77
|
+
"X-App-Id": config.appId,
|
|
78
|
+
"X-External-User-Id": external_user_id // <<<< CRITICAL for Worker
|
|
77
79
|
};
|
|
78
80
|
|
|
79
81
|
const response = await axios.get(
|
package/dist/zubbl-sdk.esm.js
CHANGED
|
@@ -60,6 +60,7 @@ async function identifyUser({ email, name }) {
|
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* Get tiles for a user using their external_user_id.
|
|
63
|
+
* Sends all required headers for Worker + backend.
|
|
63
64
|
*/
|
|
64
65
|
async function getTiles({ external_user_id }) {
|
|
65
66
|
if (!config.apiKey || !config.tenantId || !config.appId) {
|
|
@@ -71,7 +72,8 @@ async function getTiles({ external_user_id }) {
|
|
|
71
72
|
const headers = {
|
|
72
73
|
Authorization: `Bearer ${config.apiKey}`,
|
|
73
74
|
"X-Tenant-Id": config.tenantId,
|
|
74
|
-
"X-App-Id": config.appId
|
|
75
|
+
"X-App-Id": config.appId,
|
|
76
|
+
"X-External-User-Id": external_user_id // <<<< CRITICAL for Worker
|
|
75
77
|
};
|
|
76
78
|
|
|
77
79
|
const response = await axios.get(
|
package/dist/zubbl-sdk.umd.js
CHANGED
|
@@ -64,6 +64,7 @@
|
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* Get tiles for a user using their external_user_id.
|
|
67
|
+
* Sends all required headers for Worker + backend.
|
|
67
68
|
*/
|
|
68
69
|
async function getTiles({ external_user_id }) {
|
|
69
70
|
if (!config.apiKey || !config.tenantId || !config.appId) {
|
|
@@ -75,7 +76,8 @@
|
|
|
75
76
|
const headers = {
|
|
76
77
|
Authorization: `Bearer ${config.apiKey}`,
|
|
77
78
|
"X-Tenant-Id": config.tenantId,
|
|
78
|
-
"X-App-Id": config.appId
|
|
79
|
+
"X-App-Id": config.appId,
|
|
80
|
+
"X-External-User-Id": external_user_id // <<<< CRITICAL for Worker
|
|
79
81
|
};
|
|
80
82
|
|
|
81
83
|
const response = await axios.get(
|