@next-core/brick-kit 2.111.0 → 2.111.3

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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.111.3](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.111.2...@next-core/brick-kit@2.111.3) (2022-03-29)
7
+
8
+ **Note:** Version bump only for package @next-core/brick-kit
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.111.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.111.1...@next-core/brick-kit@2.111.2) (2022-03-28)
15
+
16
+ **Note:** Version bump only for package @next-core/brick-kit
17
+
18
+
19
+
20
+
21
+
22
+ ## [2.111.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.111.0...@next-core/brick-kit@2.111.1) (2022-03-24)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * support mocked location in storyboard functions ([260e775](https://github.com/easyops-cn/next-core/commit/260e77567a61c7f3199a174171de2eead4007d06))
28
+
29
+
30
+
31
+
32
+
6
33
  # [2.111.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.110.0...@next-core/brick-kit@2.111.0) (2022-03-24)
7
34
 
8
35
 
@@ -635,12 +635,6 @@
635
635
  case "PIPES":
636
636
  return pipes.pipes;
637
637
 
638
- case "location":
639
- return {
640
- href: location.href,
641
- origin: location.origin
642
- };
643
-
644
638
  case "TAG_URL":
645
639
  return tagUrlFactory(true);
646
640
 
@@ -1596,6 +1590,15 @@
1596
1590
 
1597
1591
  case "console":
1598
1592
  return isStoryboardFunction ? getReadOnlyProxy(console) : undefined;
1593
+
1594
+ case "location":
1595
+ return collectCoverage ? {
1596
+ href: "http://localhost:3000/functions/test",
1597
+ origin: "http://localhost:3000"
1598
+ } : {
1599
+ href: location.href,
1600
+ origin: location.origin
1601
+ };
1599
1602
  }
1600
1603
  }
1601
1604