@spotpatch/agent 1.2.1 → 1.2.2
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/README.md +31 -8
- package/dist/index.cjs +10 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1056,7 +1056,10 @@ function minimalProcessEnvironment() {
|
|
|
1056
1056
|
"LANG",
|
|
1057
1057
|
"LC_ALL"
|
|
1058
1058
|
];
|
|
1059
|
-
const environment = {
|
|
1059
|
+
const environment = {
|
|
1060
|
+
CI: "1",
|
|
1061
|
+
NO_COLOR: "1"
|
|
1062
|
+
};
|
|
1060
1063
|
for (const name of allowedNames) {
|
|
1061
1064
|
const value = process.env[name];
|
|
1062
1065
|
if (value !== void 0) {
|
|
@@ -2603,6 +2606,12 @@ function sliceText(value, maximum) {
|
|
|
2603
2606
|
function createBoundedTarget(target, maximumCharacters) {
|
|
2604
2607
|
const detailBudget = Math.max(192, maximumCharacters - 420);
|
|
2605
2608
|
const bounded = {
|
|
2609
|
+
...target.page === void 0 ? {} : {
|
|
2610
|
+
page: Object.freeze({
|
|
2611
|
+
...target.page,
|
|
2612
|
+
url: sanitizeUrl(target.page.url, "http://spotpatch.invalid")
|
|
2613
|
+
})
|
|
2614
|
+
},
|
|
2606
2615
|
source: target.source,
|
|
2607
2616
|
react: Object.freeze({
|
|
2608
2617
|
supported: target.react.supported,
|