Andrew Stegmaier
2dcf244dab
Remove cookie support.
2023-07-06 14:55:54 -04:00
Daniel Rodríguez
0257ff13d4
using the endpoints without .core
2021-08-18 00:55:22 +00:00
Daniel Rodríguez
e3f3cdb769
added another test
2021-08-14 00:26:53 +00:00
Daniel Rodríguez
26a5d1506c
fixed the related test
2021-08-14 00:19:21 +00:00
Daniel Rodríguez
d1dd132d27
better test
2021-07-29 23:43:08 +00:00
Daniel Rodríguez
5bfb35146f
added a test
2021-07-29 21:24:46 +00:00
Jeremy Meng
ce25202b91
Allow password-less proxySettings
...
It turns out that in some enterprise customer the proxy auth settings include a
username, but not a password: microsoft/AzureStorageExplorer#4430
This change allows password-less auth settings to be passed to the underlying agent.
It's unclear whether it's a real scenario when a proxy auth has a password, but
not username so this PR doesn't consider this scenario.
2021-06-15 00:41:22 +00:00
Martin Granell
2315bfb63c
Copy attributes back post de-serializing array
2021-06-06 16:26:04 +10:00
Paul Faid
c47191b425
Port redirect policy changes from azure-sdk-for-js
2021-05-01 09:08:20 +12:00
Paul Faid
6337dfeef0
redirectPolicy should respect policy.maxRetires
2021-04-07 09:45:57 +12:00
Paul Faid
65b6cec084
RedirectPolicy behaviour respects request.redirectLimit
2021-04-05 13:35:36 +12:00
paulfaid
ef5ce3421f
Merge branch 'master' into master
2021-03-30 17:15:26 +13:00
Jeremy Meng
6ff8cd40b8
Port some proxy enhancements from core-http
...
- NO_PROXY and ALL_PROXY support
- username and password in proxy url string
2021-03-22 22:02:24 +00:00
Paul Faid
786c73043b
Add some unit tests for the redirectLimit and the response changes
2021-03-15 22:19:49 +13:00
deyaaeldeen
a575735d8a
port fix from https://github.com/Azure/azure-sdk-for-js/pull/9245
2021-02-09 19:57:18 +00:00
Jeremy Meng
693c8dd43a
Merge remote-tracking branch 'upstream/master' into throttling-retries
2021-02-03 01:10:17 +00:00
Jeremy Meng
436a2e0438
Minor tweaks
...
- set default retry limit to 3
- increase test time out
2021-02-03 01:06:17 +00:00
Jeremy Meng
a35708407d
Merge remote-tracking branch 'upstream/master' into global-fetch-port-pr9880
2021-02-02 19:40:13 +00:00
Jeremy Meng
5c5e2d73c5
Merge remote-tracking branch 'upstream/master' into port-core-http-pr8803
2021-02-02 18:26:47 +00:00
Jeremy Meng
4208098ab1
Add Prettier and format code ( #415 )
...
* Add prettier and configs
* npm run format
* Fix tslint error
- Prettier broke lines but the // tslint:disable-next-line comments remains in
the old position. They should be before the applicable lines.
- Enforce `SwitchCase` indentation level of 1 to match prettier behavior.
2021-02-01 17:54:34 -08:00
Jeremy Meng
1f5ac124b1
Keep retrying on 429 responses
...
up to a limit in ThrottlingRetryPolicy.
- Remove `_handleResponse` callback that is used for testing. Use `sinon`
instead to verify that `retry()` has been called.
Addresses #394
2021-02-02 01:03:02 +00:00
Jeremy Meng
763f66cda6
Avoid mutating global fetch
...
Porting fix from https://github.com/Azure/azure-sdk-for-js/pull/9880 .
Use import node_fetch from "node-fetch" instead of import "node-fetch".
Resolves #383
2021-01-29 01:47:03 +00:00
Jeremy Meng
38b2115ad8
Fix issue of SystemErrorRetryPolicy not retrying
...
by porting fix from https://github.com/Azure/azure-sdk-for-js/pull/8803
2021-01-28 22:03:08 +00:00
Jose Manuel Heredia Hidalgo
7ca0e990bd
Allow = character in parameter value ( #408 )
...
* Allow = character as parameter value
* Add trigger to PR validation
* Reset PR pipeline
* Fix test
* 2.1.1
* reset package version
2021-01-25 10:45:32 -06:00
Josh Gummersall
7127027130
Add HTTP agent settings and policy
...
This commit introduces support for passing a custom HTTP and/or HTTPS
agent as a `ServiceClientOption` option, a `WebResource` option, or by
using the `agentPolicy` mechanism. This will provide users greater
control over how outbound requests are made when using this library via
Node.
2020-10-02 09:13:13 -07:00
Jose Manuel Heredia Hidalgo
118158b6f9
Make sure parsed body is an array when expecting Sequence ( #385 )
...
* Make sure parsed body is an array when expecting Sequence
* Update lib/serviceClient.ts
Co-Authored-By: Ramya Rao <ramya.rao.a@outlook.com>
* Update changelog and constants
* Add test
* update changelog
* Remove unecessary format changes
Co-authored-by: Ramya Rao <ramya.rao.a@outlook.com>
2020-04-30 16:22:14 -07:00
Sarangan Rajamanickam
c8e6bd165d
Minor change II
2020-04-29 02:09:32 -07:00
Sarangan Rajamanickam
3dfbc7e91a
Minor addition
2020-04-29 02:06:32 -07:00
Sarangan Rajamanickam
9bb98e07b4
Added Test cases
2020-04-29 01:40:28 -07:00
Sarangan Rajamanickam
4feb5c1d8d
Remove trailing space
2020-04-22 11:31:25 -07:00
Sarangan Rajamanickam
a84f5460e5
Merge remote-tracking branch 'origin/master' into Issue4244
2020-04-22 11:29:43 -07:00
Sarangan Rajamanickam
0fe3c7714d
PR Comments
2020-04-15 15:57:56 -07:00
Sarangan Rajamanickam
2114b223c7
Added one more test with parameters with commas
2020-04-15 12:48:10 -07:00
Sarangan Rajamanickam
8f0294a4bb
Code changes to modify encoding step
2020-04-15 12:37:40 -07:00
Jeff Fisher
90053fa355
Widen usage of WebResource to interface
2020-04-14 15:35:46 -07:00
David Wilson
22e6f41a73
Fix defaultHttpClient test that depends on example.com source
2020-01-07 16:11:02 -08:00
Amar Zavery
21541e9c06
updating the structure of defining additionalProperties properties in the mapper, the way it is done in autorest.typescript
2019-07-11 13:43:38 -07:00
Amar Zavery
c50cc0d5f1
- compare model property name and the clientName of the polymorphic discriminator
...
- check explicitly that defaultValue is not undefined
- unskip test
2019-07-10 20:06:22 -07:00
Amar Zavery
cb0c0a5279
serialization updates
2019-07-10 16:44:40 -07:00
Amar Zavery
71e156dd57
updated dependencies and dev dependencies. made modifications based on updated type definitions and modified rollup.config.ts as required by the latest version of node resolve rollup plugin.
2019-07-05 18:07:51 -07:00
Kamil Pajdzik
5f3395fb8d
Update tests to include Pattern constraint
2019-06-25 16:47:13 -07:00
Kamil Pajdzik
7b065ccaab
Add support for Fetch in Node.js environment ( #351 )
...
* Update version
* Add Fetch HTTP client (#342 )
* Add Fetch HTTP client
* Reset version
* Update version
* Fix isNode method to return true in Electron apps
* Update Constants
* Fix incorrect undefined check in Axios client
* Add TSLint check. Fix TSLint errors (#344 )
* Add TSLint check. Fix TSLint errors
* Add type to delay callback
* Update TypeScript
* Remove unnecessary types/xhr-mock package
* Fix missing delay import
* Reformat Fetch client
* Fix wrong union type
* Fix tests
* Normalize the safe-check
* Add script to run tests on dependent projects (#345 )
* Add script to run tests on dependent projects
* Bump the version
* Fix logging statements
* Update constants
* Update Azure Pipelines configuration
* Fix Azure Pipeline job name
* Add gulp build command
* Add npm run local
* Flip order
* Add build step
* Add more logging
* Fix undefined result print
* Remove inheriting stdio
* Change to spawnSync
* Add more logging
* Remove build step
* Change exec to run from JS dev tools
* Add logger-js package
* Add build step back
* Add process.exit
* Add logging
* Change error logging
* Add command printing
* Extract options object
* Add fullOptions parameter
* Change NPM command name
* Remove logging
* Remove npm run test
* Await additional commands
* Add test command to package.json
* Add timeout
* Add test as separate task
* Change foreach to for
* Remove test from package.json command
* Uncomment npm install commands
* Add latest ms-rest-js to npm install
* Add autorest.typescript DevOps task
* Add npm link
* Change link to install
* Remove prepack script
* Change package name to ../..
* Remove rm -rf
* Add build step
* Add git checkout
* Add dependent project directory
* Remove git branch checkout
* Bump the version to 1.8.6
* Add git checkout
* Change branch name
* Add execution directory
* Remove git checkout
* Add tsc --version command
* Remove local ms-rest-js install
* Move .tmp folder
* Change .tmp path creation
* Fix path in Azure DevOps config
* Renable logging
* Add run to build command
* Move scripts back to TypeScript
* Improve logging
* Fixed #347 and #348
* nit fix
* bump version in the constant file.
* Address reiew feedback
* upgrade ci to run node 8, 10, 12 versions. Remove 6.x.
* Reformat mockHttp
* Add Fetch to browser
* Add Firefox Karma configuration
* Switch from isomorphic-fetch to cross-fetch
* Add cross-fetch to rollup configuration
* Remove buffer and streams from webpack test configuration
* Add Firefox karma launcher
* Add FetchMock for browser scenarios
* Extract platform specific code to child classes
* Bump the version
* Add proxy support to fetch client (#350 )
* Remove cross-fetch
* Add proxy support
* Fix stream upload tests
* Extract ProxyAgent
* Bring XHR as default client for browsers
* Address feedback
* Bring back browser mock
* Add type
* Fix pass through mock
* Change import type
* Fix fetch import
* Change fetch reference
* Remove cross fetch from rollup config
* Remote unit.ts
* Add fallback fetch reference
* Fix constants
* Fix fetch bugs
* Upgrade TypeScript
* Remove unnecessary code from mock class
* Remove type
* Change vresion to preview
* Remove Method import
* Fix user agent tests
* Remove Method casting
* Remove Method type
* Disable ms-rest-azure-js installation in CI
* Fix pack order
* Add keep-alive support (#362 )
* Remove remaining axios references
* Update documentation
* Add missing external packages in rollup config
* Add Keep-Alive changelog
* Bump the version
2019-06-24 09:01:20 -07:00
Amar Zavery
d7ed995e6b
bring back changes to the mock http adapter
2019-06-06 17:08:46 -07:00
Amar Zavery
0e1c327a8f
Bumped version of axios to 0.19.0
2019-06-01 18:12:07 -07:00
Kamil Pajdzik
62d85bfeb8
Add TSLint check. Fix TSLint errors ( #344 )
...
* Add TSLint check. Fix TSLint errors
* Add type to delay callback
* Update TypeScript
* Remove unnecessary types/xhr-mock package
* Fix missing delay import
2019-05-07 11:40:22 -07:00
a-hohaze
e7fa52ff13
Fix http over https bug ( #341 )
...
* Fix http over https bug
* Update version
* Fix unit tests
2019-04-25 09:48:03 -07:00
Dan Schulte
7a46155276
Improve tests
2019-02-11 10:13:35 -08:00
Dan Schulte
c71008a095
Add userAgentHeaderName to ServiceClientOptions
2019-02-11 10:06:57 -08:00
Kamil Pajdzik
fafa26180e
Fix including proxy policy in browser ( #328 )
...
* Fix including proxy policy in browser
* Add browser tests
2019-01-30 13:21:26 -08:00
Kamil Pajdzik
c1742fe6a8
Bring Axios interceptors back ( #325 )
...
* Bring Axios interceptors back
* Bump the constant version
2019-01-25 17:28:39 -08:00