@kodaris/krubble-app-components 1.0.138 → 1.0.139
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/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/krubble-app.bundled.js +6 -2
- package/dist/krubble-app.bundled.js.map +1 -1
- package/dist/krubble-app.bundled.min.js +1 -1
- package/dist/krubble-app.bundled.min.js.map +1 -1
- package/dist/krubble-app.umd.js +6 -2
- package/dist/krubble-app.umd.js.map +1 -1
- package/dist/krubble-app.umd.min.js +1 -1
- package/dist/krubble-app.umd.min.js.map +1 -1
- package/dist/router.d.ts +16 -0
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +6 -2
- package/dist/router.js.map +1 -1
- package/package.json +1 -1
package/dist/krubble-app.umd.js
CHANGED
|
@@ -12251,10 +12251,14 @@
|
|
|
12251
12251
|
const constructor = customElements.get(match.route.component);
|
|
12252
12252
|
if (constructor && typeof constructor.resolve === 'function') {
|
|
12253
12253
|
return Promise.resolve(constructor.resolve(KRRouter.getParams())).then(data => {
|
|
12254
|
-
|
|
12254
|
+
// Frozen so a component can't quietly swap params/data at runtime either — the readonly
|
|
12255
|
+
// modifiers on KRRouteSnapshot only hold at compile time. Shallow: `data`'s own contents are
|
|
12256
|
+
// still mutable, since components legitimately read structures out of it.
|
|
12257
|
+
const routeSnapshot = Object.freeze({
|
|
12255
12258
|
params: match.params,
|
|
12256
12259
|
data,
|
|
12257
|
-
};
|
|
12260
|
+
});
|
|
12261
|
+
el.routeSnapshot = routeSnapshot;
|
|
12258
12262
|
return el;
|
|
12259
12263
|
});
|
|
12260
12264
|
}
|