Skip to content

Commit da21021

Browse files
chore: update lib/defaults.js to lib/defaults/index.js (#283)
Co-authored-by: Jay <[email protected]>
1 parent 6f6e19c commit da21021

16 files changed

+16
-16
lines changed

posts/ar/config_defaults.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
3232

3333
### Config order of precedence
3434

35-
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/v1.x/lib/defaults.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.
35+
Config will be merged with an order of precedence. The order is library defaults found in [lib/defaults/index.js](https://github.com/axios/axios/blob/v1.x/lib/defaults/index.js), 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.
3636

3737
```js
3838
// Create an instance using the config defaults provided by the library

posts/de/config_defaults.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
3232

3333
### Konfigurationsreihenfolge
3434

35-
Konfigurationswerte werden mit folgender Reihenfolge zusammengefügt: Zuerst die Standardwerte des Moduls ([`lib/defaults.js`](https://github.com/axios/axios/blob/v1.x/lib/defaults.js#L28)), dann die der Instanz und am Ende die der Anfrage. Jedes Element in der Reihenfolge überschreibt seinen Vorgänger. Hier sehen Sie ein Beispiel:
35+
Konfigurationswerte werden mit folgender Reihenfolge zusammengefügt: Zuerst die Standardwerte des Moduls ([`lib/defaults/index.js`](https://github.com/axios/axios/blob/v1.x/lib/defaults/index.js)), dann die der Instanz und am Ende die der Anfrage. Jedes Element in der Reihenfolge überschreibt seinen Vorgänger. Hier sehen Sie ein Beispiel:
3636

3737
```js
3838
// Eine Instanz mit den Standartwerten des moduls

posts/en/config_defaults.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
3232

3333
### Config order of precedence
3434

35-
Config will be merged with an order of precedence. The order is library defaults found in [lib/defaults/index.js](https://github.com/axios/axios/blob/649d739288c8e2c55829ac60e2345a0f3439c730/lib/defaults/index.js#L59), 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.
35+
Config will be merged with an order of precedence. The order is library defaults found in [lib/defaults/index.js](https://github.com/axios/axios/blob/v1.x/lib/defaults/index.js), 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.
3636

3737
```js
3838
// Create an instance using the config defaults provided by the library

posts/es/config_defaults.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
3232

3333
### Configurar orden de precedencia
3434

35-
La configuración será combinada en orden de precedencia. El orden es: valores predeterminados de la biblioteca que se encuentran en [lib/defaults.js](https://github.com/axios/axios/blob/v1.x/lib/defaults.js#L28), luego la propiedad `defaults` de la instancia, y finalmente el argumento `config` de la petición. Este último tendrá prioridad sobre el primero. Aquí hay un ejemplo.
35+
La configuración será combinada en orden de precedencia. El orden es: valores predeterminados de la biblioteca que se encuentran en [lib/defaults/index.js](https://github.com/axios/axios/blob/v1.x/lib/defaults/index.js), luego la propiedad `defaults` de la instancia, y finalmente el argumento `config` de la petición. Este último tendrá prioridad sobre el primero. Aquí hay un ejemplo.
3636

3737
```js
3838
// Crear una instancia usando la configuración por defecto proveída por la librería

posts/fa/config_defaults.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
3232

3333
### پیکربندی ترتیب اولویت ها
3434

35-
پیکربندی با ترتیب اولویت ها ادغام می شود. این ترتیب ها از این کتابخانه آورده شده اند: [lib/defaults.js](https://github.com/axios/axios/blob/v1.x/lib/defaults.js#L28), در مثال زیر سپس ویژگی "defaults" از نمونه، و در آخر پارامتر ورودی "config" مقدار دهی شده اند. پارامتر دومی اولویت بیشتری دارد.
35+
پیکربندی با ترتیب اولویت ها ادغام می شود. این ترتیب ها از این کتابخانه آورده شده اند: [lib/defaults/index.js](https://github.com/axios/axios/blob/v1.x/lib/defaults/index.js), در مثال زیر سپس ویژگی "defaults" از نمونه، و در آخر پارامتر ورودی "config" مقدار دهی شده اند. پارامتر دومی اولویت بیشتری دارد.
3636

3737
```js
3838
// با استفاده از تنظیمات پیش فرض پیکربندی ارائه شده توسط کتابخانه ، یک نمونه ایجاد کنید

posts/fr/config_defaults.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
3030

3131
### Ordre de priorité de la configuration
3232

33-
Les différentes configurations sont combinées dans un certain ordre. Cet ordre est le suivant : d’abord les valeurs par défaut de la librairie que vous pouvez retrouver dans [lib/defaults.js](https://github.com/axios/axios/blob/v1.x/lib/defaults.js), puis la propriété `defaults` de l’instance, et enfin l’argument `config` de la requête. Chaque nouvelle valeur a la priorité par rapport à ce qui était défini précédemment. Voici un exemple.
33+
Les différentes configurations sont combinées dans un certain ordre. Cet ordre est le suivant : d’abord les valeurs par défaut de la librairie que vous pouvez retrouver dans [lib/defaults/index.js](https://github.com/axios/axios/blob/v1.x/lib/defaults/index.js), puis la propriété `defaults` de l’instance, et enfin l’argument `config` de la requête. Chaque nouvelle valeur a la priorité par rapport à ce qui était défini précédemment. Voici un exemple.
3434

3535
```js
3636
// Création d’une instance en utilisant la configuration par défaut de la

posts/ja/config_defaults.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
3232

3333
### 設定の優先順位
3434

35-
設定は、優先順位をつけてマージされます。その順番は [lib/defaults.js](https://github.com/axios/axios/blob/v1.x/lib/defaults.js#L28) にあるライブラリのデフォルト、そしてインスタンスの `defaults` プロパティ、最後にリクエストの `config` 引数の順になります。後者が前者よりも優先されます。以下はその例です。
35+
設定は、優先順位をつけてマージされます。その順番は [lib/defaults/index.js](https://github.com/axios/axios/blob/v1.x/lib/defaults/index.js) にあるライブラリのデフォルト、そしてインスタンスの `defaults` プロパティ、最後にリクエストの `config` 引数の順になります。後者が前者よりも優先されます。以下はその例です。
3636

3737
```js
3838
// ライブラリが提供するデフォルトの設定を使用してインスタンスを作成します。

posts/kr/config_defaults.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
3232

3333
### Config 우선 순위
3434

35-
Config는 우선 순위에 따라 병합됩니다. [lib/defaults.js](https://github.com/axios/axios/blob/v1.x/lib/defaults.js#L28) 라이브러리에서의 기본값, 인스턴스의 `defaults` 속성, 요청의 `config` 인자를 순서대로 찾습니다. 후자가 전자보다 우선순위가 높습니다. 다음은 예제입니다.
35+
Config는 우선 순위에 따라 병합됩니다. [lib/defaults/index.js](https://github.com/axios/axios/blob/v1.x/lib/defaults/index.js) 라이브러리에서의 기본값, 인스턴스의 `defaults` 속성, 요청의 `config` 인자를 순서대로 찾습니다. 후자가 전자보다 우선순위가 높습니다. 다음은 예제입니다.
3636

3737
```js
3838
// 라이브러리에서 제공하는 config 기본값을 사용하여 인스턴스 만들기

posts/ku/config_defaults.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
3333

3434
### ڕیزبەندی پێشینەیی ڕێکخستن
3535

36-
ڕێکخستن یەکئەخرێ بەپێی ڕیزبەندی پێشەکی. ڕیزبەندییەکە بنەڕەتەکانی کتێبخانەکە پێش ئەخات کە دەدۆزرێتەوە لە [lib/defaults.js](https://github.com/axios/axios/blob/v1.x/lib/defaults.js#L28)، پاشان تایبەتمەندی `defaults` لەسەر نموونەکە، وە لە کۆتاییدا پاڕامیتەر `config` کە بۆ داواکارییەکە ئەنێردرێت. ئەوەی دواتر دێت ڕیزبەندییەکەی پێشدەکەوێت بەسەر ئەوەی کە لە پێشتردا هاتووە. ئەمە نموونەیەکە:
36+
ڕێکخستن یەکئەخرێ بەپێی ڕیزبەندی پێشەکی. ڕیزبەندییەکە بنەڕەتەکانی کتێبخانەکە پێش ئەخات کە دەدۆزرێتەوە لە [lib/defaults/index.js](https://github.com/axios/axios/blob/v1.x/lib/defaults/index.js)، پاشان تایبەتمەندی `defaults` لەسەر نموونەکە، وە لە کۆتاییدا پاڕامیتەر `config` کە بۆ داواکارییەکە ئەنێردرێت. ئەوەی دواتر دێت ڕیزبەندییەکەی پێشدەکەوێت بەسەر ئەوەی کە لە پێشتردا هاتووە. ئەمە نموونەیەکە:
3737

3838
```js
3939
// نموونەیەک دروست بکە بە ڕێکخستنە بنەڕەتییەکان کە کتێبخانەکە بەردەستی کردوون

posts/ptBR/config_defaults.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
3232

3333
### Ordem de precedência
3434

35-
As configurações serão mescladas seguindo a ordem de precedência. A ordem é os padrões da biblioteca encontrados em [lib/defaults.js](https://github.com/axios/axios/blob/v1.x/lib/defaults.js#L28), depois a propriedade `defaults` da instância, e finalmente o argumento `config` da requisição. Os últimos terão precedência sobre os primeiros. Aqui está um exemplo.
35+
As configurações serão mescladas seguindo a ordem de precedência. A ordem é os padrões da biblioteca encontrados em [lib/defaults/index.js](https://github.com/axios/axios/blob/v1.x/lib/defaults/index.js), depois a propriedade `defaults` da instância, e finalmente o argumento `config` da requisição. Os últimos terão precedência sobre os primeiros. Aqui está um exemplo.
3636

3737
```js
3838
// Cria uma instância usando os padrões de configuração fornecidos pela biblioteca

0 commit comments

Comments
 (0)