esbuild 0.1.2 → 0.2.0

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: 6ca04633426ced1850b7fe4610a6838e5d2d1ed86b1b4a0ebaea744d071211bd
4
- data.tar.gz: b95f70fe7d15b6148b199c7a17ac26ad4faef64eeece2f911abf5284c02e6e0e
3
+ metadata.gz: 2e9c31ca911178faee51719df2be97586bfd1c4c2a4503e67fe95426efd2d205
4
+ data.tar.gz: 335ddbd7796cc967fcbf5ae22f0af0c1e339514474c6a1ea6bd60bf4fa78a2e1
5
5
  SHA512:
6
- metadata.gz: 4b7cd969ba9d97c71d8cdbec2cfa45eafd411f36520f55953ad4555731700622747895e7af5ed0d7b195e6e73cee3cbc810205c18995c3ba9e19c852bb57b82b
7
- data.tar.gz: f8b230c37b8a5f23a5bd1e7d8ba6ef61e60f30b0e8ad5f79ebd554e77cf296d4781b55ad72cf398473360b105ea6c241f2a922149a71dcd907d30fb8ddc79a02
6
+ metadata.gz: 4d38fb43578a99193341827169cf4355ebbf83fb03597958faa155b4e220e1e2e36ebc48453edf4d081404cabb3d78db2835cdacc55204a347b4280a90bb3a1a
7
+ data.tar.gz: 451169a47ccac6c07afed20c69b8de217fc9f8a95a8e7a02d72fdf4bc80072cd030329cf26eaff6d2c20f11fb975fa7e79fc5422c4e083b1d5ba3f559837ba30
data/lib/esbuild/flags.rb CHANGED
@@ -100,12 +100,14 @@ module Esbuild
100
100
  get_flag(options, :external, Array) { |v| v.each { |name| flags << "--external:#{name}" } }
101
101
  get_flag(options, :banner, Hash) do |v|
102
102
  v.each do |type, value|
103
+ type = type.to_s
103
104
  raise ArgumentError, "Invalid banner file type: #{type}" if type.include?("=")
104
105
  flags << "--banner:#{type}=#{value}"
105
106
  end
106
107
  end
107
108
  get_flag(options, :footer, Hash) do |v|
108
109
  v.each do |type, value|
110
+ type = type.to_s
109
111
  raise ArgumentError, "Invalid footer file type: #{type}" if type.include?("=")
110
112
  flags << "--footer:#{type}=#{value}"
111
113
  end
@@ -113,12 +115,14 @@ module Esbuild
113
115
  get_flag(options, :inject, Array) { |v| v.each { |name| flags << "--inject:#{name}" } }
114
116
  get_flag(options, :loader, Hash) do |v|
115
117
  v.each do |ext, loader|
118
+ ext = ext.to_s
116
119
  raise ArgumentError, "Invalid loader extension: #{ext}" if ext.include?("=")
117
120
  flags << "--loader:#{ext}=#{loader}"
118
121
  end
119
122
  end
120
123
  get_flag(options, :out_extension, Hash) do |v|
121
124
  v.each do |ext, extension|
125
+ ext = ext.to_s
122
126
  raise ArgumentError, "Invalid out extension: #{ext}" if ext.include?("=")
123
127
  flags << "--out-extension:#{ext}=#{extension}"
124
128
  end
@@ -198,6 +202,7 @@ module Esbuild
198
202
  get_flag(options, :jsx_fragment, String) { |v| flags << "--jsx-fragment=#{v}" }
199
203
  get_flag(options, :define, Hash) do |v|
200
204
  v.each do |key, value|
205
+ key = key.to_s
201
206
  raise "Invalid define: #{key}" if key.include? "="
202
207
  flags << "--define:#{key}=#{value}"
203
208
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Esbuild
4
- VERSION = "0.1.2"
5
- ESBUILD_VERSION = "0.11.9"
4
+ VERSION = "0.2.0"
5
+ ESBUILD_VERSION = "0.12.8"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esbuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bouke van der Bijl
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-16 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby