@nectarcrm/ccx 0.5.3 → 0.5.4
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/bin/ccx.js +2 -1
- package/package.json +1 -1
package/bin/ccx.js
CHANGED
|
@@ -706,7 +706,8 @@ async function api(app, key, method, path, body, timeoutMs = 60_000) {
|
|
|
706
706
|
try {
|
|
707
707
|
res = await fetch(app.url + path, {
|
|
708
708
|
method,
|
|
709
|
-
|
|
709
|
+
// x-ccx-version: o painel mostra a versão de cada computador
|
|
710
|
+
headers: { 'content-type': 'application/json', 'x-ccx-version': myVersion(), ...(key ? { authorization: `Bearer ${key}` } : {}) },
|
|
710
711
|
body: body && JSON.stringify(body),
|
|
711
712
|
signal: AbortSignal.timeout(timeoutMs),
|
|
712
713
|
})
|