wolf_core 1.0.104 → 1.0.106

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: f8ba8aeb052841bfadfea7e032d4ffcc9dee3ec667d9385bd1a8c7e9dbe97fff
4
- data.tar.gz: 2d5052c3edf9346a09dbf55cf9c1417bf92d1f83c2b3301ac622b2cec9a22c4c
3
+ metadata.gz: 64faf86d2c3ce299d3095f8dabdb9ed219991fa4cddd570007d367b0920a8b95
4
+ data.tar.gz: cc4fb2ae33a8228c3b89a02487de26e10b7daecc6b56544730fdef3894e1f876
5
5
  SHA512:
6
- metadata.gz: a2096f8d7b6aef4aecbc700251af3c9c72a08d15798de47de6829906cd5972e6eb43eb87dc98a67cf1d0cdf60d5c31ce0d22b2458ff1b98c191641b31edb31e8
7
- data.tar.gz: 483e399f0e98e0b7d095e3dc2cdb8f412ae6bcc0d358af4357bb8406a5ae4ef8572c9b100fcdffb3de5f412d0354e32e61c6ebf668a0e3593240c83e5914bc52
6
+ metadata.gz: be0fabeed675031beb1fb059b4155ef75a319ee9d8a1941360b87402f50fca61af7747b62c996541bee15dfdbafd0fbb7098298b5ba96ba9a3141210484e10aa
7
+ data.tar.gz: 2810643fc2da26cb0169c63e5514257f20ff765b223f1595bbbaf52cecb01071c28c514a5e39886e791bb8ef5cf258ebba9abfd4fa8042818db372585733c9e4
@@ -28,13 +28,26 @@ module WolfCore
28
28
  end
29
29
 
30
30
  def get_event_params(event)
31
+ params = {}
32
+
31
33
  event_body = event['body']
32
- params = if event_body.present?
33
- deep_parse_json(event_body)
34
- else
35
- event
34
+ if event_body.present?
35
+ params.merge!(deep_parse_json(event_body))
36
+ end
37
+
38
+ path_parameters = event['pathParameters']
39
+ if path_parameters.present?
40
+ params.merge!(deep_parse_json(path_parameters))
36
41
  end
37
- params&.with_indifferent_access
42
+
43
+ query_parameters = event['queryStringParameters']
44
+ if query_parameters.present?
45
+ params.merge!(deep_parse_json(query_parameters))
46
+ end
47
+
48
+ return event if params.empty?
49
+
50
+ params.with_indifferent_access
38
51
  end
39
52
 
40
53
  def result_to_response(result)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.104"
4
+ VERSION = "1.0.106"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.104
4
+ version: 1.0.106
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-26 00:00:00.000000000 Z
11
+ date: 2025-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty