isomorfeus-preact 10.6.39 → 10.6.43

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b4f34a628322571ed50c6923c8b129c750ce09b90953a9e4512f609e4424efa
4
- data.tar.gz: b9e99d2865e4c14e451b22b0c3f993b3500c724a26e4c5fb66f3213385c15ac1
3
+ metadata.gz: 6f1d8efb23afe0ce1b5f8b40c8d65a7bacd835b1cc43e3cd7edb98895c1afa53
4
+ data.tar.gz: fb60ce2b755c96fdebb0bb3c8c044fac84a265e1a1d1cfda2ae13da2aa1a8a7e
5
5
  SHA512:
6
- metadata.gz: d00ca6d3d6f0a21954627f9c0204617abf73729b1c7f1b89976e4273d9f8080a7a532d8dfdd53d6248c91593910698ed2c695630373c21a42229592282fa6f73
7
- data.tar.gz: 3d653b10253888d69175a077959a8d45f9672a8e5f540e3f97e53efebebe2b5b829ea6436fdd598962e229b69862b868bc493c74cb092e7ed50fd188b79e20a1
6
+ metadata.gz: 829aefa51447b9b574a3b0aec0ca0a3d228221b8ba778e042e0c254580b7026513426a09d5e47b6e52bafb1894ed6d0cdc2a575e3ec362063612a05d3ff3ae23
7
+ data.tar.gz: 434e1e4abd520a32a24e71b0df7822fbdc53b57417266494b4417056aa49fd3a4c799acd9c2aee349fe7ffb553a35ad808906149c20b89d4108ff1369b282459
@@ -92,7 +92,7 @@ module Isomorfeus
92
92
  else
93
93
  start_time = Time.now
94
94
  script_key = if has_transport && has_store
95
- :sill_busy
95
+ :still_busy
96
96
  elsif has_transport
97
97
  :transport_busy
98
98
  elsif has_store
@@ -179,8 +179,8 @@ module Isomorfeus
179
179
  ctx.exec(ssr_mod)
180
180
  ctx.add_script(key: :first_pass_check, source: '[global.FirstPassFinished, global.NeedFurtherPass, global.Exception ? { message: global.Exception.message, stack: global.Exception.stack } : false ]')
181
181
  ctx.add_script(key: :first_pass_result, source: 'Opal.Isomorfeus.SSR.first_pass_result()')
182
- ctx.add_script(key: :still_busy, source: 'let nfp = global.Opal.Isomorfeus.Transport["$busy?"]() || global.Opal.Isomorfeus.store["$recently_dispatched?"](); (nfp == nil) ? false : nfp;')
183
- ctx.add_script(key: :store_busy, source: 'let nfp = global.Opal.Isomorfeus.store["$recently_dispatched?"](); (nfp == nil) ? false : nfp;')
182
+ ctx.add_script(key: :still_busy, source: 'Opal.Isomorfeus.SSR.still_busy()')
183
+ ctx.add_script(key: :store_busy, source: 'Opal.Isomorfeus.SSR.store_busy()')
184
184
  ctx.add_script(key: :transport_busy, source: 'global.Opal.Isomorfeus.Transport["$busy?"]()')
185
185
  ctx.add_script(key: :transport_disconnect, source: 'global.Opal.Isomorfeus.Transport.$disconnect()')
186
186
  end
@@ -24,7 +24,7 @@ module Isomorfeus
24
24
  global.RenderedTree = global.Opal.Isomorfeus.TopLevel.$render_component_to_string(component_name, props);
25
25
  let nfp = global.Opal.Isomorfeus.Transport["$busy?"]() || global.Opal.Isomorfeus.store['$recently_dispatched?']();
26
26
  global.NeedFurtherPass = (nfp == nil) ? false : nfp;
27
- global.FirstPassFinished = false;
27
+ global.FirstPassFinished = true;
28
28
  } catch (e) {
29
29
  global.Exception = e;
30
30
  global.NeedFurtherPass = false;
@@ -70,6 +70,16 @@ module Isomorfeus
70
70
  global.NeedFurtherPass = (nfp == nil) ? false : nfp;
71
71
  return [rendered_tree, application_state, ssr_styles, global.Opal.Isomorfeus['$ssr_response_status'](), global.NeedFurtherPass, global.Exception ? { message: global.Exception.message, stack: global.Exception.stack } : false];
72
72
  }
73
+
74
+ self.still_busy = function(){
75
+ let nfp = global.Opal.Isomorfeus.Transport["$busy?"]() || global.Opal.Isomorfeus.store["$recently_dispatched?"]();
76
+ return (nfp == global.Opal.nil) ? false : nfp;
77
+ }
78
+
79
+ self.store_busy = function() {
80
+ let nfp = global.Opal.Isomorfeus.store["$recently_dispatched?"]();
81
+ return (nfp == global.Opal.nil) ? false : nfp;
82
+ }
73
83
  }
74
84
  end
75
85
  end
@@ -1,3 +1,3 @@
1
1
  module Preact
2
- VERSION = '10.6.39'
2
+ VERSION = '10.6.43'
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.39
4
+ version: 10.6.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.14.15
89
+ version: 0.14.17
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.14.15
96
+ version: 0.14.17
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: isomorfeus-redux
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -198,14 +198,14 @@ dependencies:
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: '3.10'
201
+ version: '3.11'
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: '3.10'
208
+ version: '3.11'
209
209
  description: Write Preact Components in Ruby, including styles and reactive data access.
210
210
  email:
211
211
  - jan@kursator.com
@@ -476,7 +476,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
476
476
  - !ruby/object:Gem::Version
477
477
  version: '0'
478
478
  requirements: []
479
- rubygems_version: 3.3.3
479
+ rubygems_version: 3.3.7
480
480
  signing_key:
481
481
  specification_version: 4
482
482
  summary: Preact Components for Isomorfeus.