@jsenv/snapshot 2.8.7 → 2.8.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/snapshot",
3
- "version": "2.8.7",
3
+ "version": "2.8.8",
4
4
  "description": "Snapshot testing",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -36,7 +36,7 @@
36
36
  "@jsenv/assert": "4.1.15",
37
37
  "@jsenv/ast": "6.2.15",
38
38
  "@jsenv/exception": "1.0.2",
39
- "@jsenv/filesystem": "4.9.10",
39
+ "@jsenv/filesystem": "4.10.0",
40
40
  "@jsenv/terminal-recorder": "1.4.4",
41
41
  "@jsenv/urls": "2.5.2",
42
42
  "@jsenv/utils": "2.1.2",
@@ -189,10 +189,10 @@ const replaceInObject = (object, { replace }) => {
189
189
  };
190
190
 
191
191
  const replaceHttpUrls = (source) => {
192
- source = source.replace(/(https?):\/\/localhost:\d+/, (match, protocol) => {
192
+ source = source.replace(/(https?):\/\/localhost:\d+/g, (match, protocol) => {
193
193
  return `${protocol}://localhost`;
194
194
  });
195
- source = source.replace(/(https?):\/\/\[::1\]:\d+/, (match, protocol) => {
195
+ source = source.replace(/(https?):\/\/\[::1\]:\d+/g, (match, protocol) => {
196
196
  return `${protocol}://[::1]`;
197
197
  });
198
198
  return source;