Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
306 commits
Select commit Hold shift + click to select a range
ced174d
Merge remote-tracking branch 'upstream/master'
erunion May 13, 2021
2c9d980
build: 2.5.0 release
erunion May 13, 2021
815cad3
fix: add new option for escaping brackets in curl snippets (#45)
erunion Jun 1, 2021
930e9f9
build: 2.5.1 release
erunion Jun 1, 2021
dbd0db8
Merge remote-tracking branch 'upstream/master'
erunion Sep 7, 2021
2e3b809
feat: php target for guzzle@7 (#47)
erunion Sep 8, 2021
4b0a3f3
feat: adding a new `harIsAlreadyEncoded` option (#46)
erunion Sep 9, 2021
e0a5253
style: moving the codebase to our coding standards (#48)
erunion Sep 10, 2021
8b0409c
refactor: move tests and fixtures over to using httpbin.org (#49)
erunion Sep 10, 2021
d40cecd
chore: renaming the test and fixture directories (#50)
erunion Sep 10, 2021
bbb7fa2
feat: integration test suite (#51)
erunion Sep 14, 2021
da47dc5
chore(deps): upgrading deps (#52)
erunion Sep 14, 2021
1944ce3
ci: wiring up dependabot
erunion Sep 14, 2021
656b3fe
chore(deps): bump actions/setup-node from 2.1.5 to 2.4.0 (#53)
dependabot[bot] Sep 14, 2021
0e86860
build: 3.0.0 release
erunion Sep 14, 2021
bc3b879
docs: adding a security policy and pr template
erunion Sep 17, 2021
ec640cb
chore(deps-dev): bumping dev deps
erunion Sep 17, 2021
adc1152
ci: setting up codeql
erunion Sep 17, 2021
77a3726
docs: adding a code of conduct
erunion Sep 17, 2021
c5edc65
chore(deps): bump actions/setup-node from 2.4.0 to 2.4.1 (#54)
dependabot[bot] Oct 4, 2021
413c556
chore(deps-dev): bump glob from 7.1.7 to 7.2.0 (#56)
dependabot[bot] Oct 13, 2021
599073d
chore(deps-dev): bump jest from 27.2.0 to 27.2.4 (#55)
dependabot[bot] Oct 15, 2021
33cccae
chore(deps): bump actions/checkout from 2.3.4 to 2.3.5 (#57)
dependabot[bot] Nov 1, 2021
8a1019c
chore(deps-dev): bump jest from 27.2.4 to 27.3.1 (#58)
dependabot[bot] Nov 1, 2021
3edbfec
chore(deps-dev): bump @readme/eslint-config from 7.1.1 to 7.2.2 (#59)
dependabot[bot] Nov 1, 2021
5c63f36
chore(deps): bump actions/checkout from 2.3.5 to 2.4.0 (#60)
dependabot[bot] Dec 1, 2021
49e0397
chore(deps): bump actions/setup-node from 2.4.1 to 2.5.0 (#61)
dependabot[bot] Dec 1, 2021
62b7438
chore(deps-dev): bump jest from 27.3.1 to 27.4.3 (#62)
dependabot[bot] Dec 1, 2021
28e1176
chore(deps-dev): bump prettier from 2.4.1 to 2.5.0 (#63)
dependabot[bot] Dec 1, 2021
499a547
chore(deps-dev): upgrading eslint, @readme/eslint-config, and prettie…
erunion Dec 1, 2021
a958031
fix: issue where if `postData.params` were missing some targets would…
erunion Dec 10, 2021
d693cca
build: 3.0.1 release
erunion Dec 10, 2021
701d938
chore(deps): bump actions/setup-node from 2.5.0 to 2.5.1 (#71)
dependabot[bot] Jan 2, 2022
787c221
chore(deps-dev): bump eslint from 8.3.0 to 8.6.0 (#70)
dependabot[bot] Jan 2, 2022
1d67d64
chore(deps-dev): bump @readme/eslint-config from 8.0.2 to 8.1.1 (#69)
dependabot[bot] Jan 2, 2022
1cf7c92
chore(deps-dev): bump prettier from 2.5.0 to 2.5.1 (#68)
dependabot[bot] Jan 2, 2022
4b8bbc1
chore(deps): bump qs from 6.10.1 to 6.10.2 (#67)
dependabot[bot] Jan 2, 2022
76b908c
chore(deps-dev): bump jest from 27.4.3 to 27.4.5 (#66)
dependabot[bot] Jan 2, 2022
822bac2
build: 3.0.2 release
erunion Jan 3, 2022
836361d
chore(deps): bump qs from 6.10.2 to 6.10.3 (#72)
dependabot[bot] Feb 2, 2022
88d1726
chore(deps-dev): bump eslint from 8.6.0 to 8.8.0 (#73)
dependabot[bot] Feb 2, 2022
b8a89b1
chore(deps-dev): bump @readme/eslint-config from 8.1.1 to 8.2.0 (#74)
dependabot[bot] Feb 2, 2022
a7e45c0
chore(deps-dev): bump jest from 27.4.5 to 27.4.7 (#75)
dependabot[bot] Feb 2, 2022
b6c1c25
chore(deps): bump actions/setup-node from 2.5.1 to 3 (#76)
dependabot[bot] Mar 1, 2022
9fb817c
chore(deps-dev): bump @readme/eslint-config from 8.2.0 to 8.4.2 (#77)
dependabot[bot] Mar 1, 2022
79daece
chore(deps-dev): bump jest from 27.4.7 to 27.5.1 (#78)
dependabot[bot] Mar 1, 2022
23e3885
chore(deps-dev): bump eslint from 8.8.0 to 8.10.0 (#79)
dependabot[bot] Mar 1, 2022
a8d5805
chore(deps): bump minimist from 1.2.5 to 1.2.6 (#80)
dependabot[bot] Mar 30, 2022
976b3e6
chore(deps-dev): bump eslint from 8.10.0 to 8.12.0 (#84)
dependabot[bot] Apr 1, 2022
0c84c53
chore(deps-dev): bump prettier from 2.5.1 to 2.6.1 (#83)
dependabot[bot] Apr 1, 2022
3c5c32e
chore(deps-dev): bump @readme/eslint-config from 8.4.2 to 8.5.1 (#82)
dependabot[bot] Apr 1, 2022
266a50e
chore(deps): bump actions/checkout from 2.4.0 to 3 (#81)
dependabot[bot] Apr 1, 2022
60e9088
feat: python requests native uploads (#85)
erunion Apr 18, 2022
73946c4
feat: cleaner python requests code by using available http accessors …
erunion Apr 19, 2022
15f8d25
chore: removing some docs as they're in our .github/ repo now
erunion Apr 19, 2022
c10936d
build: 3.1.0 release
erunion Apr 19, 2022
1f21ed3
fix: js + axios snippets for `x-www-form-urlencoded` are wrong (#87)
erunion Apr 29, 2022
c831953
build: 3.1.1 release
erunion Apr 29, 2022
d75b4a5
chore(deps): bump github/codeql-action from 1 to 2 (#88)
dependabot[bot] May 2, 2022
36c5213
chore(deps-dev): bump jest from 27.5.1 to 28.0.3 (#89)
dependabot[bot] May 2, 2022
a92f032
chore(deps-dev): bump eslint from 8.12.0 to 8.14.0 (#91)
dependabot[bot] May 2, 2022
5146658
chore(deps-dev): bump glob from 7.2.0 to 8.0.1 (#92)
dependabot[bot] May 2, 2022
2301104
chore(deps-dev): bump prettier from 2.6.1 to 2.6.2 (#93)
dependabot[bot] May 2, 2022
8f94ff7
chore(deps-dev): bump @readme/eslint-config from 8.5.1 to 8.7.3 (#90)
dependabot[bot] May 2, 2022
4be2a98
fix: headers not being properly applied to R httr snippets (#94)
erunion May 19, 2022
04b8276
chore: backporting some changes I made upstream
erunion May 19, 2022
3f108de
build: 3.1.2 release
erunion May 19, 2022
853374c
fix: issue where query strings in R wouldn't be properly concatenated…
erunion May 27, 2022
797ad6d
build: 3.1.3 release
erunion May 27, 2022
36a1af7
chore(deps-dev): bump glob from 8.0.1 to 8.0.3 (#96)
dependabot[bot] Jun 1, 2022
bfb4626
chore(deps-dev): bump jest from 28.0.3 to 28.1.0 (#97)
dependabot[bot] Jun 1, 2022
d9ce0ef
chore(deps-dev): bump @readme/eslint-config from 8.7.3 to 8.7.5 (#98)
dependabot[bot] Jun 1, 2022
a4a0016
chore(deps-dev): bump eslint from 8.14.0 to 8.16.0 (#99)
dependabot[bot] Jun 1, 2022
035c2f1
ci: fixing php ci (#100)
erunion Jun 1, 2022
2fd308a
chore(deps-dev): bump jest from 28.1.0 to 28.1.2 (#101)
dependabot[bot] Jul 1, 2022
d2d9921
chore(deps-dev): bump eslint from 8.16.0 to 8.18.0 (#102)
dependabot[bot] Jul 1, 2022
7cc1edb
chore(deps): bump qs from 6.10.3 to 6.11.0 (#103)
dependabot[bot] Jul 1, 2022
a790e1e
chore(deps-dev): bump prettier from 2.6.2 to 2.7.1 (#104)
dependabot[bot] Jul 1, 2022
19f5557
chore(deps-dev): bump @readme/eslint-config from 8.7.5 to 8.8.0 (#105)
dependabot[bot] Jul 1, 2022
df6d56d
feat: update to upstream (#107)
erunion Jul 16, 2022
08c7bde
feat: upgrading us to upstream (#108)
erunion Jul 17, 2022
4126ef4
docs: readme improvemnets
erunion Jul 17, 2022
93cdba3
feat: moving some code over to using the new post processing system
erunion Jul 17, 2022
4297cda
fix: har validation packages not being required (#109)
erunion Jul 18, 2022
4d2d42c
build: 4.0.0 release
erunion Jul 18, 2022
7c65ec1
fix: adding a prepack stage to the publish process
erunion Jul 18, 2022
5cfd2cf
build: 4.0.1 release
erunion Jul 18, 2022
bed5d30
build: 4.0.2 release
erunion Jul 18, 2022
8f0e09f
fix: issues with package publishing
erunion Jul 18, 2022
9800042
build: 4.0.3 release
erunion Jul 18, 2022
b9e276b
fix: adding HAR validation exceptions for when `postData` is an empty…
erunion Jul 21, 2022
7d956b9
build: 4.0.4 release
erunion Jul 21, 2022
7e3c79b
fix: repairing malformed HAR postData objects on the fly (#111)
erunion Jul 21, 2022
b7079aa
build: 4.0.5 release
erunion Jul 21, 2022
0f246f8
chore(deps-dev): bump @readme/eslint-config from 8.8.3 to 9.0.0 (#112)
dependabot[bot] Aug 1, 2022
ab59938
chore(deps-dev): bump jest and @types/jest (#114)
dependabot[bot] Aug 1, 2022
cca9168
chore(deps-dev): bump type-fest from 2.16.0 to 2.18.0 (#116)
dependabot[bot] Aug 1, 2022
f5efb64
chore(deps-dev): bump ts-jest from 28.0.5 to 28.0.7 (#115)
dependabot[bot] Aug 1, 2022
eeae31b
chore(deps-dev): bump @types/node from 16.11.43 to 18.6.3 (#118)
dependabot[bot] Aug 1, 2022
e904425
chore(deps-dev): bump eslint from 8.19.0 to 8.21.0 (#117)
dependabot[bot] Aug 1, 2022
ce1fc62
chore(deps-dev): bump @types/node from 18.6.3 to 18.7.14 (#119)
dependabot[bot] Sep 1, 2022
31cc5f3
chore(deps-dev): bump ts-jest from 28.0.7 to 28.0.8 (#120)
dependabot[bot] Sep 1, 2022
48104b4
chore(deps-dev): bump typescript from 4.7.4 to 4.8.2 (#122)
dependabot[bot] Sep 1, 2022
0509de3
chore(deps-dev): bump type-fest from 2.18.0 to 2.19.0 (#123)
dependabot[bot] Sep 1, 2022
13cc75d
chore(deps-dev): bump @readme/eslint-config from 9.0.0 to 10.1.0 (#121)
dependabot[bot] Sep 1, 2022
0cd8e5b
chore(deps-dev): bump @types/node from 18.7.14 to 18.7.23 (#127)
dependabot[bot] Oct 3, 2022
e38fdf0
chore(deps-dev): bump typescript from 4.8.2 to 4.8.4 (#126)
dependabot[bot] Oct 3, 2022
d10a975
chore(deps-dev): bump type-fest from 2.19.0 to 3.0.0 (#125)
dependabot[bot] Oct 3, 2022
7e9e9b5
chore(deps-dev): bump @types/har-format from 1.2.8 to 1.2.9 (#124)
dependabot[bot] Oct 3, 2022
a5da99e
chore(deps-dev): bump @types/node from 18.7.23 to 18.8.0 (#128)
dependabot[bot] Oct 3, 2022
bf58d3b
fix: surfacing content type info when running `open()` in python (#133)
erunion Nov 1, 2022
12c1879
fix: axios compat with v1 (#134)
erunion Nov 2, 2022
67b80dd
ci: cleanup
erunion Nov 2, 2022
6b1a6e8
chore(deps-dev): bump @readme/eslint-config from 10.1.0 to 10.1.1 (#132)
dependabot[bot] Nov 2, 2022
203bbe2
chore(deps-dev): bump eslint from 8.21.0 to 8.26.0 (#131)
dependabot[bot] Nov 2, 2022
e3da89a
chore(deps-dev): bump @types/node from 18.8.0 to 18.11.9 (#129)
dependabot[bot] Nov 2, 2022
c604022
chore(deps-dev): bump type-fest from 3.0.0 to 3.1.0 (#130)
dependabot[bot] Nov 2, 2022
ca8035c
build: 4.1.0 release
erunion Nov 2, 2022
c138c2e
chore(deps-dev): bump @types/node from 18.11.9 to 18.11.10 (#141)
dependabot[bot] Dec 1, 2022
65409b4
chore(deps-dev): bump @types/har-format from 1.2.9 to 1.2.10 (#142)
dependabot[bot] Dec 1, 2022
932be7b
chore(deps-dev): bump typescript from 4.8.4 to 4.9.3 (#139)
dependabot[bot] Dec 1, 2022
9ad8728
chore(deps-dev): bump @readme/eslint-config from 10.1.1 to 10.2.0 (#138)
dependabot[bot] Dec 1, 2022
ea86d84
chore(deps-dev): bump eslint from 8.26.0 to 8.28.0 (#137)
dependabot[bot] Dec 1, 2022
f8a4ec1
chore(deps-dev): bump prettier from 2.7.1 to 2.8.0 (#136)
dependabot[bot] Dec 1, 2022
4bd5e15
chore(deps-dev): bump type-fest from 3.1.0 to 3.3.0 (#135)
dependabot[bot] Dec 1, 2022
3022609
ci: fix php ci builds (#143)
erunion Dec 1, 2022
e09be6a
build: 4.1.1 release
erunion Dec 1, 2022
f103211
chore(deps-dev): bumping deps
erunion Jan 3, 2023
4991d08
feat: remove ajv validation (#151)
erunion Jan 9, 2023
22fe2e2
build: 5.0.0 release
erunion Jan 9, 2023
ebc5661
chore(deps): bumping deps
erunion Jan 31, 2023
6f31c53
chore: bumping out of date deps
erunion Mar 2, 2023
637825b
feat: hardcoding curl json payloads to be indented two spaces
erunion Mar 8, 2023
f100284
build: 5.1.0 release
erunion Mar 8, 2023
1b88069
chore(deps-dev): bumping deps
erunion Apr 3, 2023
d199843
chore(deps-dev): bumping out of date deps
erunion May 1, 2023
9e044b4
chore(deps-dev): bumping to typescript 5
erunion May 1, 2023
4478658
fix(clojure): don't crash if there's no postData content (#171)
erunion May 25, 2023
fe5e3ee
ci: extend ci testing to run on node 20
erunion May 25, 2023
200cb20
build: 5.1.1 release
erunion May 25, 2023
8869f3c
feat: dropping support for node 14
erunion Jun 1, 2023
50e7664
chore(deps): bumping out of date deps
erunion Jun 1, 2023
8276996
build: 6.0.0 release
erunion Jun 1, 2023
c085c36
feat(rebase): updating our fork with the latest upstream (#180)
erunion Jun 16, 2023
d04de71
chore(deps-dev): bumping out of date deps (#181)
erunion Jun 16, 2023
3fd5bbc
fix: Support Restsharp 107+ (#179)
llimllib Jun 16, 2023
ae9f529
add NODE_ENV=integration to all docker-compose services (#184)
llimllib Jun 20, 2023
c59be27
Use local httpbin for integration testing (#185)
llimllib Jun 23, 2023
72ea746
C# integration tests (#182)
llimllib Jun 23, 2023
062008d
upgrade node image from 14 to 18 (#189)
llimllib Jun 26, 2023
d8ba975
add golang integration tests (#188)
llimllib Jun 26, 2023
a466855
Add C integration tests (#190)
llimllib Jun 26, 2023
867cc35
chore(deps-dev): bumping out of date deps
erunion Jun 26, 2023
40e1886
build: 6.1.0 release
erunion Jun 26, 2023
8f1594a
feat: creation of a new JSON target (#191)
erunion Jun 30, 2023
c4a1374
chore(deps-dev): bumping out of date deps
erunion Jun 30, 2023
0852c94
build: 6.2.0 release
erunion Jun 30, 2023
7bb32ab
fix: updating the message that's shown for no body in the JSON target
erunion Jun 30, 2023
3db4cc2
build: 6.2.1 release
erunion Jun 30, 2023
0b59884
chore(deps-dev): bumping out of date deps
erunion Jul 1, 2023
eba444c
feat: added support for esm (#194)
prisis Sep 8, 2023
523a455
chore(deps): bumping out of date deps (#196)
erunion Sep 8, 2023
95d82e1
chore(deps): bump actions/checkout from 3 to 4 (#197)
dependabot[bot] Sep 8, 2023
e524d71
build: 7.0.0 release
erunion Sep 8, 2023
12b7e2b
feat: exporting the code-builder and reducer helpers
erunion Sep 8, 2023
0981860
build: 7.0.1 release
erunion Sep 8, 2023
f4a222c
fix: bad exports in the tsup config
erunion Sep 8, 2023
aa9304f
build: 7.0.2 release
erunion Sep 8, 2023
60c8960
fix: the targets export
erunion Sep 8, 2023
b0394d6
build: 7.1.0 release
erunion Sep 8, 2023
1a9f530
fix: bunk event-stream `map` function import
erunion Sep 8, 2023
445e2fb
build: 7.1.1 release
erunion Sep 8, 2023
935ccd6
fix: swapping event-stream for map-stream
erunion Sep 9, 2023
07d031f
build: 7.1.2 release
erunion Sep 9, 2023
487030f
feat: dropping support for node 16 + esm compat (#198)
erunion Sep 14, 2023
aae6c60
feat: dropping support for non-native FormData implementations (#199)
erunion Sep 14, 2023
a15b18c
chore(deps-dev): bump the minor-development-deps group with 2 updates…
dependabot[bot] Sep 14, 2023
2c397e5
Fix default http client (#201)
AdrianMachado Sep 21, 2023
d493de7
chore(deps-dev): bump the minor-development-deps group with 7 updates…
dependabot[bot] Oct 4, 2023
372b043
chore(deps-dev): bump postcss from 8.4.29 to 8.4.31 (#203)
dependabot[bot] Oct 4, 2023
e7c94e3
chore(deps-dev): bumping out of date deps
erunion Oct 7, 2023
db6e91b
chore: adding a script to run `attw` for build checks
erunion Oct 7, 2023
ed9602a
build: 7.1.3 release
erunion Oct 7, 2023
fb2d0c0
build: 8.0.0 release
erunion Oct 7, 2023
52c9d8f
chore(deps): bumping `formdata-to-string`
erunion Oct 9, 2023
086eb93
build: 8.0.1 release
erunion Oct 9, 2023
4e5fd44
chore(deps): bump undici from 5.24.0 to 5.26.3 (#204)
dependabot[bot] Oct 16, 2023
90092ea
chore(deps-dev): bump @babel/traverse from 7.21.5 to 7.23.2 (#205)
dependabot[bot] Oct 16, 2023
64a5531
chore(deps): running `npm audit fix`
erunion Oct 16, 2023
3d25fef
feat: creation of a new interface for combined target + client instal…
erunion Oct 25, 2023
1aafc8e
feat: client config for documenting installation instructions (#207)
erunion Oct 25, 2023
9525920
chore(deps-dev): bumping out of date deps
erunion Oct 25, 2023
a9fb20d
build: 8.1.0 release
erunion Oct 25, 2023
358a4a8
fix: issue with Client generic not being passed along
erunion Oct 25, 2023
afb204d
build: 8.1.1 release
erunion Oct 25, 2023
3487f0b
fix: export `addClientPlugin`
erunion Oct 25, 2023
ff610bf
build: 8.1.2 release
erunion Oct 25, 2023
09f0333
chore(deps): bump actions/setup-node from 3 to 4 (#208)
dependabot[bot] Nov 1, 2023
e2d2381
chore(deps-dev): bump the minor-development-deps group with 2 updates…
dependabot[bot] Nov 1, 2023
11503d3
fix: node axios installation instructions (#210)
erunion Nov 2, 2023
7852d76
chore(deps-dev): bumping deps
erunion Nov 2, 2023
86e8299
build: 8.1.3 release
erunion Nov 2, 2023
1edfafd
docs: typo
kanadgupta Nov 6, 2023
b9ac6d0
chore(deps): bumping out of date deps
erunion Nov 8, 2023
8066121
build: 8.1.4 release
erunion Nov 8, 2023
ee68579
chore(deps-dev): bump the minor-development-deps group with 6 updates…
dependabot[bot] Dec 3, 2023
6190c66
chore(deps-dev): bump tsup from 7.2.0 to 8.0.1 (#212)
dependabot[bot] Dec 3, 2023
cc14f0a
chore(deps-dev): bump vite from 4.4.9 to 5.0.5 (#213)
dependabot[bot] Dec 6, 2023
1e63c78
chore(deps): bump github/codeql-action from 2 to 3 (#215)
dependabot[bot] Jan 1, 2024
d24d88c
chore(deps-dev): bump the minor-development-deps group with 7 updates…
dependabot[bot] Jan 1, 2024
6d5307c
chore(deps-dev): bump vitest and @vitest/coverage-v8 (#216)
dependabot[bot] Jan 1, 2024
8d7d900
chore(deps-dev): bump vite from 5.0.10 to 5.0.12 (#217)
dependabot[bot] Jan 19, 2024
ea95299
chore(deps-dev): bump the minor-development-deps group with 7 updates…
dependabot[bot] Feb 1, 2024
9a85a73
Fix cURL short -d option handling (#219)
jaens Feb 13, 2024
63641ef
docs: update import paths
kanadgupta Feb 13, 2024
e11affb
fix(cURL): short -d option handling
kanadgupta Feb 13, 2024
ebc85d3
chore(deps-dev): bump the minor-development-deps group with 10 update…
dependabot[bot] Mar 6, 2024
29e859d
fix(curl,shell): shell quoting on @file (#221)
llimllib Mar 21, 2024
1d31f1e
chore(deps-dev): bump the minor-development-deps group with 7 updates…
dependabot[bot] Apr 1, 2024
2235630
chore(deps): bump qs and @types/qs (#223)
dependabot[bot] Apr 1, 2024
db71717
chore(deps-dev): bumping out of date deps
erunion Apr 8, 2024
966ab0e
feat: heavily simplify multipart formdata snippet generation (#224)
erunion Apr 8, 2024
5dd35c5
build: 9.0.0 release
erunion Apr 8, 2024
96edde3
chore: use non-deprecated vscode setting
kanadgupta Apr 9, 2024
c755ef0
fix(breaking): always return array (#225)
kanadgupta Apr 9, 2024
94f9897
build: 10.0.0 release
erunion Apr 9, 2024
40c68dc
feat: move swift from NSURLSession to URLSession (#226)
zunda-pixel Apr 10, 2024
1629af6
build: 10.0.1 release
erunion Apr 10, 2024
f30e998
Add query logic in Swift (#227)
zunda-pixel Apr 11, 2024
8b8b763
build: 10.0.2 release
erunion Apr 11, 2024
fd0dd80
build: 10.0.3 release
erunion Apr 12, 2024
e3a78da
Support timeout in Swift (#229)
zunda-pixel Apr 12, 2024
edf00ff
build: 10.0.4 release
erunion Apr 12, 2024
92a7097
fix multipart/form-data in Swift (#231)
zunda-pixel Apr 29, 2024
bebae25
build: 10.0.5 release
erunion Apr 29, 2024
1ced5fe
chore(deps-dev): bump the minor-development-deps group with 5 updates…
dependabot[bot] May 1, 2024
5a77e90
chore(deps): bump qs and @types/qs (#233)
dependabot[bot] May 1, 2024
1acdb13
chore(deps-dev): bump the minor-development-deps group with 4 updates…
dependabot[bot] Jun 1, 2024
fb0c94b
chore(deps-dev): bump braces from 3.0.2 to 3.0.3 (#236)
dependabot[bot] Jun 17, 2024
9280998
chore(deps-dev): bump the minor-development-deps group with 5 updates…
dependabot[bot] Jul 1, 2024
a37768c
chore(deps): bump qs from 6.12.1 to 6.12.3 (#240)
dependabot[bot] Aug 1, 2024
1bf2736
chore(deps-dev): bump vitest and @vitest/coverage-v8 (#241)
dependabot[bot] Aug 1, 2024
b1be5b7
chore(deps-dev): bump @types/node from 20.14.9 to 22.0.2 (#242)
dependabot[bot] Aug 1, 2024
30b4b58
chore(deps-dev): bump the minor-development-deps group with 5 updates…
dependabot[bot] Aug 1, 2024
0bdffb5
chore(deps-dev): bump the minor-development-deps group with 4 updates…
dependabot[bot] Sep 4, 2024
265ae3a
chore(deps): bump qs from 6.12.3 to 6.13.0 (#244)
dependabot[bot] Sep 4, 2024
cb55858
fix: running `npm audit fix`
erunion Sep 4, 2024
281a09c
feat: modernizing our JS and Node snippet targets (#245)
erunion Sep 5, 2024
c1595bc
build: 10.1.0 release
erunion Sep 5, 2024
597b6bf
Revert "feat: modernizing our JS and Node snippet targets (#245)"
kanadgupta Sep 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: integration test suite (#51)
* feat: initial pass at rewriting the integration testing framework

* test: docker tweaks

* style: fixing linting problems

* ci: using optional chaining in tests so don't run them on node 12

* feat: first pass at containerizing node integrations

* feat: making our useObjectBody option the default behavior in node-fetch

* fix: removing multipart/form-data headers from node-fetch when we use FormData

* fix: bug where node request wasn't sending cookies properly

* fix: adding useQuerystring to the node request opts to fix query param arrays

* fix: send the full url instead of `qs` for node request because of double encoding issues

* fix: issues with node axios not sending encoded and query params right

* fix: fixes to the integration tests suite

* fix: promoting the js+fetch useObjectBody option to be the default behavior

* fix: adding the composer autoloader to the top of guzzle snippets

* fix: catch and assert errors when we might be hitting a PROPFIND method

* docs: updating our differences list in the readme

* chore: renaming the `http` fixture to `http-insecure`

* test: setting up the integration tests to run on node, php, and python

* feat: getting the docker container running node tests

* ci: workflow for running node integrations

* ci: moving integration dockerfiles into their own dir

* ci: containerizing php integrations

* ci: no composer files exist to copy

* ci: installing npm deps in the php container so we can run tests

* fix: changing python requests target to use full urls instead of supplying query params

* ci: containerizing python integration tests

* ci: containerizing the curl test suite

* ci: adding a github workflow for the shell integration suite
  • Loading branch information
erunion authored Sep 14, 2021
commit bbb7fa2142d65abd780d60eff0b5d9857eaf9e5c
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"extends": "@readme/eslint-config",
"root": true,
"parserOptions": {
"ecmaVersion": 2020
},
"rules": {
"global-require": "off",
"no-underscore-dangle": "off",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [14.x]

steps:
- uses: actions/checkout@v2.3.4
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/integration-node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Integrations (Node)
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4

- name: Run tests
run: docker-compose run integration_node

- name: Cleanup
if: always()
run: docker-compose down
14 changes: 14 additions & 0 deletions .github/workflows/integration-php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Integrations (PHP)
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4

- name: Run tests
run: docker-compose run integration_php

- name: Cleanup
if: always()
run: docker-compose down
14 changes: 14 additions & 0 deletions .github/workflows/integration-python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Integrations (Python)
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4

- name: Run tests
run: docker-compose run integration_python

- name: Cleanup
if: always()
run: docker-compose down
14 changes: 14 additions & 0 deletions .github/workflows/integration-shell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Integrations (Shell)
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4

- name: Run tests
run: docker-compose run integration_shell

- name: Cleanup
if: always()
run: docker-compose down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.log
node_modules/
coverage/
vendor/
composer.*
9 changes: 0 additions & 9 deletions Dockerfile

This file was deleted.

15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,20 @@ For detailed information on each target, please review the [wiki](https://github

The main difference between this library and the upstream [httpsnippet](https://github.com/Kong/httpsnippet) library are:

* Does not ship with a CLI component
* Adds a `useObjectBody` option to the `node` and `javascript` targets. This option is a boolean flag that causes the request body to be rendered as an object literal wrapped in `JSON.stringify`. If disabled, it falls back to the original behavior of a stringified object body. This flag defaults to disabled.
* Does not ship with a CLI component.
* The `fetch` target for Node and JS both treat body payloads as an object literal and wrap it within `JSON.stringify()`. We do this to keep those targets looking nicer with those kinds of payloads.
* Contains a `harIsAlreadyEncoded` option on the core library to disable [escaping](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent) of cookies and query strings in URLs. Helpful if the HAR being supplied already has them escaped.
* PHP Guzzle snippets come with `require_once('vendor/autoload.php');` at the top of them.
* A full integration suite for testing out snippets the library creates.

### Running the integration suite

```
docker-compose run integration_node
docker-compose run integration_php
docker-compose run integration_python
docker-compose run integration_shell
```

## License

Expand Down
4 changes: 4 additions & 0 deletions __tests__/__fixtures__/available-targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"title": "Shell",
"extname": ".sh",
"default": "curl",
"cli": "%s",
"clients": [
{
"key": "curl",
Expand All @@ -30,6 +31,7 @@
"title": "Node.js",
"extname": ".js",
"default": "native",
"cli": "node %s",
"clients": [
{
"key": "native",
Expand Down Expand Up @@ -114,6 +116,7 @@
"title": "PHP",
"extname": ".php",
"default": "curl",
"cli": "php %s",
"clients": [
{
"key": "curl",
Expand Down Expand Up @@ -146,6 +149,7 @@
"title": "Python",
"extname": ".py",
"default": "python3",
"cli": "python3 %s",
"clients": [
{
"key": "python3",
Expand Down
25 changes: 0 additions & 25 deletions __tests__/__fixtures__/cli.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"number":1,"string":"f\"oo","arr":[1,2,3],"nested":{"a":"b"},"arr_mix":[1,"a",{"arr_mix_nested":{}}],"boolean":false}'
body: JSON.stringify({
number: 1,
string: 'f"oo',
arr: [1, 2, 3],
nested: {a: 'b'},
arr_mix: [1, 'a', {arr_mix_nested: {}}],
boolean: false
})
};

fetch('https://httpbin.org/anything', options)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"foo":"bar"}'
body: JSON.stringify({foo: 'bar'})
};

fetch('https://httpbin.org/anything', options)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const options = {
method: 'POST',
headers: {'content-type': 'application/json'},
body: '{"foo":null}'
body: JSON.stringify({foo: null})
};

fetch('https://httpbin.org/anything', options)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
var axios = require("axios").default;
const axios = require("axios").default;
const { URLSearchParams } = require('url');
const encodedParams = new URLSearchParams();

var options = {
encodedParams.set('foo', 'bar');
encodedParams.set('hello', 'world');

const options = {
method: 'POST',
url: 'https://httpbin.org/anything',
headers: {'content-type': 'application/x-www-form-urlencoded'},
data: {foo: 'bar', hello: 'world'}
data: encodedParams
};

axios.request(options).then(function (response) {
Expand Down
4 changes: 2 additions & 2 deletions __tests__/__fixtures__/output/node/axios/application-json.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var axios = require("axios").default;
const axios = require("axios").default;

var options = {
const options = {
method: 'POST',
url: 'https://httpbin.org/anything',
headers: {'content-type': 'application/json'},
Expand Down
4 changes: 2 additions & 2 deletions __tests__/__fixtures__/output/node/axios/cookies.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var axios = require("axios").default;
const axios = require("axios").default;

var options = {
const options = {
method: 'GET',
url: 'https://httpbin.org/cookies',
headers: {cookie: 'foo=bar; bar=baz'}
Expand Down
4 changes: 2 additions & 2 deletions __tests__/__fixtures__/output/node/axios/custom-method.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var axios = require("axios").default;
const axios = require("axios").default;

var options = {method: 'PROPFIND', url: 'https://httpbin.org/anything'};
const options = {method: 'PROPFIND', url: 'https://httpbin.org/anything'};

axios.request(options).then(function (response) {
console.log(response.data);
Expand Down
13 changes: 8 additions & 5 deletions __tests__/__fixtures__/output/node/axios/full.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
var axios = require("axios").default;
const axios = require("axios").default;
const { URLSearchParams } = require('url');
const encodedParams = new URLSearchParams();

var options = {
encodedParams.set('foo', 'bar');

const options = {
method: 'POST',
url: 'https://httpbin.org/anything',
params: {foo: ['bar', 'baz'], baz: 'abc', key: 'value'},
url: 'https://httpbin.org/anything?foo=bar&foo=baz&baz=abc&key=value',
headers: {
cookie: 'foo=bar; bar=baz',
accept: 'application/json',
'content-type': 'application/x-www-form-urlencoded'
},
data: {foo: 'bar'}
data: encodedParams
};

axios.request(options).then(function (response) {
Expand Down
4 changes: 2 additions & 2 deletions __tests__/__fixtures__/output/node/axios/headers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var axios = require("axios").default;
const axios = require("axios").default;

var options = {
const options = {
method: 'GET',
url: 'https://httpbin.org/headers',
headers: {accept: 'text/json', 'x-foo': 'Bar'}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var axios = require("axios").default;
const axios = require("axios").default;

var options = {method: 'GET', url: 'http://httpbin.org/anything'};
const options = {method: 'GET', url: 'http://httpbin.org/anything'};

axios.request(options).then(function (response) {
console.log(response.data);
Expand Down
4 changes: 2 additions & 2 deletions __tests__/__fixtures__/output/node/axios/jsonObj-multiline.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var axios = require("axios").default;
const axios = require("axios").default;

var options = {
const options = {
method: 'POST',
url: 'https://httpbin.org/anything',
headers: {'content-type': 'application/json'},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var axios = require("axios").default;
const axios = require("axios").default;

var options = {
const options = {
method: 'POST',
url: 'https://httpbin.org/anything',
headers: {'content-type': 'application/json'},
Expand Down
4 changes: 2 additions & 2 deletions __tests__/__fixtures__/output/node/axios/multipart-data.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var axios = require("axios").default;
const axios = require("axios").default;

var options = {
const options = {
method: 'POST',
url: 'https://httpbin.org/anything',
headers: {'content-type': 'multipart/form-data; boundary=---011000010111000001101001'},
Expand Down
4 changes: 2 additions & 2 deletions __tests__/__fixtures__/output/node/axios/multipart-file.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var axios = require("axios").default;
const axios = require("axios").default;

var options = {
const options = {
method: 'POST',
url: 'https://httpbin.org/anything',
headers: {'content-type': 'multipart/form-data; boundary=---011000010111000001101001'},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var axios = require("axios").default;
const axios = require("axios").default;

var options = {
const options = {
method: 'POST',
url: 'https://httpbin.org/anything',
headers: {'Content-Type': 'multipart/form-data; boundary=---011000010111000001101001'},
Expand Down
7 changes: 3 additions & 4 deletions __tests__/__fixtures__/output/node/axios/nested.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
var axios = require("axios").default;
const axios = require("axios").default;

var options = {
const options = {
method: 'GET',
url: 'https://httpbin.org/anything',
params: {'foo[bar]': 'baz,zap', fiz: 'buz', key: 'value'}
url: 'https://httpbin.org/anything?foo%5Bbar%5D=baz%2Czap&fiz=buz&key=value'
};

axios.request(options).then(function (response) {
Expand Down
10 changes: 3 additions & 7 deletions __tests__/__fixtures__/output/node/axios/query-encoded.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
var axios = require("axios").default;
const axios = require("axios").default;

var options = {
const options = {
method: 'GET',
url: 'https://httpbin.org/anything',
params: {
startTime: '2019-06-13T19%3A08%3A25.455Z',
endTime: '2015-09-15T14%3A00%3A12-04%3A00'
}
url: 'https://httpbin.org/anything?startTime=2019-06-13T19%3A08%3A25.455Z&endTime=2015-09-15T14%3A00%3A12-04%3A00'
};

axios.request(options).then(function (response) {
Expand Down
7 changes: 3 additions & 4 deletions __tests__/__fixtures__/output/node/axios/query.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
var axios = require("axios").default;
const axios = require("axios").default;

var options = {
const options = {
method: 'GET',
url: 'https://httpbin.org/anything',
params: {foo: ['bar', 'baz'], baz: 'abc', key: 'value'}
url: 'https://httpbin.org/anything?foo=bar&foo=baz&baz=abc&key=value'
};

axios.request(options).then(function (response) {
Expand Down
4 changes: 2 additions & 2 deletions __tests__/__fixtures__/output/node/axios/short.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var axios = require("axios").default;
const axios = require("axios").default;

var options = {method: 'GET', url: 'https://httpbin.org/anything'};
const options = {method: 'GET', url: 'https://httpbin.org/anything'};

axios.request(options).then(function (response) {
console.log(response.data);
Expand Down
Loading