build(deps-dev): bump @biomejs/biome from 1.5.3 to 1.9.0 (#895)

* build(deps-dev): bump @biomejs/biome from 1.5.3 to 1.9.0

Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 1.5.3 to 1.9.0.
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/cli/v1.9.0/packages/@biomejs/biome)

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* code

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Arthur Fiorette <me@arthur.place>
This commit is contained in:
dependabot[bot] 2024-09-13 10:11:17 -03:00 committed by GitHub
parent e29889656c
commit 19690d95e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 60 additions and 68 deletions

View File

@ -1,7 +1,7 @@
const Benny = require('benny');
const { execSync } = require('child_process');
const { writeFileSync } = require('fs');
const path = require('path');
const { execSync } = require('node:child_process');
const { writeFileSync } = require('node:fs');
const path = require('node:path');
// Outputs into the documentation folder
const output = path.resolve(__dirname, '../docs/src/generated/benchmark.md');

View File

@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.3.3/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
"organizeImports": {
"enabled": true
},
@ -23,7 +23,7 @@
"javascript": {
"formatter": {
"quoteStyle": "single",
"trailingComma": "none"
"trailingCommas": "none"
}
},
"files": {

View File

@ -1,5 +1,5 @@
import { readFileSync } from 'fs';
import { resolve } from 'path';
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import { defineConfig } from 'vitepress';
const read = (relative) =>

View File

@ -2,15 +2,7 @@
"name": "axios-cache-interceptor",
"version": "1.6.0",
"description": "Cache interceptor for axios",
"keywords": [
"axios",
"cache",
"interceptor",
"adapter",
"http",
"plugin",
"wrapper"
],
"keywords": ["axios", "cache", "interceptor", "adapter", "http", "plugin", "wrapper"],
"homepage": "https://axios-cache-interceptor.js.org",
"bugs": "https://github.com/arthurfiorette/axios-cache-interceptor/issues",
"repository": "https://github.com/arthurfiorette/axios-cache-interceptor.git",
@ -48,7 +40,7 @@
"version": "auto-changelog -p && cp CHANGELOG.md docs/src/others/changelog.md && git add CHANGELOG.md docs/src/others/changelog.md",
"format": "biome format --write .",
"lint": "biome check .",
"lint:fix": "biome check --apply-unsafe .",
"lint:fix": "biome check --write --unsafe .",
"lint:ci": "biome ci ."
},
"resolutions": {
@ -60,7 +52,7 @@
"object-code": "1.3.3"
},
"devDependencies": {
"@biomejs/biome": "1.5.3",
"@biomejs/biome": "1.9.0",
"@swc-node/register": "1.9.0",
"@swc/helpers": "0.5.13",
"@types/jsdom": "21.1.7",

92
pnpm-lock.yaml generated
View File

@ -22,8 +22,8 @@ importers:
version: 1.3.3
devDependencies:
'@biomejs/biome':
specifier: 1.5.3
version: 1.5.3
specifier: 1.9.0
version: 1.9.0
'@swc-node/register':
specifier: 1.9.0
version: 1.9.0(@swc/core@1.3.96(@swc/helpers@0.5.13))(@swc/types@0.1.5)(typescript@5.6.2)
@ -767,56 +767,56 @@ packages:
'@bcoe/v8-coverage@0.2.3':
resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==}
'@biomejs/biome@1.5.3':
resolution: {integrity: sha512-yvZCa/g3akwTaAQ7PCwPWDCkZs3Qa5ONg/fgOUT9e6wAWsPftCjLQFPXBeGxPK30yZSSpgEmRCfpGTmVbUjGgg==}
engines: {node: '>=14.*'}
'@biomejs/biome@1.9.0':
resolution: {integrity: sha512-NlWh2F1wbxB3O/wE+aohGL0BziTS6e+6+dyFvpdeqLsbQZY7EsiklFb9W5Xs41U4vEmY7ANgdNp+oVDij6sQdA==}
engines: {node: '>=14.21.3'}
hasBin: true
'@biomejs/cli-darwin-arm64@1.5.3':
resolution: {integrity: sha512-ImU7mh1HghEDyqNmxEZBoMPr8SxekkZuYcs+gynKlNW+TALQs7swkERiBLkG9NR0K1B3/2uVzlvYowXrmlW8hw==}
engines: {node: '>=14.*'}
'@biomejs/cli-darwin-arm64@1.9.0':
resolution: {integrity: sha512-2w9v/NRtYSmodx5QWQ49OGcyGKSECdWKbzc7n532Iq5sBhkKk996fd19icT6BuL54f01KFKRCRibAW+A2rg1Kw==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [darwin]
'@biomejs/cli-darwin-x64@1.5.3':
resolution: {integrity: sha512-vCdASqYnlpq/swErH7FD6nrFz0czFtK4k/iLgj0/+VmZVjineFPgevOb+Sr9vz0tk0GfdQO60bSpI74zU8M9Dw==}
engines: {node: '>=14.*'}
'@biomejs/cli-darwin-x64@1.9.0':
resolution: {integrity: sha512-fBVt8jJQi0zX0SJ1C+tdzUbRpuX/07sgtBXEhunWRkPjdi6W/2S1sYHQ1wKn4OKiRAKfHM2Cf2FNO7hQvY61dA==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [darwin]
'@biomejs/cli-linux-arm64-musl@1.5.3':
resolution: {integrity: sha512-DYuMizUYUBYfS0IHGjDrOP1RGipqWfMGEvNEJ398zdtmCKLXaUvTimiox5dvx4X15mBK5M2m8wgWUgOP1giUpQ==}
engines: {node: '>=14.*'}
'@biomejs/cli-linux-arm64-musl@1.9.0':
resolution: {integrity: sha512-Jy84mZ4vcppdmWMgQWOCfd8qIVC/vHmlaS5gy7GXkdWlBKSQ56YxEXTU58MHTbZ16LwJQpK2IulqRCC/rqWLBA==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [linux]
'@biomejs/cli-linux-arm64@1.5.3':
resolution: {integrity: sha512-cupBQv0sNF1OKqBfx7EDWMSsKwRrBUZfjXawT4s6hKV6ALq7p0QzWlxr/sDmbKMLOaLQtw2Qgu/77N9rm+f9Rg==}
engines: {node: '>=14.*'}
'@biomejs/cli-linux-arm64@1.9.0':
resolution: {integrity: sha512-l8U2lcqsl9yKPP5WUdIrKH//C1pWyM2cSUfcTBn6GSvXmsSjBNEdGSdM4Wfne777Oe/9ONaD1Ga53U2HksHHLw==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [linux]
'@biomejs/cli-linux-x64-musl@1.5.3':
resolution: {integrity: sha512-UUHiAnlDqr2Y/LpvshBFhUYMWkl2/Jn+bi3U6jKuav0qWbbBKU/ByHgR4+NBxpKBYoCtWxhnmatfH1bpPIuZMw==}
engines: {node: '>=14.*'}
'@biomejs/cli-linux-x64-musl@1.9.0':
resolution: {integrity: sha512-N3enoFoIrkB6qJWyYfTiYmFdB1R/Mrij1dd1xBHqxxCKZY9GRkEswRX3F1Uqzo5T+9Iu8nAQobDqI/ygicYy/Q==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [linux]
'@biomejs/cli-linux-x64@1.5.3':
resolution: {integrity: sha512-YQrSArQvcv4FYsk7Q91Yv4uuu5F8hJyORVcv3zsjCLGkjIjx2RhjYLpTL733SNL7v33GmOlZY0eFR1ko38tuUw==}
engines: {node: '>=14.*'}
'@biomejs/cli-linux-x64@1.9.0':
resolution: {integrity: sha512-8jAzjrrJTj510pwq4aVs7ZKkOvEy1D+nzl9DKvrPh4TOyUw5Ie+0EDwXGE2RAkCKHkGNOQBZ78WtIdsATgz5sA==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [linux]
'@biomejs/cli-win32-arm64@1.5.3':
resolution: {integrity: sha512-HxatYH7vf/kX9nrD+pDYuV2GI9GV8EFo6cfKkahAecTuZLPxryHx1WEfJthp5eNsE0+09STGkKIKjirP0ufaZA==}
engines: {node: '>=14.*'}
'@biomejs/cli-win32-arm64@1.9.0':
resolution: {integrity: sha512-AIjwJTGfdWGMRluSQ9pDB29nzce077dfHh0/HMqzztKzgD3spyuo2R9VoaFpbR0hLHPWEH6g6OxxDO7hfkXNkQ==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [win32]
'@biomejs/cli-win32-x64@1.5.3':
resolution: {integrity: sha512-fMvbSouZEASU7mZH8SIJSANDm5OqsjgtVXlbUqxwed6BP7uuHRSs396Aqwh2+VoW8fwTpp6ybIUoC9FrzB0kyA==}
engines: {node: '>=14.*'}
'@biomejs/cli-win32-x64@1.9.0':
resolution: {integrity: sha512-4/4wTjNSoyNkm1SzcUaStDx46baX1VJRXtUoeEHjX9LfedR5N3qwZz5KfrRUnCd2fl5bmXK1CwMqKBkoF6zEiA==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [win32]
@ -4083,39 +4083,39 @@ snapshots:
'@bcoe/v8-coverage@0.2.3': {}
'@biomejs/biome@1.5.3':
'@biomejs/biome@1.9.0':
optionalDependencies:
'@biomejs/cli-darwin-arm64': 1.5.3
'@biomejs/cli-darwin-x64': 1.5.3
'@biomejs/cli-linux-arm64': 1.5.3
'@biomejs/cli-linux-arm64-musl': 1.5.3
'@biomejs/cli-linux-x64': 1.5.3
'@biomejs/cli-linux-x64-musl': 1.5.3
'@biomejs/cli-win32-arm64': 1.5.3
'@biomejs/cli-win32-x64': 1.5.3
'@biomejs/cli-darwin-arm64': 1.9.0
'@biomejs/cli-darwin-x64': 1.9.0
'@biomejs/cli-linux-arm64': 1.9.0
'@biomejs/cli-linux-arm64-musl': 1.9.0
'@biomejs/cli-linux-x64': 1.9.0
'@biomejs/cli-linux-x64-musl': 1.9.0
'@biomejs/cli-win32-arm64': 1.9.0
'@biomejs/cli-win32-x64': 1.9.0
'@biomejs/cli-darwin-arm64@1.5.3':
'@biomejs/cli-darwin-arm64@1.9.0':
optional: true
'@biomejs/cli-darwin-x64@1.5.3':
'@biomejs/cli-darwin-x64@1.9.0':
optional: true
'@biomejs/cli-linux-arm64-musl@1.5.3':
'@biomejs/cli-linux-arm64-musl@1.9.0':
optional: true
'@biomejs/cli-linux-arm64@1.5.3':
'@biomejs/cli-linux-arm64@1.9.0':
optional: true
'@biomejs/cli-linux-x64-musl@1.5.3':
'@biomejs/cli-linux-x64-musl@1.9.0':
optional: true
'@biomejs/cli-linux-x64@1.5.3':
'@biomejs/cli-linux-x64@1.9.0':
optional: true
'@biomejs/cli-win32-arm64@1.5.3':
'@biomejs/cli-win32-arm64@1.9.0':
optional: true
'@biomejs/cli-win32-x64@1.5.3':
'@biomejs/cli-win32-x64@1.9.0':
optional: true
'@docsearch/css@3.6.1': {}

View File

@ -123,7 +123,7 @@ describe('LastModified handling', () => {
const firstMyHeader: unknown = firstResponse.headers?.[XMockRandom];
assert.ok(firstMyHeader);
assert.notEqual(Number(firstMyHeader), NaN);
assert.notEqual(Number(firstMyHeader), Number.NaN);
// Second request with 304 Not Modified
const secondResponse = await axios.get('url', {
@ -132,7 +132,7 @@ describe('LastModified handling', () => {
const secondMyHeader: unknown = secondResponse.headers?.[XMockRandom];
assert.ok(secondMyHeader);
assert.notEqual(Number(secondMyHeader), NaN);
assert.notEqual(Number(secondMyHeader), Number.NaN);
assert.notEqual(secondMyHeader, firstMyHeader);
});
});

View File

@ -1,7 +1,7 @@
import assert from 'node:assert';
import { describe, it, mock } from 'node:test';
import { setTimeout } from 'node:timers/promises';
import type { AxiosAdapter, AxiosResponse } from 'axios';
import { setTimeout } from 'timers/promises';
import type { CacheRequestConfig, InternalCacheRequestConfig } from '../../src/cache/axios.js';
import { Header } from '../../src/header/headers.js';
import type { LoadingStorageValue } from '../../src/storage/types.js';

View File

@ -155,7 +155,7 @@ describe('Response Interceptor', () => {
assert.equal(resp.cached, false);
assert.equal(resp.stale, undefined);
assert.ok(resp.config);
assert.notEqual(resp.headers[XMockRandom], NaN);
assert.notEqual(resp.headers[XMockRandom], Number.NaN);
assert.equal(resp.status, 200);
assert.equal(resp.statusText, '200 OK');
assert.ok(resp.data);