klenod-runtime 0.0.16 → 0.0.18

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: 7be4383d30dd607c8bfcbfb394d880fb2f6c568dd592c0ae30a783dc2f14c08f
4
- data.tar.gz: 19e5ac86ab5f9415177a62413fd4ddb8794cde02bd51fef86ff17821d294c732
3
+ metadata.gz: 2401f08a816ea5039c39ae835d58197e693087dd1e0fe25765745ce1e1c1dd44
4
+ data.tar.gz: 4201f3537e1cf42a5a679f06e2e18e0c3bcd755df208e40d5e915f1036dd83f1
5
5
  SHA512:
6
- metadata.gz: 85d20e8c7a915e892473b2cd27cd514668c9b5910b7b91fd8a97b8dd282bef1de888a4a722019681f1aa59e1630a36aed4bb6e6178d8acc82af686afe814c94b
7
- data.tar.gz: 2af6aba8cbc32b4403ce550357e03421aacd5c23b206432bb0a245e4b2a562477ca8e694cb4e551085376b4be33c3b723f5b8ddcc2d8ea18ffde1586a0826a40
6
+ metadata.gz: 7e85bba1bc825aaf638affb457272700141c4c511fda51b32de28d3b071e114c6ead40d0b51ae9b0d07a7eafe1ad00c8d1e39bd6202f0d3b9507829ea3b5eb4c
7
+ data.tar.gz: 8ff84d224278b8df150bfbd837525c9ffcec0e9abfb3b225a6ef9c0ce480b197de3b9cd285485d8d1a26873f1ac505fca5107af4e59d396176954266b2524443
@@ -269,7 +269,9 @@ module Klenod
269
269
  @modules
270
270
  .fetch(module_id)
271
271
  .imports
272
- .values
272
+ .partition { |import_id, _import| import_id.to_s.end_with?(":companion_style") }
273
+ .then { |companion_styles, regular_imports| [regular_imports, companion_styles] }
274
+ .flat_map { |imports| imports.map { |_import_id, import_spec| import_spec } }
273
275
  .map { |import_spec| import_spec.is_a?(ImportSpec) ? import_spec.target_id : import_spec }
274
276
 
275
277
  if File.extname(module_id) == ".css"
@@ -333,7 +335,7 @@ module Klenod
333
335
 
334
336
  case import_spec.value
335
337
  when DefaultImport
336
- exports.const_get(import_spec.value.name)
338
+ exports.const_get(import_spec.value.name, false)
337
339
  else
338
340
  import_spec.value || exports
339
341
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Klenod
4
4
  module Runtime
5
- VERSION = "0.0.16"
5
+ VERSION = "0.0.18"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: klenod-runtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrés Alin