Commit ae3d73b
committed
fix(js-sandbox): improve scripting value handling and serialization
- Fix null/undefined environment variable handling across namespaces
- Fix pm.request console.log output to display properly
- Add pm.request.id and pm.request.name type definitions
- Fix assertion error messages to show actual values
- Strip `export {};` from collection exports and legacy sandbox editor display1 parent c0e3ff4 commit ae3d73b
File tree
8 files changed
+511
-12
lines changed- packages
- hoppscotch-common/src
- components/collections
- composables
- types
- hoppscotch-js-sandbox/src
- __tests__/combined
- bootstrap-code
- utils
8 files changed
+511
-12
lines changedLines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2831 | 2831 | | |
2832 | 2832 | | |
2833 | 2833 | | |
| 2834 | + | |
| 2835 | + | |
| 2836 | + | |
2834 | 2837 | | |
2835 | 2838 | | |
2836 | | - | |
| 2839 | + | |
2837 | 2840 | | |
2838 | 2841 | | |
2839 | 2842 | | |
| |||
2850 | 2853 | | |
2851 | 2854 | | |
2852 | 2855 | | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
2853 | 2862 | | |
2854 | | - | |
| 2863 | + | |
2855 | 2864 | | |
2856 | 2865 | | |
2857 | 2866 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
271 | 284 | | |
272 | 285 | | |
273 | 286 | | |
| |||
474 | 487 | | |
475 | 488 | | |
476 | 489 | | |
477 | | - | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
478 | 494 | | |
479 | 495 | | |
480 | 496 | | |
| |||
514 | 530 | | |
515 | 531 | | |
516 | 532 | | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
517 | 537 | | |
518 | 538 | | |
519 | 539 | | |
520 | 540 | | |
521 | 541 | | |
522 | 542 | | |
523 | | - | |
| 543 | + | |
524 | 544 | | |
525 | 545 | | |
526 | 546 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
| 655 | + | |
| 656 | + | |
655 | 657 | | |
656 | 658 | | |
657 | 659 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
| 109 | + | |
| 110 | + | |
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
| |||
0 commit comments