@next-core/brick-kit 2.127.3 → 2.128.0

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,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.128.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.127.3...@next-core/brick-kit@2.128.0) (2022-08-18)
7
+
8
+
9
+ ### Features
10
+
11
+ * **brick-kit:** support location.host and location.hostname ([0548c9f](https://github.com/easyops-cn/next-core/commit/0548c9fab28e58e4194bfedea44c92a39f0c27e2))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.127.3](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.127.2...@next-core/brick-kit@2.127.3) (2022-08-17)
7
18
 
8
19
 
@@ -1635,10 +1635,14 @@
1635
1635
  case "location":
1636
1636
  return collectCoverage ? {
1637
1637
  href: "http://localhost:3000/functions/test",
1638
- origin: "http://localhost:3000"
1638
+ origin: "http://localhost:3000",
1639
+ host: "localhost:3000",
1640
+ hostname: "localhost"
1639
1641
  } : {
1640
1642
  href: location.href,
1641
- origin: location.origin
1643
+ origin: location.origin,
1644
+ host: location.host,
1645
+ hostname: location.hostname
1642
1646
  };
1643
1647
  }
1644
1648
  }