2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-23 20:40:40 +03:00

doc: update deprecated var usage in documentation examples (#7246)

* test(http): fix HTTPS protocol test by using local HTTPS server instead of external request

* docs: update var usage in documentation examples

* docs: updated var to const

---------

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
SANDESH LENDVE
2025-12-30 16:46:52 +05:30
committed by GitHub
parent d6bbb3db86
commit 46db3316ac
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1104,7 +1104,7 @@ The server will handle it as:
If your backend body-parser (like `body-parser` of `express.js`) supports nested objects decoding, you will get the same object on the server-side automatically If your backend body-parser (like `body-parser` of `express.js`) supports nested objects decoding, you will get the same object on the server-side automatically
```js ```js
var app = express(); const app = express();
app.use(bodyParser.urlencoded({ extended: true })); // support encoded bodies app.use(bodyParser.urlencoded({ extended: true })); // support encoded bodies
+1 -1
View File
@@ -7,7 +7,7 @@
* *
* ```js * ```js
* function f(x, y, z) {} * function f(x, y, z) {}
* var args = [1, 2, 3]; * const args = [1, 2, 3];
* f.apply(null, args); * f.apply(null, args);
* ``` * ```
* *
+1 -1
View File
@@ -333,7 +333,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
* Example: * Example:
* *
* ```js * ```js
* var result = merge({foo: 123}, {foo: 456}); * const result = merge({foo: 123}, {foo: 456});
* console.log(result.foo); // outputs 456 * console.log(result.foo); // outputs 456
* ``` * ```
* *