isomorfeus-preact 10.6.49 → 10.6.50
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.
- checksums.yaml +4 -4
- data/lib/isomorfeus/preact/imports.rb +5 -1
- data/lib/isomorfeus/preact_view_helper.rb +1 -3
- data/lib/preact/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c0fa7c66f356b385202783c17b48c36b7a2a1f0166d55e7a6677eda1d2c97cea
|
|
4
|
+
data.tar.gz: 815a7e94a14c9c819b02bee5a2ebd0da884de6ec014329afd794947431e4eea3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 25376a26dce8fc8e591102e67ab44db2e91afbbf7ab922dabba90e0a8e1aeb3e02fd49554efbfd12c6cf72930ea0d3bf24cb92090971b5430f2fde76c32f1edc
|
|
7
|
+
data.tar.gz: 90934bacbb7efbb70eb36bc9dba402f3436d1d70cc00a76ecf6969ce81d738c031dc059eb79f4706ad429a68a9a5ff1289225e37955d7988f278300578ae2678
|
|
@@ -13,7 +13,11 @@ module Isomorfeus
|
|
|
13
13
|
Isomorfeus.add_web_js_import('wouter-preact/use-location', 'locationHook')
|
|
14
14
|
|
|
15
15
|
if Dir.exist?(Isomorfeus.app_root)
|
|
16
|
-
|
|
16
|
+
if File.exist?(File.join(Isomorfeus.app_root, 'isomorfeus_loader.rb'))
|
|
17
|
+
Isomorfeus.add_common_ruby_import('isomorfeus_loader')
|
|
18
|
+
Isomorfeus.add_ssr_ruby_import('isomorfeus/top_level_ssr')
|
|
19
|
+
Isomorfeus.add_ssr_ruby_import('isomorfeus/ssr')
|
|
20
|
+
end
|
|
17
21
|
end
|
|
18
22
|
end
|
|
19
23
|
end
|
|
@@ -65,7 +65,7 @@ module Isomorfeus
|
|
|
65
65
|
end
|
|
66
66
|
|
|
67
67
|
if has_transport
|
|
68
|
-
sleep 0.001 # give node a chance connecting to ruby by allowing other threads to run
|
|
68
|
+
sleep 0.001 # give node a chance connecting to ruby by allowing other ruby threads to run
|
|
69
69
|
# wait for first pass to finish
|
|
70
70
|
first_pass_finished, need_further_pass, exception = ctx.eval_script(key: :first_pass_check)
|
|
71
71
|
Isomorfeus.raise_error(message: "Server Side Rendering: #{exception['message']}", stack: exception['stack']) if exception
|
|
@@ -172,8 +172,6 @@ module Isomorfeus
|
|
|
172
172
|
asset_manager.transition(asset_key, asset)
|
|
173
173
|
Isomorfeus.ssr_contexts[thread_id_asset] = ExecJS.permissive_compile(asset.bundle)
|
|
174
174
|
ctx = Isomorfeus.ssr_contexts[thread_id_asset]
|
|
175
|
-
ctx.exec(top_level_mod)
|
|
176
|
-
ctx.exec(ssr_mod)
|
|
177
175
|
ctx.add_script(key: :first_pass_check, source: 'Opal.Isomorfeus.SSR.first_pass_check()')
|
|
178
176
|
ctx.add_script(key: :first_pass_result, source: 'Opal.Isomorfeus.SSR.first_pass_result()')
|
|
179
177
|
ctx.add_script(key: :still_busy, source: 'Opal.Isomorfeus.SSR.still_busy()')
|
data/lib/preact/version.rb
CHANGED