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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac176b7d030eed4294beeb72b72652408b2270d22a0bb9a840b2e7e6e54a503e
4
- data.tar.gz: 02d28d07b2ea5051493bd26a986299ddc26bce85dfbef06a2693a2b5680065e9
3
+ metadata.gz: c0fa7c66f356b385202783c17b48c36b7a2a1f0166d55e7a6677eda1d2c97cea
4
+ data.tar.gz: 815a7e94a14c9c819b02bee5a2ebd0da884de6ec014329afd794947431e4eea3
5
5
  SHA512:
6
- metadata.gz: 7f88f2d320dd5e3cb866607e91de65ddeb565df8aab74162d72d0c8b239c95548db9612df2c62948011646677469707682ebdfa71fc7d9c53775d1cd0083f70f
7
- data.tar.gz: 691d9f6cd7e681cdbc402bcb16448f77c742ae0021bbb6f409d896042df6e3e3563d8c772bcbb6cac3ba82aa4f2bea88d8d6f0358dc8bd4dad29b03554317d1d
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
- Isomorfeus.add_common_ruby_import('isomorfeus_loader') if File.exist?(File.join(Isomorfeus.app_root, 'isomorfeus_loader.rb'))
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()')
@@ -1,3 +1,3 @@
1
1
  module Preact
2
- VERSION = '10.6.49'
2
+ VERSION = '10.6.50'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-preact
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.6.49
4
+ version: 10.6.50
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann