ripple 0.2.151 → 0.2.152
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/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Ripple is an elegant TypeScript UI framework",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Dominic Gannaway",
|
|
6
|
-
"version": "0.2.
|
|
6
|
+
"version": "0.2.152",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"module": "src/runtime/index-client.js",
|
|
9
9
|
"main": "src/runtime/index-client.js",
|
|
@@ -81,6 +81,6 @@
|
|
|
81
81
|
"typescript": "^5.9.2"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"ripple": "0.2.
|
|
84
|
+
"ripple": "0.2.152"
|
|
85
85
|
}
|
|
86
86
|
}
|
|
@@ -145,10 +145,13 @@ export function run_teardown(block) {
|
|
|
145
145
|
*/
|
|
146
146
|
export function with_block(block, fn) {
|
|
147
147
|
var prev_block = active_block;
|
|
148
|
+
var previous_component = active_component;
|
|
148
149
|
active_block = block;
|
|
150
|
+
active_component = block.co;
|
|
149
151
|
try {
|
|
150
152
|
return fn();
|
|
151
153
|
} finally {
|
|
154
|
+
active_component = previous_component;
|
|
152
155
|
active_block = prev_block;
|
|
153
156
|
}
|
|
154
157
|
}
|