@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/dist/index.js CHANGED
@@ -1056,7 +1056,10 @@ function minimalProcessEnvironment() {
1056
1056
  "LANG",
1057
1057
  "LC_ALL"
1058
1058
  ];
1059
- const environment = { CI: "1", NO_COLOR: "1" };
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,