@ultrst-armada/kloks 1.26.4 → 1.26.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultrst-armada/kloks",
3
- "version": "1.26.4",
3
+ "version": "1.26.5",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -2147,7 +2147,14 @@ async function fetchCloudflareData(payload, rawUserId, env) {
2147
2147
  } catch (err) {
2148
2148
  try {
2149
2149
  const srklUrl = await getPrimarySrklDeploymentUrl2(env);
2150
- const srklRes = await fetch(`${srklUrl}/api/resources?serviceId=cloudflare&token=${encodeURIComponent(token)}&cfAccountId=${encodeURIComponent(accountTag)}`, { signal: AbortSignal.timeout(6e3) });
2150
+ const srklRes = await fetch(`${srklUrl}/api/resources`, {
2151
+ headers: {
2152
+ "x-service-id": "cloudflare",
2153
+ authorization: `Bearer ${token}`,
2154
+ "x-cf-account-id": accountTag
2155
+ },
2156
+ signal: AbortSignal.timeout(6e3)
2157
+ });
2151
2158
  if (srklRes.ok) {
2152
2159
  const sData = await srklRes.json();
2153
2160
  if (sData.success && Array.isArray(sData.resources)) {