@shuvi/platform-shared 2.0.0-dev.37 → 2.0.0-dev.39
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.
|
@@ -22,5 +22,8 @@ export function getAppData() {
|
|
|
22
22
|
runtimeConfig: {}
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
// The server writes #__APP_DATA once and it does not change for the life of the page, while
|
|
26
|
+
// getPageData / getPublicPath / getFilesOfRoute ask for it many times per load, so parse it once.
|
|
27
|
+
appData = JSON.parse(el.textContent);
|
|
28
|
+
return appData;
|
|
26
29
|
}
|
|
@@ -25,5 +25,8 @@ function getAppData() {
|
|
|
25
25
|
runtimeConfig: {}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
// The server writes #__APP_DATA once and it does not change for the life of the page, while
|
|
29
|
+
// getPageData / getPublicPath / getFilesOfRoute ask for it many times per load, so parse it once.
|
|
30
|
+
appData = JSON.parse(el.textContent);
|
|
31
|
+
return appData;
|
|
29
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shuvi/platform-shared",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.39",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/shuvijs/shuvi.git",
|
|
@@ -83,19 +83,19 @@
|
|
|
83
83
|
"node": ">= 16.0.0"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@shuvi/hook": "2.0.0-dev.
|
|
86
|
+
"@shuvi/hook": "2.0.0-dev.39",
|
|
87
87
|
"doura": "0.0.13",
|
|
88
|
-
"@shuvi/router": "2.0.0-dev.
|
|
89
|
-
"@shuvi/runtime": "2.0.0-dev.
|
|
90
|
-
"@shuvi/shared": "2.0.0-dev.
|
|
91
|
-
"@shuvi/toolpack": "2.0.0-dev.
|
|
92
|
-
"@shuvi/utils": "2.0.0-dev.
|
|
88
|
+
"@shuvi/router": "2.0.0-dev.39",
|
|
89
|
+
"@shuvi/runtime": "2.0.0-dev.39",
|
|
90
|
+
"@shuvi/shared": "2.0.0-dev.39",
|
|
91
|
+
"@shuvi/toolpack": "2.0.0-dev.39",
|
|
92
|
+
"@shuvi/utils": "2.0.0-dev.39"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"@shuvi/service": "2.0.0-dev.
|
|
95
|
+
"@shuvi/service": "2.0.0-dev.39"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@shuvi/service": "2.0.0-dev.
|
|
98
|
+
"@shuvi/service": "2.0.0-dev.39",
|
|
99
99
|
"@types/minimatch": "3.0.5"
|
|
100
100
|
}
|
|
101
101
|
}
|