@modern-js/runtime 2.63.4 → 2.63.6
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.
|
@@ -176,7 +176,10 @@ const useRuntimeContext = () => {
|
|
|
176
176
|
isBrowser: context.isBrowser,
|
|
177
177
|
request: baseSSRContext.request || {},
|
|
178
178
|
response: baseSSRContext.response || {},
|
|
179
|
-
logger: baseSSRContext.logger || {}
|
|
179
|
+
logger: baseSSRContext.logger || {},
|
|
180
|
+
getInitData: () => {
|
|
181
|
+
return Object.freeze(context.initialData);
|
|
182
|
+
}
|
|
180
183
|
} : {};
|
|
181
184
|
const pickedContext = {
|
|
182
185
|
...context,
|
|
@@ -198,7 +198,10 @@ var useRuntimeContext = function() {
|
|
|
198
198
|
isBrowser: context.isBrowser,
|
|
199
199
|
request: baseSSRContext.request || {},
|
|
200
200
|
response: baseSSRContext.response || {},
|
|
201
|
-
logger: baseSSRContext.logger || {}
|
|
201
|
+
logger: baseSSRContext.logger || {},
|
|
202
|
+
getInitData: function() {
|
|
203
|
+
return Object.freeze(context.initialData);
|
|
204
|
+
}
|
|
202
205
|
} : {};
|
|
203
206
|
var pickedContext = _object_spread_props(_object_spread({}, context), {
|
|
204
207
|
context: tSSRContext,
|
|
@@ -141,7 +141,10 @@ const useRuntimeContext = () => {
|
|
|
141
141
|
isBrowser: context.isBrowser,
|
|
142
142
|
request: baseSSRContext.request || {},
|
|
143
143
|
response: baseSSRContext.response || {},
|
|
144
|
-
logger: baseSSRContext.logger || {}
|
|
144
|
+
logger: baseSSRContext.logger || {},
|
|
145
|
+
getInitData: () => {
|
|
146
|
+
return Object.freeze(context.initialData);
|
|
147
|
+
}
|
|
145
148
|
} : {};
|
|
146
149
|
const pickedContext = {
|
|
147
150
|
...context,
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.63.
|
|
18
|
+
"version": "2.63.6",
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=14.17.6"
|
|
21
21
|
},
|
|
@@ -200,12 +200,12 @@
|
|
|
200
200
|
"react-is": "^18",
|
|
201
201
|
"react-side-effect": "^2.1.1",
|
|
202
202
|
"styled-components": "^5.3.1",
|
|
203
|
-
"@modern-js/plugin": "2.63.
|
|
204
|
-
"@modern-js/plugin-v2": "2.63.
|
|
205
|
-
"@modern-js/plugin-data-loader": "2.63.
|
|
206
|
-
"@modern-js/runtime-utils": "2.63.
|
|
207
|
-
"@modern-js/types": "2.63.
|
|
208
|
-
"@modern-js/utils": "2.63.
|
|
203
|
+
"@modern-js/plugin": "2.63.6",
|
|
204
|
+
"@modern-js/plugin-v2": "2.63.6",
|
|
205
|
+
"@modern-js/plugin-data-loader": "2.63.6",
|
|
206
|
+
"@modern-js/runtime-utils": "2.63.6",
|
|
207
|
+
"@modern-js/types": "2.63.6",
|
|
208
|
+
"@modern-js/utils": "2.63.6"
|
|
209
209
|
},
|
|
210
210
|
"peerDependencies": {
|
|
211
211
|
"react": ">=17",
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
},
|
|
214
214
|
"devDependencies": {
|
|
215
215
|
"@remix-run/web-fetch": "^4.1.3",
|
|
216
|
-
"@rsbuild/core": "1.1.
|
|
216
|
+
"@rsbuild/core": "1.1.13",
|
|
217
217
|
"@testing-library/react": "^13.4.0",
|
|
218
218
|
"@types/cookie": "0.6.0",
|
|
219
219
|
"@types/invariant": "^2.2.30",
|
|
@@ -229,9 +229,9 @@
|
|
|
229
229
|
"ts-node": "^10.9.1",
|
|
230
230
|
"typescript": "^5",
|
|
231
231
|
"webpack": "^5.97.1",
|
|
232
|
-
"@
|
|
233
|
-
"@
|
|
234
|
-
"@scripts/jest-config": "2.63.
|
|
232
|
+
"@scripts/build": "2.63.6",
|
|
233
|
+
"@modern-js/app-tools": "2.63.6",
|
|
234
|
+
"@scripts/jest-config": "2.63.6"
|
|
235
235
|
},
|
|
236
236
|
"sideEffects": false,
|
|
237
237
|
"publishConfig": {
|