@n42/cli 0.3.12 → 0.3.13
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/assets/terminal.js +4 -3
- package/dist/n42 +1 -1
- package/package.json +1 -1
- package/src/assets/terminal.js +4 -3
package/package.json
CHANGED
package/src/assets/terminal.js
CHANGED
|
@@ -157,9 +157,10 @@ class Terminal {
|
|
|
157
157
|
if (!req || typeof req.url !== "string") throw new Error("Missing url");
|
|
158
158
|
|
|
159
159
|
const method = (req.method || "GET").toUpperCase();
|
|
160
|
-
const headers = {
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
const headers = {
|
|
161
|
+
...(req.headers || {}),
|
|
162
|
+
"X-Client-Source": "n42-cli"
|
|
163
|
+
};
|
|
163
164
|
|
|
164
165
|
// If body is object, default JSON
|
|
165
166
|
let body = req.body ?? null;
|