mirror of
https://github.com/tenrok/axios.git
synced 2026-06-08 17:22:34 +03:00
docs: changed href links from master to main (#4882)
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
|
||||
Please read and follow the instructions before submitting an issue:
|
||||
|
||||
- Read all our documentation, especially the [README](https://github.com/axios/axios/blob/master/README.md). It may contain information that helps you solve your issue.
|
||||
- Read all our documentation, especially the [README](https://github.com/axios/axios/blob/main/README.md). It may contain information that helps you solve your issue.
|
||||
- Ensure your issue isn't already [reported](https://github.com/axios/axios/issues?utf8=%E2%9C%93&q=is%3Aissue).
|
||||
- If you aren't sure that the issue is caused by axios or you just need help, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/axios) or [our chat](https://gitter.im/mzabriskie/axios).
|
||||
- If you're reporting a bug, ensure it isn't already fixed in the latest axios version.
|
||||
- If you need a new feature there's a chance it's already implemented in a [library](https://github.com/axios/axios/blob/master/ECOSYSTEM.md) or you can implement it using [interceptors](https://github.com/axios/axios#interceptors).
|
||||
- If you need a new feature there's a chance it's already implemented in a [library](https://github.com/axios/axios/blob/main/ECOSYSTEM.md) or you can implement it using [interceptors](https://github.com/axios/axios#interceptors).
|
||||
- Don't remove any title of the issue template, or it will be treated as invalid by the bot.
|
||||
|
||||
**⚠️👆 Delete the instructions before submitting the issue 👆⚠️**
|
||||
|
||||
@@ -11,7 +11,7 @@ assignees: ''
|
||||
|
||||
Please read and follow the instructions before submitting an issue:
|
||||
|
||||
- Read all our documentation, especially the [README](https://github.com/axios/axios/blob/master/README.md). It may contain information that helps you solve your issue.
|
||||
- Read all our documentation, especially the [README](https://github.com/axios/axios/blob/main/README.md). It may contain information that helps you solve your issue.
|
||||
- Ensure your issue isn't already [reported](https://github.com/axios/axios/issues?utf8=%E2%9C%93&q=is%3Aissue).
|
||||
- If you aren't sure that the issue is caused by Axios or you just need help, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/axios) or [our chat](https://gitter.im/mzabriskie/axios).
|
||||
- If you're reporting a bug, ensure it isn't already fixed in the latest Axios version.
|
||||
|
||||
@@ -11,7 +11,7 @@ assignees: ''
|
||||
|
||||
Please read and follow the instructions before submitting an issue:
|
||||
|
||||
- Read all our documentation, especially the [README](https://github.com/axios/axios/blob/master/README.md). It may contain information that helps you solve your issue.
|
||||
- Read all our documentation, especially the [README](https://github.com/axios/axios/blob/main/README.md). It may contain information that helps you solve your issue.
|
||||
- Ensure your issue isn't already [reported](https://github.com/axios/axios/issues?utf8=%E2%9C%93&q=is%3Aissue).
|
||||
- If you aren't sure that the issue is caused by Axios or you just need help, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/axios) or [our chat](https://gitter.im/mzabriskie/axios).
|
||||
- If you're reporting a bug, ensure it isn't already fixed in the latest Axios version.
|
||||
|
||||
@@ -11,7 +11,7 @@ assignees: ''
|
||||
|
||||
Please read and follow the instructions before submitting an issue:
|
||||
|
||||
- Read all our documentation, especially the [README](https://github.com/axios/axios/blob/master/README.md). It may contain information that helps you solve your issue.
|
||||
- Read all our documentation, especially the [README](https://github.com/axios/axios/blob/main/README.md). It may contain information that helps you solve your issue.
|
||||
- Ensure your issue isn't already [reported](https://github.com/axios/axios/issues?utf8=%E2%9C%93&q=is%3Aissue).
|
||||
- If you aren't sure that the issue is caused by Axios or you just need help, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/axios) or [our chat](https://gitter.im/mzabriskie/axios).
|
||||
- If you're reporting a bug, ensure it isn't already fixed in the latest Axios version.
|
||||
|
||||
@@ -6,7 +6,7 @@ Please read and follow the instructions before creating and submitting a pull re
|
||||
|
||||
- Create an issue explaining the feature. It could save you some effort in case we don't consider it should be included in axios.
|
||||
- If you're fixing a bug, try to commit the failing test/s and the code fixing it in different commits.
|
||||
- Ensure you're following our [contributing guide](https://github.com/axios/axios/blob/master/CONTRIBUTING.md).
|
||||
- Ensure you're following our [contributing guide](https://github.com/axios/axios/blob/main/CONTRIBUTING.md).
|
||||
|
||||
**⚠️👆 Delete the instructions before submitting the pull request 👆⚠️**
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
As a collaborator, you will be involved with axios with some administrative responsibilities. This guide will help you understand your role and the responsibilities that come with being a collaborator.
|
||||
|
||||
1. __Adhere to and help enforce the Code of Conduct.__ It is expected that you have read the [code of conduct](https://github.com/axios/axios/blob/master/CODE_OF_CONDUCT.md) and that you agree to live by it. This community should be friendly and welcoming.
|
||||
1. __Adhere to and help enforce the Code of Conduct.__ It is expected that you have read the [code of conduct](https://github.com/axios/axios/blob/main/CODE_OF_CONDUCT.md) and that you agree to live by it. This community should be friendly and welcoming.
|
||||
|
||||
1. __Triage issues.__ As a collaborator, you may help sort through the issues that are reported. Issues vary from bugs, regressions, feature requests, questions, etc. Apply the appropriate label(s) and respond as needed. If it is a legitimate request, please address it, otherwise feel free to close the issue and include a comment with a suggestion on where to find support. If an issue has been inactive for more than a week (i.e., the owner of the issue hasn’t responded to you), close the issue with a note indicating stale issues are closed; it can always be reopened if needed. In the case of issues that require a code change, encourage the owner to submit a PR. For less complex code changes, add a very simple and detailed checklist, apply the “first-timers-only” label, and encourage a newcomer to open source to get involved.
|
||||
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
# Contributing
|
||||
|
||||
We are open to, and grateful for, any contributions made by the community. By contributing to axios, you agree to abide by the [code of conduct](https://github.com/axios/axios/blob/master/CODE_OF_CONDUCT.md).
|
||||
We are open to, and grateful for, any contributions made by the community. By contributing to axios, you agree to abide by the [code of conduct](https://github.com/axios/axios/blob/main/CODE_OF_CONDUCT.md).
|
||||
|
||||
## Code Style
|
||||
|
||||
@@ -30,7 +30,7 @@ Please don't include changes to `dist/` in your pull request. This should only b
|
||||
|
||||
## Releasing
|
||||
|
||||
Releasing a new version is mostly automated. For now the [CHANGELOG](https://github.com/axios/axios/blob/master/CHANGELOG.md) requires being updated manually. Once this has been done run the commands below. Versions should follow [semantic versioning](http://semver.org/).
|
||||
Releasing a new version is mostly automated. For now the [CHANGELOG](https://github.com/axios/axios/blob/main/CHANGELOG.md) requires being updated manually. Once this has been done run the commands below. Versions should follow [semantic versioning](http://semver.org/).
|
||||
|
||||
- `npm version <newversion> -m "Releasing %s"`
|
||||
- `npm publish`
|
||||
|
||||
@@ -598,7 +598,7 @@ instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
|
||||
|
||||
### Config order of precedence
|
||||
|
||||
Config will be merged with an order of precedence. The order is library defaults found in [lib/defaults.js](https://github.com/axios/axios/blob/master/lib/defaults/index.js#L28), then `defaults` property of the instance, and finally `config` argument for the request. The latter will take precedence over the former. Here's an example.
|
||||
Config will be merged with an order of precedence. The order is library defaults found in [lib/defaults.js](https://github.com/axios/axios/blob/main/lib/defaults/index.js#L28), then `defaults` property of the instance, and finally `config` argument for the request. The latter will take precedence over the former. Here's an example.
|
||||
|
||||
```js
|
||||
// Create an instance using the config defaults provided by the library
|
||||
@@ -1159,16 +1159,16 @@ try {
|
||||
|
||||
You can use Gitpod, an online IDE(which is free for Open Source) for contributing or running the examples online.
|
||||
|
||||
[](https://gitpod.io/#https://github.com/axios/axios/blob/master/examples/server.js)
|
||||
[](https://gitpod.io/#https://github.com/axios/axios/blob/main/examples/server.js)
|
||||
|
||||
|
||||
## Resources
|
||||
|
||||
* [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
|
||||
* [Upgrade Guide](https://github.com/axios/axios/blob/master/UPGRADE_GUIDE.md)
|
||||
* [Ecosystem](https://github.com/axios/axios/blob/master/ECOSYSTEM.md)
|
||||
* [Contributing Guide](https://github.com/axios/axios/blob/master/CONTRIBUTING.md)
|
||||
* [Code of Conduct](https://github.com/axios/axios/blob/master/CODE_OF_CONDUCT.md)
|
||||
* [Changelog](https://github.com/axios/axios/blob/main/CHANGELOG.md)
|
||||
* [Upgrade Guide](https://github.com/axios/axios/blob/main/UPGRADE_GUIDE.md)
|
||||
* [Ecosystem](https://github.com/axios/axios/blob/main/ECOSYSTEM.md)
|
||||
* [Contributing Guide](https://github.com/axios/axios/blob/main/CONTRIBUTING.md)
|
||||
* [Code of Conduct](https://github.com/axios/axios/blob/main/CODE_OF_CONDUCT.md)
|
||||
|
||||
## Credits
|
||||
|
||||
|
||||
+1
-1
@@ -142,7 +142,7 @@ This will polyfill the global environment, and only needs to be done once.
|
||||
|
||||
### `axios.success`/`axios.error`
|
||||
|
||||
The `success`, and `error` aliases were deprecated in [0.4.0](https://github.com/axios/axios/blob/master/CHANGELOG.md#040-oct-03-2014). As of this release they have been removed entirely. Instead please use `axios.then`, and `axios.catch` respectively.
|
||||
The `success`, and `error` aliases were deprecated in [0.4.0](https://github.com/axios/axios/blob/main/CHANGELOG.md#040-oct-03-2014). As of this release they have been removed entirely. Instead please use `axios.then`, and `axios.catch` respectively.
|
||||
|
||||
```js
|
||||
axios.get('some/url')
|
||||
|
||||
Reference in New Issue
Block a user