get-voodoo 0.0.5 → 0.0.8

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: b45cd5bfcb3fca16181b82d0953f164918c07392eb18f8aa4d55478521fd2154
4
- data.tar.gz: a7fee0193c268c0a702ca77ec8f49537cb3fe094adf00638c0a33fc6cb7ebd0a
3
+ metadata.gz: 8d3851b2c31c331e38b243337a5c0d936074f7deca6e8ee49890d3df78b30340
4
+ data.tar.gz: b895a82659f76abed132b18651f2080d4754c271c262faa6a49ce451ddcdfc3c
5
5
  SHA512:
6
- metadata.gz: dc81a7f05068b804b8a7eed2a1d95533c7733e7bb41bb0efe7fffb58e722379d8dc7f6e7d6fa7673be2598f9a068640112108678ccef6cda6834072ec6347d02
7
- data.tar.gz: 6524d367047d65af47ebc1a290e012c58303e5b4e6d8d2911b90ec23ff4b4f7b9fc6f50cbf34fa2374a24d72845a223fca1679517a15895b98a7fca00265d436
6
+ metadata.gz: 84533da03d4a48db14081bacc9412c416982458fabca6ce0bbeacb290714e2c274d42d35a198f8e90834432415c94f139e7b4fa07a99a85cb329d44d8e0ca0a8
7
+ data.tar.gz: e0ad78c8fb895bf0f62b53314a950b1f38dfd74e59cbcc298f08bafa4f54f8734f19dce40bdd65bcdfb7aea9bd31d608680f3b3cb6c9c27d50e1c425e87077c9
data/lib/voodoo/cli.rb CHANGED
@@ -6,7 +6,7 @@ require 'voodoo/browser'
6
6
 
7
7
  module VOODOO
8
8
 
9
- VERSION = 'v0.0.1'
9
+ VERSION = 'v0.0.8'
10
10
 
11
11
  class CLI < Thor
12
12
 
@@ -16,7 +16,7 @@ module VOODOO
16
16
  end
17
17
 
18
18
  option :url_include, :type => :string, :aliases => :u, :default => nil
19
- option :body_include, :type => :string, :aliases => :b, :default => nil
19
+ option :body_include, :type => :string, :aliases => :i, :default => nil
20
20
  option :header_exists, :type => :string, :aliases => :h, :default => nil
21
21
  option :format, :type => :string, :aliases => :f, :default => 'pretty', :desc => 'pretty, json, payload'
22
22
  option :output, :type => :string, :aliases => :o, :desc => 'File path', :default => nil
@@ -20,6 +20,10 @@
20
20
  }
21
21
 
22
22
  function parseBody(body) {
23
+ if (body.formData) {
24
+ return JSON.stringify(body.formData);
25
+ }
26
+
23
27
  try {
24
28
  return body.raw.map(data => String.fromCharCode.apply(null, new Uint8Array(data.bytes))).join('')
25
29
  } catch {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: get-voodoo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron Masas