Boris Verkhovskiy
b866408e41
support --cert/--key and --cacert/--capath in python ( #341 )
...
* support --cert and --cacert in python
* add missing newline after --data files in Python
2022-03-15 03:49:03 -07:00
Boris Verkhovskiy
dfc8ce1782
add testing utilities and skip comments in input ( #282 )
...
* add script for saving output of the tool as test
* add script for comparing the raw request
between python and curl
* update after moving test files
* allow comments in test bash input
* restructure test files
and complete todo about relative path handling in gen-test
* handle comments in input and add node-fetch test
also add check that all generators are tested
* don't include test inputs in github language stats
* fix linter errors, use path for path logic in test
* report skipped languages once
* fix compare-requests by timing out quickly
* make converters in test-utils like cli.js
* report error when tests can't run, remove .DS_Store
2022-03-14 21:33:33 -07:00
Boris Verkhovskiy
9b93b09688
pass - to read from stdin ( #339 )
...
instead of doing it when no arguments are passed, which could be confusing
2022-03-14 20:21:33 -07:00
Boris Verkhovskiy
f1e17cb3dd
Rename "browser" to "javascript" ( #338 )
2022-03-14 18:11:55 -07:00
Boris Verkhovskiy
883ef3dad3
lint and add CCError ( #336 )
...
* update linter
standardJS supports top-level await now
* lint all non-test JS files
* make cli expect Error objects only
* define CCError
* re-enable linter in CI
2022-03-14 17:05:34 -07:00
Boris Verkhovskiy
da8071da2e
Indent data= 4 spaces ( #333 )
...
* indent data= 4 spaces like everything else
* make params= a list of tuples
instead of a tuple of tuples
2022-03-12 15:51:31 -08:00
Boris Verkhovskiy
289aa2a85c
Fix bash grammar WASM file ( #320 )
v4.0.0-alpha.9
2021-12-29 02:04:37 -08:00
Boris Verkhovskiy
c77bb0d24e
Update readme ( #319 )
v4.0.0-alpha.8
2021-12-28 12:03:16 -08:00
Boris Verkhovskiy
b11ba75457
Convert JSON data to Python ( #318 )
...
special case JSON content-type in Python
and delete the Content-Type header if the JSON round-trips
2021-12-28 11:57:58 -08:00
Борис Верховский
661b29d8c1
Don't split headers on newlines ( #313 )
2021-10-21 01:39:11 -06:00
Борис Верховский
a92143a58f
Generate tree-sitter-bash.wasm on npm publish ( #310 )
...
instead of keeping it in the git repository. Also, disable Windows in CI.
2021-10-15 12:12:55 -06:00
Борис Верховский
1c39b37ec5
Fix deprecation warning ( #309 )
2021-10-14 10:02:10 -06:00
Борис Верховский
34c34c3f3e
run tests on Windows and macOS ( #306 )
...
Node 16 on Windows is disabled because curlconverter fails to build.
2021-10-13 07:30:21 -06:00
Борис Верховский
8251853d45
Update tree-sitter and other deps ( #304 )
...
making curlconverter installable on Node.js 16 on macOS
v4.0.0-alpha.7
2021-10-11 11:45:53 -06:00
Борис Верховский
ff7d6c5682
warn macOS users about Node 16
2021-10-08 08:00:22 -06:00
Борис Верховский
8f414fc09f
add deleted curl arguments ( #280 )
...
from curl's git repo's history
2021-10-02 11:34:20 -06:00
Борис Верховский
a12a753f21
report curl version in command line ( #300 )
...
the version of curl that we extracted the arguments from.
v4.0.0-alpha.6
2021-09-30 05:50:10 -06:00
Борис Верховский
6583b3d705
fix node-fetch ( #299 )
2021-09-30 03:28:20 -06:00
Борис Верховский
59c4c5558d
run tests on Node 12 again ( #298 )
2021-09-29 02:50:37 -06:00
Борис Верховский
56915137ac
fix linter errors, remove unused import ( #297 )
v4.0.0-alpha.5
2021-09-28 04:48:43 -06:00
Борис Верховский
c124a3efec
remove startsWith polyfill ( #296 )
2021-09-28 04:36:06 -06:00
Борис Верховский
5b9e49aab7
report version in the command line ( #295 )
2021-09-28 03:49:14 -06:00
Борис Верховский
00bc8a9934
default to tree-sitter Node bindings instead of WASM ( #294 )
2021-09-28 03:43:39 -06:00
Борис Верховский
c43cc423b4
improve command line error reporting ( #292 )
...
node adds a useless suggestion to pass --trace-uncaught
2021-09-27 17:24:53 -06:00
Борис Верховский
547816a9f1
use file path relative to package location ( #291 )
v4.0.0-alpha.4
2021-09-24 10:28:19 -06:00
Борис Верховский
e8e9df43de
don't upload docs to npm registry ( #290 )
2021-09-24 10:06:41 -06:00
Борис Верховский
0a18e0ebd6
don't upload tests to npm registry ( #289 )
2021-09-24 10:03:04 -06:00
Борис Верховский
5dd3b0abe2
make cli act as a drop-in replacement for curl ( #285 )
...
now you can paste a curl command into your shell, change "curl" to "curlconverter" and get a generated program instead of making the request.
You can still pipe a command through stdin and you can optionally pass the desired output language using --language as before. If you try to use -l, the old short option for --language, it'll silently no longer work.
2021-09-24 09:30:53 -06:00
Борис Верховский
c2a295d5a3
move around test files ( #283 )
...
* move around files
* remove unused PNG
2021-09-24 02:10:17 -06:00
Connor Finnigan
8236c86db8
npm fix-up package-lock.json ( #288 )
2021-09-23 13:25:23 -05:00
Борис Верховский
e3113a9749
hide files in fixtures/ in diffs and language stats ( #286 )
...
except the ones in curl_commands/
2021-09-22 01:47:43 -06:00
Борис Верховский
265a9372c6
don't test Node 12 in CI ( #284 )
...
the tests were raising SyntaxError instead of running
2021-09-21 02:29:20 -06:00
Борис Верховский
432b6bf568
Merge pull request #281 from verhovsky/master
...
replace Travis CI with GitHub Actions
2021-09-21 01:24:49 -06:00
Борис Верховский
03a5a3925f
Replace Travis CI with GitHub Actions
2021-09-20 23:03:38 -06:00
Nick Carneiro
29330f67d2
actually add wasm file
2021-09-20 15:47:52 -07:00
Nick Carneiro
0b372e3198
include bash wasm file to make npm install easy
2021-09-20 15:46:38 -07:00
Nick Carneiro
45edc0e7c9
make git tag command in options generator script work with git git version 2.25.1 (current ubuntu 20.04 version)
2021-09-20 15:27:58 -07:00
Борис Верховский
2e072117dd
Use tree-sitter for bash parsing ( #278 )
...
* convert to ES module
* replace yargs with tree-sitter for bash parsing
* fix tests
* request.data is always a string
* don't remove whitespace from -d
* correct arg precedence when determining method
also add a space before the backslash to avoid
an issue in tree-sitter bash grammar
* increment version
2021-09-20 14:56:15 -07:00
Nick Carneiro
b2ac82d451
Revert "Update go.js ( #273 )"
...
We should use escaping instead. This will have the same issue with the
backticks.
This reverts commit 5938935667 .
2021-09-02 08:36:10 -07:00
George Pittock
5938935667
Update go.js ( #273 )
...
Fixes https://github.com/NickCarneiro/curlconverter/issues/272 .
2021-09-02 08:30:49 -07:00
Nick Carneiro
e06f3aadea
credit jeayu for Java
2021-03-25 20:57:43 -07:00
Nick Carneiro
d8c131a4e1
3.19.0
2021-03-25 20:31:56 -07:00
Nick Carneiro
f14b2a0454
update package-lock
2021-03-25 20:31:42 -07:00
Nick Carneiro
49e4df2f90
remove whitespace in test fixtures
2021-03-25 20:29:48 -07:00
Nick Carneiro
8e62bedf7c
fix js style
2021-03-25 20:23:37 -07:00
jeayu
2ed1fd3be8
Add generator for Java ( #256 )
...
* Add generator for Java
* Add support for Java
* Refactor Java generator
* Decompressing gzip
2021-03-25 20:21:57 -07:00
Nick Carneiro
5c61f9c6a7
3.18.0
2021-03-19 21:46:09 -07:00
Nick Carneiro
e389d000b2
depend on our own browser compatible yargs
2021-03-19 21:45:53 -07:00
Nick Carneiro
a6fd01354e
3.17.0
2021-03-19 21:38:33 -07:00
Nick Carneiro
4b8947a1e0
add package lock
2021-03-19 21:37:48 -07:00