@next-core/brick-kit 2.104.7 → 2.105.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 +11 -0
- package/dist/index.bundle.js +5 -0
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +5 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/LocationContext.d.ts.map +1 -1
- package/dist/types/internal/evaluate.d.ts.map +1 -1
- package/package.json +6 -6
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.105.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.104.7...@next-core/brick-kit@2.105.0) (2022-02-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* 新增`PATH_NAME`常量 ([094fe48](https://github.com/easyops-cn/next-core/commit/094fe4877581b7594ea297a3da5c4ae047d9cc4d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.104.7](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.104.6...@next-core/brick-kit@2.104.7) (2022-02-17)
|
|
7
18
|
|
|
8
19
|
|
package/dist/index.bundle.js
CHANGED
|
@@ -2292,6 +2292,7 @@
|
|
|
2292
2292
|
sys,
|
|
2293
2293
|
flags,
|
|
2294
2294
|
hash,
|
|
2295
|
+
pathname,
|
|
2295
2296
|
segues,
|
|
2296
2297
|
storyboardContext
|
|
2297
2298
|
} = _internalApiGetCurrentContext();
|
|
@@ -2332,6 +2333,9 @@
|
|
|
2332
2333
|
case "HASH":
|
|
2333
2334
|
return hash;
|
|
2334
2335
|
|
|
2336
|
+
case "PATH_NAME":
|
|
2337
|
+
return pathname;
|
|
2338
|
+
|
|
2335
2339
|
case "INSTALLED_APPS":
|
|
2336
2340
|
return {
|
|
2337
2341
|
has: (appId, matchVersion) => getRuntime().hasInstalledApp(appId, matchVersion)
|
|
@@ -8507,6 +8511,7 @@
|
|
|
8507
8511
|
var auth = getAuth();
|
|
8508
8512
|
var context = {
|
|
8509
8513
|
hash: this.location.hash,
|
|
8514
|
+
pathname: this.location.pathname,
|
|
8510
8515
|
query: this.query,
|
|
8511
8516
|
match,
|
|
8512
8517
|
app: this.kernel.nextApp,
|