Граф коммитов

185 Коммитов

Автор SHA1 Сообщение Дата
Marcin Strzyz 06d0fc1eae
Added handling for when we have network failures in the retry mechanism (#223)
* Added handling for when we have network failures in the retry mechanism

* forgot ";'

* Fixed to be proper version

* .
2020-06-30 16:05:39 -04:00
Eric Hayes f8d4424872
Support adding query params for DELETE. (#214) 2020-05-11 13:03:02 -04:00
Danny McCormick 046b96633b
Fix security warnings (#210)
* Fix security warnings

* Dont test on node 4

* less aggressive fixes
2020-05-07 10:14:05 -04:00
Danny McCormick 56a99c97b7
Add stale workflow (#209) 2020-04-02 11:35:31 -04:00
Yahav Itzhak f9ff755631
Disable authentications on redirections (#207)
* Disable authentications on redirections

* Add allowCrossOriginAuthentication boolean
2020-04-01 09:08:10 -04:00
Danny McCormick e4b9bf2a73 Bump package version 2020-03-30 16:56:35 -04:00
Nitin Issac Joy da95c07249
Adding and checking for supported encodings in util function to avoid exception (#205)
* Adding supported encodings

* Adding unit tests

* Undoing package-lock.json
2020-03-30 16:53:17 -04:00
Anthony DiSanti 5ce8cd7ae3
Makes RestClient._processResponse protected (#200)
* Changes RestClient._processResponse from private to protected
* Renames _processRequest to processRequest
2020-02-28 09:36:53 -05:00
Danny McCormick 7802a39e85
Deprecate ntlm (#196)
* Deprecate ntlm

* Update ntlm.ts
2020-02-27 09:56:06 -05:00
Jalaj Minda cbb3089ccd
Updated tunnel package version to 0.0.6 (#195)
* Updated tunnel package version to 0.0.6

* Resolving PR comments: Update the patch verison to 1.7.2

Co-authored-by: Stephen Franceschelli <stephenmichaelf@gmail.com>
2020-02-07 10:54:25 -05:00
Hamza Hejja 6f82dd9ff8
fix: Add if-else block before Resolving the Promise in HttpClient's readBody() function (#197)
* fix: add if-else block before resolving the Promise in readbody() function

* fix tests
2020-02-06 11:13:06 -06:00
Hamza Hejja de7bcee052 Write nock tests for all handlers and change codebase for NTLM handler (#194)
* Add nock test for HTTP GET with bearer token auth handler

* Change codebase of ntlm handler to use Node-SMB opensource module for node-NTLM

Add nock handler for NTLM Authentication Handler to ensure working functionality

nit: variable naming

move auth handlers tests to a seperate file under tests/units

added auth handlers seperate test file under tests/units

nit: remove unused variables and add comments for NTLM handler test example

restore SamDecrock node-http-ntlm module in-case alongside the newly used module

* nit: fix DeprecationWarning: Buffer() by using Buffer.from(string, encoding)

* nit: newline at EOF

* try REMOVING destructuring assignment to fix failing test

* add assertions messages for nock tests

* nit: code style/enhancements

* nit: use literal-string in favor of string concat

* remove old library used for NTLM Auth and move copyright notice/acknowledgment to LICENSE

* nit: wrap decoding server nonce with try-catch for error handling

* nit: code style/enhancements
2020-01-10 11:29:35 -05:00
Danny McCormick 2abd0be848
UserAgent should allow null/undefined (#193) 2019-12-30 11:19:47 -05:00
Hamza Hejja 7883538afb [fix]: fix TypeError on socket.end() and ensure proper error message on timeouts (#191)
* fix TypeError on socket and ensure return of proper error message on request timeout

* use delayConnection() instead of socketDelay

* Drop added unit-test because .socketDelay() problems

* restore httptests back to what it was and remove unused imports
2019-12-30 11:14:52 -05:00
Masahiro Saito 8a19b1c824 chore: remove useless variable (#192) 2019-12-30 09:25:57 -05:00
damccorm 5ff3aea9ec Qs is dependency, not devdep 2019-12-19 14:43:40 -05:00
Danny McCormick e538e494bb
Bump version (#190) 2019-12-19 14:31:22 -05:00
Hamza Hejja 1c1b04ba4a Integrate decoding gzip encoded response of Http Requests (#189)
* Integrate ability to decode/process gzip encoded response of Http Requests

* code style: enforce Buffer-type chunks to Buffer.concat() compatibility

* code style: drop type of inner chunk const

* Code Refactor with Buffer-type chunks enforcement

* docs: added helper comments for Gzipped response processing logic

* code style: add TS types

* use utf-8 as default value for charset when decompressing gzipped content if charset not passed

* Drop using default value fo charset in function to decode gzipped content

* nit: optional charset which defaults to utf-8 if not passed to decoding gzip function

* nit: newline at EOF

* nit: sort-out readBody() function to a sole return statement for better readability

* docs: add helper comments for using regex to match and obtain charset
2019-12-19 10:29:21 -05:00
dependabot[bot] e9c0dbf8f0 Bump lodash from 4.17.11 to 4.17.15 in /samples (#186)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.15.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.15)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-18 12:10:22 -05:00
dependabot[bot] d2698d4918 Bump mixin-deep from 1.3.1 to 1.3.2 in /samples (#185)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-18 12:00:38 -05:00
dependabot[bot] 76aea6850f Bump handlebars from 4.0.12 to 4.5.3 in /samples (#184)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.0.12 to 4.5.3.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.0.12...v4.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-18 12:00:29 -05:00
dependabot[bot] 18c4c6b4e8 Bump lodash.template from 4.4.0 to 4.5.0 (#183)
Bumps [lodash.template](https://github.com/lodash/lodash) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.4.0...4.5.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-18 12:00:16 -05:00
dependabot[bot] 91a0c85a00 Bump mixin-deep from 1.3.1 to 1.3.2 (#182)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-18 12:00:08 -05:00
dependabot[bot] 3fd125e6b2 Bump handlebars from 4.0.12 to 4.5.3 (#181)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.0.12 to 4.5.3.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.0.12...v4.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-18 11:59:52 -05:00
dependabot[bot] 04a6489134 Bump lodash.template from 4.4.0 to 4.5.0 in /samples (#187)
Bumps [lodash.template](https://github.com/lodash/lodash) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.4.0...4.5.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-18 11:59:36 -05:00
dependabot[bot] c86950cf76 Bump lodash from 4.17.10 to 4.17.15 (#188)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.10 to 4.17.15.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.10...4.17.15)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-18 11:59:19 -05:00
Hamza Hejja 5f2714d508 Support adding query-parameters in RestClient Requests. (#180)
* Support adding query parameters to GET Rest Requests

* Clarify reason for replacing extra question mark at end of Request url

* Refactor: move Query Params interface to the common interfaces module for extensible usage

* Switch to using qs instead of built-in querystring as it offers more options

* Refactor: getUrl util helper function to receive Query Params object instead of entire Request Options

* Added Rest unit tests to parse Url with passing query parameters
2019-12-18 11:53:40 -05:00
Tommy Petty 9d54fc992c
Merge pull request #160 from BobSilent/fix-default-proxybypasslist
Consider NO_PROXY environment variable for default proxyBypassHosts List
2019-12-06 13:43:31 -05:00
Thomas Champagne 44fb21cc9b Add TooManyRequests (429) http code (#179) 2019-11-18 08:42:00 -05:00
Matt Cooper f44d24e394
Merge pull request #176 from microsoft/secure
note about security issues
2019-10-24 09:22:05 -04:00
Matt Cooper 9ea242a659
note about security issues 2019-10-24 09:00:54 -04:00
Bryan MacFarlane 3f6c54dea0
bump version and failing test (#175) 2019-10-14 20:01:45 -04:00
Jonathan Leitschuh f71b3c2a2d Allowing redirect downgrade from HTTPS to HTTP should be optional (#173)
* Forbid redirect from HTTPS to HTTP by default

Closes #165

* Apply suggestions from code review
2019-10-11 15:25:24 -04:00
sergeykochanov 4026f80aae Fix data corruption - 2nd attempt (#170)
* Fix data corruption

See #167

* add toString and unicode test

* fix misprint in test
2019-10-11 15:24:23 -04:00
Bryan MacFarlane b802b81723
Revert "Fix data corruption (#168)" (#169)
This reverts commit 29f524d6e1.
2019-10-04 19:55:44 -04:00
sergeykochanov 29f524d6e1 Fix data corruption (#168)
See #167
2019-10-04 12:09:27 -04:00
Bryan MacFarlane d477695af1 samples hanging workflow 2019-10-04 10:12:21 -04:00
Bryan MacFarlane 16f4339886 validate with node 8,10,12 2019-10-04 10:04:55 -04:00
Bryan MacFarlane 39ba3ea6b5 failing test 2019-10-04 09:59:06 -04:00
Bryan MacFarlane 715a6c8984 workflow change 2019-10-04 09:49:19 -04:00
Bryan MacFarlane 837a714c96 workflow change 2019-10-04 09:48:12 -04:00
Bryan MacFarlane cf4fc0c26c workflow change 2019-10-04 09:46:01 -04:00
Bryan MacFarlane b10283830f workflow change 2019-10-04 09:39:07 -04:00
Bryan MacFarlane bda53f5f52 workflow change 2019-10-04 09:36:15 -04:00
Bryan MacFarlane 3d730951d4 add test workflow 2019-10-04 09:34:03 -04:00
BobSilent 6aaf1c1b93
Merge branch 'master' into fix-default-proxybypasslist 2019-09-20 12:36:01 +02:00
Danny McCormick c99dbbeba1
Allow no user agent to be passed (#156)
* Allow no user agent to be passed

* Bump minor version

* Added tests for changes to support no userAgent (#162)

* Added tests for changes to support no userAgent

* Updated to not expose new public method just for testing

* Fixes from review

* Remove bad merge dependency
2019-09-17 14:27:40 -04:00
Andre Mainka b959d3f868 Consider NO_PROXY environment variable for default proxyBypassHosts List 2019-07-10 00:02:14 +02:00
Danny McCormick db388ca114
Enable web usage without webpack (#153) 2019-06-05 20:27:47 -04:00
Danny McCormick 5eb9c90a50
Add node/npm recommendation in contributing.md 2019-05-08 10:21:24 -04:00