@next-core/brick-kit 2.111.0 → 2.111.1
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 +11 -0
- package/dist/index.bundle.js +9 -6
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +9 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.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)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* support mocked location in storyboard functions ([260e775](https://github.com/easyops-cn/next-core/commit/260e77567a61c7f3199a174171de2eead4007d06))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [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
18
|
|
|
8
19
|
|
package/dist/index.bundle.js
CHANGED
|
@@ -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
|
|