From 884f067cc3f00878619ea427eb6ace46ee82128d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 6 Jan 2026 13:05:05 +0000 Subject: [PATCH 1/2] chore(deps): update oxlint monorepo --- package.json | 2 +- pnpm-lock.yaml | 146 ++++++++++++++++++++++++------------------------- 2 files changed, 74 insertions(+), 74 deletions(-) diff --git a/package.json b/package.json index 56f14206..4ccc094e 100644 --- a/package.json +++ b/package.json @@ -101,7 +101,7 @@ "husky": "^9.1.7", "iconv-lite": "^0.6.3", "lint-staged": "^16.2.7", - "oxfmt": "^0.21.0", + "oxfmt": "^0.23.0", "oxlint": "^1.35.0", "oxlint-tsgolint": "^0.10.0", "proxy": "^1.0.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 819cc698..f9e65c41 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -88,11 +88,11 @@ importers: specifier: ^16.2.7 version: 16.2.7 oxfmt: - specifier: ^0.21.0 - version: 0.21.0 + specifier: ^0.23.0 + version: 0.23.0 oxlint: specifier: ^1.35.0 - version: 1.36.0(oxlint-tsgolint@0.10.0) + version: 1.38.0(oxlint-tsgolint@0.10.0) oxlint-tsgolint: specifier: ^0.10.0 version: 0.10.0 @@ -375,43 +375,43 @@ packages: '@loaderkit/resolve@1.0.4': resolution: {integrity: sha512-rJzYKVcV4dxJv+vW6jlvagF8zvGxHJ2+HTr1e2qOejfmGhAApgJHl8Aog4mMszxceTRiKTTbnpgmTO1bEZHV/A==} - '@oxfmt/darwin-arm64@0.21.0': - resolution: {integrity: sha512-defgGcchFCq2F7f5Nr3E4VXYW1sUhBGmIejgcPZ1gSsc8FAeT+vP5cSeGnDv+kcX+OKFDt89C67c31qZ6yZBsQ==} + '@oxfmt/darwin-arm64@0.23.0': + resolution: {integrity: sha512-shGng2EjBspvuqtFtcjcKf0WoZ9QCdL8iLYgdOoKSiSQ9pPyLJ4jQf62yhm4b2PpZNVcV/20gV6d8SyKzg6SZQ==} cpu: [arm64] os: [darwin] - '@oxfmt/darwin-x64@0.21.0': - resolution: {integrity: sha512-rYJinOZRabPF2V3kn0TWX4vcYHV2F+DkGewNP8HZ/OXQ3CEJKP+E7KCnEz/x614g3/S5J7cahr9l5Mr3AEZigA==} + '@oxfmt/darwin-x64@0.23.0': + resolution: {integrity: sha512-DxQ7Hm7B+6JiIkiRU3CSJmM15nTJDDezyaAv+x9NN8BfU0C49O8JuZIFu1Lr9AKEPV+ECIYM2X4HU0xm6IdiMQ==} cpu: [x64] os: [darwin] - '@oxfmt/linux-arm64-gnu@0.21.0': - resolution: {integrity: sha512-ILTv8stX3r2gK+pgSc2alJrbpI4i8zlLXzuuhUsjeEN/Ti//Z38MDi6kTov3pzcaBEnQ/xEMgQyczokp7jpyyQ==} + '@oxfmt/linux-arm64-gnu@0.23.0': + resolution: {integrity: sha512-7qTXPpENi45sEKsaYFit4VRywPVkX+ZJc5JVA17KW1coJ/SLUuRAdLjRipU+QTZsr1TF93HCmGFSlUjB7lmEVQ==} cpu: [arm64] os: [linux] - '@oxfmt/linux-arm64-musl@0.21.0': - resolution: {integrity: sha512-kFZ0vPJzsGjkrwq2MPEpp8TjV7/Znv9kCEwLF+HcFwvfcSt75dWloGmTRRrViH0ACaCM7YBSDUOV8E4nyLvxPA==} + '@oxfmt/linux-arm64-musl@0.23.0': + resolution: {integrity: sha512-qkFXbf+K01B++j69o9mLvvyfhmmL4+qX7hGPA2PRDkE5xxuUTWdqboQQc1FgGI0teUlIYYyxjamq9UztL2A7NA==} cpu: [arm64] os: [linux] - '@oxfmt/linux-x64-gnu@0.21.0': - resolution: {integrity: sha512-VH8ZcS2TkTBE0v9cLxjNGX++vB9Xvx/7VTFrbwHYzY/fYypYTwQ+n1KplUQoU+LrMC0nKqwPWYzvA5/cAfo5zg==} + '@oxfmt/linux-x64-gnu@0.23.0': + resolution: {integrity: sha512-J7Q13Ujyn8IgjHD96urA377GOy8HerxC13OrEyYaM8iwH3gc/EoboK9AKu0bxp9qai4btPFDhnkRnpCwJE9pAw==} cpu: [x64] os: [linux] - '@oxfmt/linux-x64-musl@0.21.0': - resolution: {integrity: sha512-qleaVEFHw/kmbvNj3hjobX1kwbP2/d7SVJzQjyEFULou1v3EZj7jWbblIu7GmDCSspdiEk1j/pZDYH801Dn8QA==} + '@oxfmt/linux-x64-musl@0.23.0': + resolution: {integrity: sha512-3gb25Zk2/y4An8fi399KdpLkDYFTJEB5Nq/sSHmeXG0pZlR/jnKoXEFHsjU+9nqF2wsuZ+tmkoi/swcaGG8+Qg==} cpu: [x64] os: [linux] - '@oxfmt/win32-arm64@0.21.0': - resolution: {integrity: sha512-JLZUo5qEyJfxhoj6KEU/CqI8FQlzIP8rBq7qGTq0kCJ2yZJC9tysBqJYZXvX88ShiNe89/T/H3khodaKGBBNgg==} + '@oxfmt/win32-arm64@0.23.0': + resolution: {integrity: sha512-JKfRP2ENWwRZ73rMZFyChvRi/+oDEW+3obp1XIwecot8gvDHgGZ4nX3hTp4VPiBFL89JORMpWSKzJvjRDucJIw==} cpu: [arm64] os: [win32] - '@oxfmt/win32-x64@0.21.0': - resolution: {integrity: sha512-DYNpbuPzUhTuWUIqDhwSaV1mK+VcknD4ANaEON+/ygaNGriSZ4pRUt1BTRcXfcOF9GZ4BO9udjv31S0bAEsFeQ==} + '@oxfmt/win32-x64@0.23.0': + resolution: {integrity: sha512-vgqtYK1X1n/KexCNQKWXao3hyOnmWuCzk2sQyCSpkLhjSNIDPm7dmnEkvOXhf1t0O5RjCwHpk2VB6Fuaq3GULg==} cpu: [x64] os: [win32] @@ -445,43 +445,43 @@ packages: cpu: [x64] os: [win32] - '@oxlint/darwin-arm64@1.36.0': - resolution: {integrity: sha512-MJkj82GH+nhvWKJhSIM6KlZ8tyGKdogSQXtNdpIyP02r/tTayFJQaAEWayG2Jhsn93kske+nimg5MYFhwO/rlg==} + '@oxlint/darwin-arm64@1.38.0': + resolution: {integrity: sha512-9rN3047QTyA4i73FKikDUBdczRcLtOsIwZ5TsEx5Q7jr5nBjolhYQOFQf9QdhBLdInxw1iX4+lgdMCf1g74zjg==} cpu: [arm64] os: [darwin] - '@oxlint/darwin-x64@1.36.0': - resolution: {integrity: sha512-VvEhfkqj/99dCTqOcfkyFXOSbx4lIy5u2m2GHbK4WCMDySokOcMTNRHGw8fH/WgQ5cDrDMSTYIGQTmnBGi9tiQ==} + '@oxlint/darwin-x64@1.38.0': + resolution: {integrity: sha512-Y1UHW4KOlg5NvyrSn/bVBQP8/LRuid7Pnu+BWGbAVVsFcK0b565YgMSO3Eu9nU3w8ke91dr7NFpUmS+bVkdkbw==} cpu: [x64] os: [darwin] - '@oxlint/linux-arm64-gnu@1.36.0': - resolution: {integrity: sha512-EMx92X5q+hHc3olTuj/kgkx9+yP0p/AVs4yvHbUfzZhBekXNpUWxWvg4hIKmQWn+Ee2j4o80/0ACGO0hDYJ9mg==} + '@oxlint/linux-arm64-gnu@1.38.0': + resolution: {integrity: sha512-ZiVxPZizlXSnAMdkEFWX/mAj7U3bNiku8p6I9UgLrXzgGSSAhFobx8CaFGwVoKyWOd+gQgZ/ogCrunvx2k0CFg==} cpu: [arm64] os: [linux] - '@oxlint/linux-arm64-musl@1.36.0': - resolution: {integrity: sha512-7YCxtrPIctVYLqWrWkk8pahdCxch6PtsaucfMLC7TOlDt4nODhnQd4yzEscKqJ8Gjrw1bF4g+Ngob1gB+Qr9Fw==} + '@oxlint/linux-arm64-musl@1.38.0': + resolution: {integrity: sha512-ELtlCIGZ72A65ATZZHFxHMFrkRtY+DYDCKiNKg6v7u5PdeOFey+OlqRXgXtXlxWjCL+g7nivwI2FPVsWqf05Qw==} cpu: [arm64] os: [linux] - '@oxlint/linux-x64-gnu@1.36.0': - resolution: {integrity: sha512-lnaJVlx5r3NWmoOMesfQXJSf78jHTn8Z+sdAf795Kgteo72+qGC1Uax2SToCJVN2J8PNG3oRV5bLriiCNR2i6Q==} + '@oxlint/linux-x64-gnu@1.38.0': + resolution: {integrity: sha512-E1OcDh30qyng1m0EIlsOuapYkqk5QB6o6IMBjvDKqIoo6IrjlVAasoJfS/CmSH998gXRL3BcAJa6Qg9IxPFZnQ==} cpu: [x64] os: [linux] - '@oxlint/linux-x64-musl@1.36.0': - resolution: {integrity: sha512-AhuEU2Qdl66lSfTGu/Htirq8r/8q2YnZoG3yEXLMQWnPMn7efy8spD/N1NA7kH0Hll+cdfwgQkQqC2G4MS2lPQ==} + '@oxlint/linux-x64-musl@1.38.0': + resolution: {integrity: sha512-4AfpbM/4sQnr6S1dMijEPfsq4stQbN5vJ2jsahSy/QTcvIVbFkgY+RIhrA5UWlC6eb0rD5CdaPQoKGMJGeXpYw==} cpu: [x64] os: [linux] - '@oxlint/win32-arm64@1.36.0': - resolution: {integrity: sha512-GlWCBjUJY2QgvBFuNRkiRJu7K/djLmM0UQKfZV8IN+UXbP/JbjZHWKRdd4LXlQmzoz7M5Hd6p+ElCej8/90FCg==} + '@oxlint/win32-arm64@1.38.0': + resolution: {integrity: sha512-OvUVYdI68OwXh3d1RjH9N/okCxb6PrOGtEtzXyqGA7Gk+IxyZcX0/QCTBwV8FNbSSzDePSSEHOKpoIB+VXdtvg==} cpu: [arm64] os: [win32] - '@oxlint/win32-x64@1.36.0': - resolution: {integrity: sha512-J+Vc00Utcf8p77lZPruQgb0QnQXuKnFogN88kCnOqs2a83I+vTBB8ILr0+L9sTwVRvIDMSC0pLdeQH4svWGFZg==} + '@oxlint/win32-x64@1.38.0': + resolution: {integrity: sha512-7IuZMYiZiOcgg5zHvpJY6jRlEwh8EB/uq7GsoQJO9hANq96TIjyntGByhIjFSsL4asyZmhTEki+MO/u5Fb/WQA==} cpu: [x64] os: [win32] @@ -1463,8 +1463,8 @@ packages: resolution: {integrity: sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==} engines: {node: '>= 0.4'} - oxfmt@0.21.0: - resolution: {integrity: sha512-EXK5pd1kGbI8hp9Ld69oy/ObAoe+gfH3dYHBviKqwSAHNkAHiqxWF1hnrWj5oun1GnQ8bVpqBMMVXJESMx6/+g==} + oxfmt@0.23.0: + resolution: {integrity: sha512-dh4rlNBua93aVf2ZaDecbQxVLMnUUTvDi1K1fdvBdontQeEf6K22Z1KQg5QKl2D9aNFeFph+wOVwcjjYUIO6Mw==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true @@ -1472,8 +1472,8 @@ packages: resolution: {integrity: sha512-LDDSIu5J/4D4gFUuQQIEQpAC6maNEbMg4nC8JL/+Pe0cUDR86dtVZ09E2x5MwCh8f9yfktoaxt5x6UIVyzrajg==} hasBin: true - oxlint@1.36.0: - resolution: {integrity: sha512-IicUdXfXgI8OKrDPnoSjvBfeEF8PkKtm+CoLlg4LYe4ypc8U+T4r7730XYshdBGZdelg+JRw8GtCb2w/KaaZvw==} + oxlint@1.38.0: + resolution: {integrity: sha512-XT7tBinQS+hVLxtfJOnokJ9qVBiQvZqng40tDgR6qEJMRMnpVq/JwYfbYyGntSq8MO+Y+N9M1NG4bAMFUtCJiw==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: @@ -2210,28 +2210,28 @@ snapshots: dependencies: '@braidai/lang': 1.1.2 - '@oxfmt/darwin-arm64@0.21.0': + '@oxfmt/darwin-arm64@0.23.0': optional: true - '@oxfmt/darwin-x64@0.21.0': + '@oxfmt/darwin-x64@0.23.0': optional: true - '@oxfmt/linux-arm64-gnu@0.21.0': + '@oxfmt/linux-arm64-gnu@0.23.0': optional: true - '@oxfmt/linux-arm64-musl@0.21.0': + '@oxfmt/linux-arm64-musl@0.23.0': optional: true - '@oxfmt/linux-x64-gnu@0.21.0': + '@oxfmt/linux-x64-gnu@0.23.0': optional: true - '@oxfmt/linux-x64-musl@0.21.0': + '@oxfmt/linux-x64-musl@0.23.0': optional: true - '@oxfmt/win32-arm64@0.21.0': + '@oxfmt/win32-arm64@0.23.0': optional: true - '@oxfmt/win32-x64@0.21.0': + '@oxfmt/win32-x64@0.23.0': optional: true '@oxlint-tsgolint/darwin-arm64@0.10.0': @@ -2252,28 +2252,28 @@ snapshots: '@oxlint-tsgolint/win32-x64@0.10.0': optional: true - '@oxlint/darwin-arm64@1.36.0': + '@oxlint/darwin-arm64@1.38.0': optional: true - '@oxlint/darwin-x64@1.36.0': + '@oxlint/darwin-x64@1.38.0': optional: true - '@oxlint/linux-arm64-gnu@1.36.0': + '@oxlint/linux-arm64-gnu@1.38.0': optional: true - '@oxlint/linux-arm64-musl@1.36.0': + '@oxlint/linux-arm64-musl@1.38.0': optional: true - '@oxlint/linux-x64-gnu@1.36.0': + '@oxlint/linux-x64-gnu@1.38.0': optional: true - '@oxlint/linux-x64-musl@1.36.0': + '@oxlint/linux-x64-musl@1.38.0': optional: true - '@oxlint/win32-arm64@1.36.0': + '@oxlint/win32-arm64@1.38.0': optional: true - '@oxlint/win32-x64@1.36.0': + '@oxlint/win32-x64@1.38.0': optional: true '@pkgjs/parseargs@0.11.0': @@ -3310,18 +3310,18 @@ snapshots: object-keys: 1.1.1 safe-push-apply: 1.0.0 - oxfmt@0.21.0: + oxfmt@0.23.0: dependencies: tinypool: 2.0.0 optionalDependencies: - '@oxfmt/darwin-arm64': 0.21.0 - '@oxfmt/darwin-x64': 0.21.0 - '@oxfmt/linux-arm64-gnu': 0.21.0 - '@oxfmt/linux-arm64-musl': 0.21.0 - '@oxfmt/linux-x64-gnu': 0.21.0 - '@oxfmt/linux-x64-musl': 0.21.0 - '@oxfmt/win32-arm64': 0.21.0 - '@oxfmt/win32-x64': 0.21.0 + '@oxfmt/darwin-arm64': 0.23.0 + '@oxfmt/darwin-x64': 0.23.0 + '@oxfmt/linux-arm64-gnu': 0.23.0 + '@oxfmt/linux-arm64-musl': 0.23.0 + '@oxfmt/linux-x64-gnu': 0.23.0 + '@oxfmt/linux-x64-musl': 0.23.0 + '@oxfmt/win32-arm64': 0.23.0 + '@oxfmt/win32-x64': 0.23.0 oxlint-tsgolint@0.10.0: optionalDependencies: @@ -3332,16 +3332,16 @@ snapshots: '@oxlint-tsgolint/win32-arm64': 0.10.0 '@oxlint-tsgolint/win32-x64': 0.10.0 - oxlint@1.36.0(oxlint-tsgolint@0.10.0): + oxlint@1.38.0(oxlint-tsgolint@0.10.0): optionalDependencies: - '@oxlint/darwin-arm64': 1.36.0 - '@oxlint/darwin-x64': 1.36.0 - '@oxlint/linux-arm64-gnu': 1.36.0 - '@oxlint/linux-arm64-musl': 1.36.0 - '@oxlint/linux-x64-gnu': 1.36.0 - '@oxlint/linux-x64-musl': 1.36.0 - '@oxlint/win32-arm64': 1.36.0 - '@oxlint/win32-x64': 1.36.0 + '@oxlint/darwin-arm64': 1.38.0 + '@oxlint/darwin-x64': 1.38.0 + '@oxlint/linux-arm64-gnu': 1.38.0 + '@oxlint/linux-arm64-musl': 1.38.0 + '@oxlint/linux-x64-gnu': 1.38.0 + '@oxlint/linux-x64-musl': 1.38.0 + '@oxlint/win32-arm64': 1.38.0 + '@oxlint/win32-x64': 1.38.0 oxlint-tsgolint: 0.10.0 p-limit@4.0.0: From 753f48808e3931cebde7ca4ccb796938d2292452 Mon Sep 17 00:00:00 2001 From: MK Date: Tue, 6 Jan 2026 21:39:01 +0800 Subject: [PATCH 2/2] FIXUP --- README.md | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index e4099bdb..d9782643 100644 --- a/README.md +++ b/README.md @@ -89,8 +89,8 @@ When making a request: await request('https://example.com', { method: 'GET', data: { - 'a': 'hello', - 'b': 'world', + a: 'hello', + b: 'world', }, }); ``` @@ -142,12 +142,12 @@ This example can use `options.data` with `application/json` content type: await request('https://example.com', { method: 'POST', headers: { - 'content-type': 'application/json' + 'content-type': 'application/json', }, data: { a: 'hello', b: 'world', - } + }, }); ``` @@ -170,11 +170,7 @@ Upload multi files with a `hello` field. ```js await request('https://example.com/upload', { method: 'POST', - files: [ - __filename, - fs.createReadStream(__filename), - Buffer.from('mock file content'), - ], + files: [__filename, fs.createReadStream(__filename), Buffer.from('mock file content')], data: { hello: 'hello urllib with multi files', }, @@ -241,12 +237,14 @@ setGlobalDispatcher(mockAgent); const mockPool = mockAgent.get('http://localhost:7001'); -mockPool.intercept({ - path: '/foo', - method: 'POST', -}).reply(400, { - message: 'mock 400 bad request', -}); +mockPool + .intercept({ + path: '/foo', + method: 'POST', + }) + .reply(400, { + message: 'mock 400 bad request', + }); const response = await request('http://localhost:7001/foo', { method: 'POST',