feat: update biome config

This commit is contained in:
Arthur Fiorette 2025-07-01 21:52:19 -03:00
parent f2ec7bfe00
commit cc8c8b0b04
No known key found for this signature in database
GPG Key ID: 79FA8EC214FA0233
8 changed files with 245 additions and 141 deletions

View File

@ -26,7 +26,7 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm lint
run: pnpm lint-ci
- name: Test Types
run: pnpm test:types

View File

@ -1,15 +1,16 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
"extends": ["@arthurfiorette/biomejs-config"],
"files": {
"ignore": [
"build/**/*",
"dist/**/*",
"dev/**/*",
"coverage/**/*",
"node_modules/**/*",
"pnpm-lock.json",
"docs/.vitepress/cache/**/*"
"includes": [
"**",
"!**/build/**/*",
"!**/dist/**/*",
"!**/dev/**/*",
"!**/coverage/**/*",
"!**/node_modules/**/*",
"!**/pnpm-lock.json",
"!**/docs/.vitepress/cache/**/*"
]
}
}

View File

@ -12,7 +12,7 @@ const api = setupCache(
// Every time an api call reaches here, it will
// make another internal request and forward the response.
app.get('/', (req, res) => {
app.get('/', (_req, res) => {
api.get('/users').then(
({ data, cached, id }) => {
res.json({

View File

@ -2,7 +2,15 @@
"name": "axios-cache-interceptor",
"version": "1.8.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": {
@ -40,8 +48,8 @@
"docs:serve": "vitepress serve docs",
"format": "biome format --write .",
"lint": "biome check .",
"lint:ci": "biome ci .",
"lint:fix": "biome check --write --unsafe .",
"lint-ci": "biome ci .",
"lint-fix": "biome check --write --unsafe .",
"test": "c8 --reporter lcov --reporter text node --import ./test/setup.js --enable-source-maps --test test/**/*.test.ts",
"test:only": "c8 --reporter lcov --reporter text node --import ./test/setup.js --enable-source-maps --test-only",
"test:types": "tsc -p tsconfig.build.json",
@ -53,8 +61,8 @@
"object-code": "1.3.3"
},
"devDependencies": {
"@arthurfiorette/biomejs-config": "1.0.9",
"@biomejs/biome": "1.9.4",
"@arthurfiorette/biomejs-config": "2.0.0",
"@biomejs/biome": "2.0.6",
"@swc-node/register": "1.10.10",
"@swc/helpers": "0.5.17",
"@types/jsdom": "21.1.7",

335
pnpm-lock.yaml generated
View File

@ -19,14 +19,14 @@ importers:
version: 1.3.3
devDependencies:
'@arthurfiorette/biomejs-config':
specifier: 1.0.9
version: 1.0.9
specifier: 2.0.0
version: 2.0.0
'@biomejs/biome':
specifier: 1.9.4
version: 1.9.4
specifier: 2.0.6
version: 2.0.6
'@swc-node/register':
specifier: 1.10.10
version: 1.10.10(@swc/core@1.11.24(@swc/helpers@0.5.17))(@swc/types@0.1.21)(typescript@5.8.3)
version: 1.10.10(@swc/core@1.12.9(@swc/helpers@0.5.17))(@swc/types@0.1.23)(typescript@5.8.3)
'@swc/helpers':
specifier: 0.5.17
version: 0.5.17
@ -59,7 +59,7 @@ importers:
version: 5.8.3
vitepress:
specifier: 1.6.3
version: 1.6.3(@algolia/client-search@5.24.0)(@types/node@22.15.30)(axios@1.10.0)(postcss@8.5.3)(search-insights@2.17.3)(terser@5.39.0)(typescript@5.8.3)
version: 1.6.3(@algolia/client-search@5.30.0)(@types/node@22.15.30)(axios@1.10.0)(postcss@8.5.3)(search-insights@2.17.3)(terser@5.43.1)(typescript@5.8.3)
vitepress-plugin-llms:
specifier: 1.6.0
version: 1.6.0
@ -98,6 +98,10 @@ packages:
resolution: {integrity: sha512-p8K6tiXQTebRBxbrzWIfGCvfkT+Umml+2lzI92acZjHsvl6KYH6igOfVstKqXJRei9pvRzEEvVDNDLXDVleGTA==}
engines: {node: '>= 14.0.0'}
'@algolia/client-common@5.30.0':
resolution: {integrity: sha512-tbUgvkp2d20mHPbM0+NPbLg6SzkUh0lADUUjzNCF+HiPkjFRaIW3NGMlESKw5ia4Oz6ZvFzyREquUX6rdkdJcQ==}
engines: {node: '>= 14.0.0'}
'@algolia/client-insights@5.24.0':
resolution: {integrity: sha512-jOHF0+tixR3IZJMhZPquFNdCVPzwzzXoiqVsbTvfKojeaY6ZXybgUiTSB8JNX+YpsUT8Ebhu3UvRy4mw2PbEzw==}
engines: {node: '>= 14.0.0'}
@ -114,6 +118,10 @@ packages:
resolution: {integrity: sha512-k+nuciQuq7WERNNE+hsx3DX636zIy+9R4xdtvW3PANT2a2BDGOv3fv2mta8+QUMcVTVcGe/Mo3QCb4pc1HNoxA==}
engines: {node: '>= 14.0.0'}
'@algolia/client-search@5.30.0':
resolution: {integrity: sha512-puc1/LREfSqzgmrOFMY5L/aWmhYOlJ0TTpa245C0ZNMKEkdOkcimFbXTXQ8lZhzh+rlyFgR7cQGNtXJ5H0XgZg==}
engines: {node: '>= 14.0.0'}
'@algolia/ingestion@1.24.0':
resolution: {integrity: sha512-/lqVxmrvwoA+OyVK4XLMdz/PJaCTW4qYchX1AZ+98fdnH3K6XM/kMydQLfP0bUNGBQbmVrF88MqhqZRnZEn/MA==}
engines: {node: '>= 14.0.0'}
@ -130,20 +138,32 @@ packages:
resolution: {integrity: sha512-B2Gc+iSxct1WSza5CF6AgfNgmLvVb61d5bqmIWUZixtJIhyAC6lSQZuF+nvt+lmKhQwuY2gYjGGClil8onQvKQ==}
engines: {node: '>= 14.0.0'}
'@algolia/requester-browser-xhr@5.30.0':
resolution: {integrity: sha512-alo3ly0tdNLjfMSPz9dmNwYUFHx7guaz5dTGlIzVGnOiwLgIoM6NgA+MJLMcH6e1S7OpmE2AxOy78svlhst2tQ==}
engines: {node: '>= 14.0.0'}
'@algolia/requester-fetch@5.24.0':
resolution: {integrity: sha512-6E5+hliqGc5w8ZbyTAQ+C3IGLZ/GiX623Jl2bgHA974RPyFWzVSj4rKqkboUAxQmrFY7Z02ybJWVZS5OhPQocA==}
engines: {node: '>= 14.0.0'}
'@algolia/requester-fetch@5.30.0':
resolution: {integrity: sha512-WOnTYUIY2InllHBy6HHMpGIOo7Or4xhYUx/jkoSK/kPIa1BRoFEHqa8v4pbKHtoG7oLvM2UAsylSnjVpIhGZXg==}
engines: {node: '>= 14.0.0'}
'@algolia/requester-node-http@5.24.0':
resolution: {integrity: sha512-zM+nnqZpiQj20PyAh6uvgdSz+hD7Rj7UfAZwizqNP+bLvcbGXZwABERobuilkCQqyDBBH4uv0yqIcPRl8dSBEg==}
engines: {node: '>= 14.0.0'}
'@algolia/requester-node-http@5.30.0':
resolution: {integrity: sha512-uSTUh9fxeHde1c7KhvZKUrivk90sdiDftC+rSKNFKKEU9TiIKAGA7B2oKC+AoMCqMymot1vW9SGbeESQPTZd0w==}
engines: {node: '>= 14.0.0'}
'@ampproject/remapping@2.3.0':
resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==}
engines: {node: '>=6.0.0'}
'@arthurfiorette/biomejs-config@1.0.9':
resolution: {integrity: sha512-sMVkA1mmq/1ROObvEuB1rxysgVUdi8aRh9s7vumd8gq9goyQVvlvNEKEvbJ5y9BluKfLUGYgcFK9hoK0BPJh2Q==}
'@arthurfiorette/biomejs-config@2.0.0':
resolution: {integrity: sha512-Q2/AlYZExug2AJrcWKK3ZyZCfne1Vs9KHBDYTa7B1KFVoJYGSnJ5b3KnHxY/c2C3HH9bxGVdu9cuJxFbtPicpw==}
'@asamuzakjp/css-color@3.1.5':
resolution: {integrity: sha512-w7AmVyTTiU41fNLsFDf+gA2Dwtbx2EJtn2pbJNAGSRAg50loXy1uLXA3hEpD8+eydcomTurw09tq5/AyceCaGg==}
@ -702,55 +722,55 @@ packages:
resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==}
engines: {node: '>=18'}
'@biomejs/biome@1.9.4':
resolution: {integrity: sha512-1rkd7G70+o9KkTn5KLmDYXihGoTaIGO9PIIN2ZB7UJxFrWw04CZHPYiMRjYsaDvVV7hP1dYNRLxSANLaBFGpog==}
'@biomejs/biome@2.0.6':
resolution: {integrity: sha512-RRP+9cdh5qwe2t0gORwXaa27oTOiQRQvrFf49x2PA1tnpsyU7FIHX4ZOFMtBC4QNtyWsN7Dqkf5EDbg4X+9iqA==}
engines: {node: '>=14.21.3'}
hasBin: true
'@biomejs/cli-darwin-arm64@1.9.4':
resolution: {integrity: sha512-bFBsPWrNvkdKrNCYeAp+xo2HecOGPAy9WyNyB/jKnnedgzl4W4Hb9ZMzYNbf8dMCGmUdSavlYHiR01QaYR58cw==}
'@biomejs/cli-darwin-arm64@2.0.6':
resolution: {integrity: sha512-AzdiNNjNzsE6LfqWyBvcL29uWoIuZUkndu+wwlXW13EKcBHbbKjNQEZIJKYDc6IL+p7bmWGx3v9ZtcRyIoIz5A==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [darwin]
'@biomejs/cli-darwin-x64@1.9.4':
resolution: {integrity: sha512-ngYBh/+bEedqkSevPVhLP4QfVPCpb+4BBe2p7Xs32dBgs7rh9nY2AIYUL6BgLw1JVXV8GlpKmb/hNiuIxfPfZg==}
'@biomejs/cli-darwin-x64@2.0.6':
resolution: {integrity: sha512-wJjjP4E7bO4WJmiQaLnsdXMa516dbtC6542qeRkyJg0MqMXP0fvs4gdsHhZ7p9XWTAmGIjZHFKXdsjBvKGIJJQ==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [darwin]
'@biomejs/cli-linux-arm64-musl@1.9.4':
resolution: {integrity: sha512-v665Ct9WCRjGa8+kTr0CzApU0+XXtRgwmzIf1SeKSGAv+2scAlW6JR5PMFo6FzqqZ64Po79cKODKf3/AAmECqA==}
'@biomejs/cli-linux-arm64-musl@2.0.6':
resolution: {integrity: sha512-CVPEMlin3bW49sBqLBg2x016Pws7eUXA27XYDFlEtponD0luYjg2zQaMJ2nOqlkKG9fqzzkamdYxHdMDc2gZFw==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [linux]
'@biomejs/cli-linux-arm64@1.9.4':
resolution: {integrity: sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g==}
'@biomejs/cli-linux-arm64@2.0.6':
resolution: {integrity: sha512-ZSVf6TYo5rNMUHIW1tww+rs/krol7U5A1Is/yzWyHVZguuB0lBnIodqyFuwCNqG9aJGyk7xIMS8HG0qGUPz0SA==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [linux]
'@biomejs/cli-linux-x64-musl@1.9.4':
resolution: {integrity: sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg==}
'@biomejs/cli-linux-x64-musl@2.0.6':
resolution: {integrity: sha512-mKHE/e954hR/hSnAcJSjkf4xGqZc/53Kh39HVW1EgO5iFi0JutTN07TSjEMg616julRtfSNJi0KNyxvc30Y4rQ==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [linux]
'@biomejs/cli-linux-x64@1.9.4':
resolution: {integrity: sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg==}
'@biomejs/cli-linux-x64@2.0.6':
resolution: {integrity: sha512-geM1MkHTV1Kh2Cs/Xzot9BOF3WBacihw6bkEmxkz4nSga8B9/hWy5BDiOG3gHDGIBa8WxT0nzsJs2f/hPqQIQw==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [linux]
'@biomejs/cli-win32-arm64@1.9.4':
resolution: {integrity: sha512-tlbhLk+WXZmgwoIKwHIHEBZUwxml7bRJgk0X2sPyNR3S93cdRq6XulAZRQJ17FYGGzWne0fgrXBKpl7l4M87Hg==}
'@biomejs/cli-win32-arm64@2.0.6':
resolution: {integrity: sha512-290V4oSFoKaprKE1zkYVsDfAdn0An5DowZ+GIABgjoq1ndhvNxkJcpxPsiYtT7slbVe3xmlT0ncdfOsN7KruzA==}
engines: {node: '>=14.21.3'}
cpu: [arm64]
os: [win32]
'@biomejs/cli-win32-x64@1.9.4':
resolution: {integrity: sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA==}
'@biomejs/cli-win32-x64@2.0.6':
resolution: {integrity: sha512-bfM1Bce0d69Ao7pjTjUS+AWSZ02+5UHdiAP85Th8e9yV5xzw6JrHXbL5YWlcEKQ84FIZMdDc7ncuti1wd2sdbw==}
engines: {node: '>=14.21.3'}
cpu: [x64]
os: [win32]
@ -975,6 +995,9 @@ packages:
resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==}
engines: {node: '>=8'}
'@jridgewell/gen-mapping@0.3.12':
resolution: {integrity: sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg==}
'@jridgewell/gen-mapping@0.3.8':
resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==}
engines: {node: '>=6.0.0'}
@ -987,15 +1010,24 @@ packages:
resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==}
engines: {node: '>=6.0.0'}
'@jridgewell/source-map@0.3.10':
resolution: {integrity: sha512-0pPkgz9dY+bijgistcTTJ5mR+ocqRXLuhXHYdzoMmmoJ2C9S46RCm2GMUbatPEUK9Yjy26IrAy8D/M00lLkv+Q==}
'@jridgewell/source-map@0.3.6':
resolution: {integrity: sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==}
'@jridgewell/sourcemap-codec@1.5.0':
resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==}
'@jridgewell/sourcemap-codec@1.5.4':
resolution: {integrity: sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==}
'@jridgewell/trace-mapping@0.3.25':
resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==}
'@jridgewell/trace-mapping@0.3.29':
resolution: {integrity: sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==}
'@napi-rs/wasm-runtime@0.2.9':
resolution: {integrity: sha512-OKRBiajrrxB9ATokgEQoG87Z25c67pCpYcCwmXYX8PBftC9pBfN18gnm/fh1wurSLEKIAt+QRFLFCQISrb66Jg==}
@ -1255,68 +1287,68 @@ packages:
'@swc-node/sourcemap-support@0.5.1':
resolution: {integrity: sha512-JxIvIo/Hrpv0JCHSyRpetAdQ6lB27oFYhv0PKCNf1g2gUXOjpeR1exrXccRxLMuAV5WAmGFBwRnNOJqN38+qtg==}
'@swc/core-darwin-arm64@1.11.24':
resolution: {integrity: sha512-dhtVj0PC1APOF4fl5qT2neGjRLgHAAYfiVP8poJelhzhB/318bO+QCFWAiimcDoyMgpCXOhTp757gnoJJrheWA==}
'@swc/core-darwin-arm64@1.12.9':
resolution: {integrity: sha512-GACFEp4nD6V+TZNR2JwbMZRHB+Yyvp14FrcmB6UCUYmhuNWjkxi+CLnEvdbuiKyQYv0zA+TRpCHZ+whEs6gwfA==}
engines: {node: '>=10'}
cpu: [arm64]
os: [darwin]
'@swc/core-darwin-x64@1.11.24':
resolution: {integrity: sha512-H/3cPs8uxcj2Fe3SoLlofN5JG6Ny5bl8DuZ6Yc2wr7gQFBmyBkbZEz+sPVgsID7IXuz7vTP95kMm1VL74SO5AQ==}
'@swc/core-darwin-x64@1.12.9':
resolution: {integrity: sha512-hv2kls7Ilkm2EpeJz+I9MCil7pGS3z55ZAgZfxklEuYsxpICycxeH+RNRv4EraggN44ms+FWCjtZFu0LGg2V3g==}
engines: {node: '>=10'}
cpu: [x64]
os: [darwin]
'@swc/core-linux-arm-gnueabihf@1.11.24':
resolution: {integrity: sha512-PHJgWEpCsLo/NGj+A2lXZ2mgGjsr96ULNW3+T3Bj2KTc8XtMUkE8tmY2Da20ItZOvPNC/69KroU7edyo1Flfbw==}
'@swc/core-linux-arm-gnueabihf@1.12.9':
resolution: {integrity: sha512-od9tDPiG+wMU9wKtd6y3nYJdNqgDOyLdgRRcrj1/hrbHoUPOM8wZQZdwQYGarw63iLXGgsw7t5HAF9Yc51ilFA==}
engines: {node: '>=10'}
cpu: [arm]
os: [linux]
'@swc/core-linux-arm64-gnu@1.11.24':
resolution: {integrity: sha512-C2FJb08+n5SD4CYWCTZx1uR88BN41ZieoHvI8A55hfVf2woT8+6ZiBzt74qW2g+ntZ535Jts5VwXAKdu41HpBg==}
'@swc/core-linux-arm64-gnu@1.12.9':
resolution: {integrity: sha512-6qx1ka9LHcLzxIgn2Mros+CZLkHK2TawlXzi/h7DJeNnzi8F1Hw0Yzjp8WimxNCg6s2n+o3jnmin1oXB7gg8rw==}
engines: {node: '>=10'}
cpu: [arm64]
os: [linux]
'@swc/core-linux-arm64-musl@1.11.24':
resolution: {integrity: sha512-ypXLIdszRo0re7PNNaXN0+2lD454G8l9LPK/rbfRXnhLWDBPURxzKlLlU/YGd2zP98wPcVooMmegRSNOKfvErw==}
'@swc/core-linux-arm64-musl@1.12.9':
resolution: {integrity: sha512-yghFZWKPVVGbUdqiD7ft23G0JX6YFGDJPz9YbLLAwGuKZ9th3/jlWoQDAw1Naci31LQhVC+oIji6ozihSuwB2A==}
engines: {node: '>=10'}
cpu: [arm64]
os: [linux]
'@swc/core-linux-x64-gnu@1.11.24':
resolution: {integrity: sha512-IM7d+STVZD48zxcgo69L0yYptfhaaE9cMZ+9OoMxirNafhKKXwoZuufol1+alEFKc+Wbwp+aUPe/DeWC/Lh3dg==}
'@swc/core-linux-x64-gnu@1.12.9':
resolution: {integrity: sha512-SFUxyhWLZRNL8QmgGNqdi2Q43PNyFVkRZ2zIif30SOGFSxnxcf2JNeSeBgKIGVgaLSuk6xFVVCtJ3KIeaStgRg==}
engines: {node: '>=10'}
cpu: [x64]
os: [linux]
'@swc/core-linux-x64-musl@1.11.24':
resolution: {integrity: sha512-DZByJaMVzSfjQKKQn3cqSeqwy6lpMaQDQQ4HPlch9FWtDx/dLcpdIhxssqZXcR2rhaQVIaRQsCqwV6orSDGAGw==}
'@swc/core-linux-x64-musl@1.12.9':
resolution: {integrity: sha512-9FB0wM+6idCGTI20YsBNBg9xSWtkDBymnpaTCsZM3qDc0l4uOpJMqbfWhQvp17x7r/ulZfb2QY8RDvQmCL6AcQ==}
engines: {node: '>=10'}
cpu: [x64]
os: [linux]
'@swc/core-win32-arm64-msvc@1.11.24':
resolution: {integrity: sha512-Q64Ytn23y9aVDKN5iryFi8mRgyHw3/kyjTjT4qFCa8AEb5sGUuSj//AUZ6c0J7hQKMHlg9do5Etvoe61V98/JQ==}
'@swc/core-win32-arm64-msvc@1.12.9':
resolution: {integrity: sha512-zHOusMVbOH9ik5RtRrMiGzLpKwxrPXgXkBm3SbUCa65HAdjV33NZ0/R9Rv1uPESALtEl2tzMYLUxYA5ECFDFhA==}
engines: {node: '>=10'}
cpu: [arm64]
os: [win32]
'@swc/core-win32-ia32-msvc@1.11.24':
resolution: {integrity: sha512-9pKLIisE/Hh2vJhGIPvSoTK4uBSPxNVyXHmOrtdDot4E1FUUI74Vi8tFdlwNbaj8/vusVnb8xPXsxF1uB0VgiQ==}
'@swc/core-win32-ia32-msvc@1.12.9':
resolution: {integrity: sha512-aWZf0PqE0ot7tCuhAjRkDFf41AzzSQO0x2xRfTbnhpROp57BRJ/N5eee1VULO/UA2PIJRG7GKQky5bSGBYlFug==}
engines: {node: '>=10'}
cpu: [ia32]
os: [win32]
'@swc/core-win32-x64-msvc@1.11.24':
resolution: {integrity: sha512-sybnXtOsdB+XvzVFlBVGgRHLqp3yRpHK7CrmpuDKszhj/QhmsaZzY/GHSeALlMtLup13M0gqbcQvsTNlAHTg3w==}
'@swc/core-win32-x64-msvc@1.12.9':
resolution: {integrity: sha512-C25fYftXOras3P3anSUeXXIpxmEkdAcsIL9yrr0j1xepTZ/yKwpnQ6g3coj8UXdeJy4GTVlR6+Ow/QiBgZQNOg==}
engines: {node: '>=10'}
cpu: [x64]
os: [win32]
'@swc/core@1.11.24':
resolution: {integrity: sha512-MaQEIpfcEMzx3VWWopbofKJvaraqmL6HbLlw2bFZ7qYqYw3rkhM0cQVEgyzbHtTWwCwPMFZSC2DUbhlZgrMfLg==}
'@swc/core@1.12.9':
resolution: {integrity: sha512-O+LfT2JlVMsIMWG9x+rdxg8GzpzeGtCZQfXV7cKc1PjIKUkLFf1QJ7okuseA4f/9vncu37dQ2ZcRrPKy0Ndd5g==}
engines: {node: '>=10'}
peerDependencies:
'@swc/helpers': '>=0.5.17'
@ -1330,8 +1362,8 @@ packages:
'@swc/helpers@0.5.17':
resolution: {integrity: sha512-5IKx/Y13RsYd+sauPb2x+U/xZikHjolzfuDgTAl/Tdf3Q8rslRvC19NKDLgAJQ6wsqADk10ntlv08nPFw/gO/A==}
'@swc/types@0.1.21':
resolution: {integrity: sha512-2YEtj5HJVbKivud9N4bpPBAyZhj4S2Ipe5LkUG94alTpr7in/GU/EARgPAd3BwU+YOmFVJC2+kjqhGRi3r0ZpQ==}
'@swc/types@0.1.23':
resolution: {integrity: sha512-u1iIVZV9Q0jxY+yM2vw/hZGDNudsN85bBpTqzAQ9rzkxW9D+e3aEM4Han+ow518gSewkXgjmEK0BD79ZcNVgPw==}
'@trysound/sax@0.2.0':
resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==}
@ -1494,6 +1526,11 @@ packages:
engines: {node: '>=0.4.0'}
hasBin: true
acorn@8.15.0:
resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==}
engines: {node: '>=0.4.0'}
hasBin: true
agent-base@7.1.3:
resolution: {integrity: sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==}
engines: {node: '>= 14'}
@ -3434,6 +3471,11 @@ packages:
engines: {node: '>=10'}
hasBin: true
terser@5.43.1:
resolution: {integrity: sha512-+6erLbBm0+LROX2sPXlUYx/ux5PyE9K/a92Wrt6oA+WDAoFTdpHE5tCYCI5PNzq2y8df4rA+QgHLJuR4jNymsg==}
engines: {node: '>=10'}
hasBin: true
test-exclude@7.0.1:
resolution: {integrity: sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==}
engines: {node: '>=18'}
@ -3734,32 +3776,32 @@ packages:
snapshots:
'@algolia/autocomplete-core@1.17.7(@algolia/client-search@5.24.0)(algoliasearch@5.24.0)(search-insights@2.17.3)':
'@algolia/autocomplete-core@1.17.7(@algolia/client-search@5.30.0)(algoliasearch@5.24.0)(search-insights@2.17.3)':
dependencies:
'@algolia/autocomplete-plugin-algolia-insights': 1.17.7(@algolia/client-search@5.24.0)(algoliasearch@5.24.0)(search-insights@2.17.3)
'@algolia/autocomplete-shared': 1.17.7(@algolia/client-search@5.24.0)(algoliasearch@5.24.0)
'@algolia/autocomplete-plugin-algolia-insights': 1.17.7(@algolia/client-search@5.30.0)(algoliasearch@5.24.0)(search-insights@2.17.3)
'@algolia/autocomplete-shared': 1.17.7(@algolia/client-search@5.30.0)(algoliasearch@5.24.0)
transitivePeerDependencies:
- '@algolia/client-search'
- algoliasearch
- search-insights
'@algolia/autocomplete-plugin-algolia-insights@1.17.7(@algolia/client-search@5.24.0)(algoliasearch@5.24.0)(search-insights@2.17.3)':
'@algolia/autocomplete-plugin-algolia-insights@1.17.7(@algolia/client-search@5.30.0)(algoliasearch@5.24.0)(search-insights@2.17.3)':
dependencies:
'@algolia/autocomplete-shared': 1.17.7(@algolia/client-search@5.24.0)(algoliasearch@5.24.0)
'@algolia/autocomplete-shared': 1.17.7(@algolia/client-search@5.30.0)(algoliasearch@5.24.0)
search-insights: 2.17.3
transitivePeerDependencies:
- '@algolia/client-search'
- algoliasearch
'@algolia/autocomplete-preset-algolia@1.17.7(@algolia/client-search@5.24.0)(algoliasearch@5.24.0)':
'@algolia/autocomplete-preset-algolia@1.17.7(@algolia/client-search@5.30.0)(algoliasearch@5.24.0)':
dependencies:
'@algolia/autocomplete-shared': 1.17.7(@algolia/client-search@5.24.0)(algoliasearch@5.24.0)
'@algolia/client-search': 5.24.0
'@algolia/autocomplete-shared': 1.17.7(@algolia/client-search@5.30.0)(algoliasearch@5.24.0)
'@algolia/client-search': 5.30.0
algoliasearch: 5.24.0
'@algolia/autocomplete-shared@1.17.7(@algolia/client-search@5.24.0)(algoliasearch@5.24.0)':
'@algolia/autocomplete-shared@1.17.7(@algolia/client-search@5.30.0)(algoliasearch@5.24.0)':
dependencies:
'@algolia/client-search': 5.24.0
'@algolia/client-search': 5.30.0
algoliasearch: 5.24.0
'@algolia/client-abtesting@5.24.0':
@ -3778,6 +3820,8 @@ snapshots:
'@algolia/client-common@5.24.0': {}
'@algolia/client-common@5.30.0': {}
'@algolia/client-insights@5.24.0':
dependencies:
'@algolia/client-common': 5.24.0
@ -3806,6 +3850,13 @@ snapshots:
'@algolia/requester-fetch': 5.24.0
'@algolia/requester-node-http': 5.24.0
'@algolia/client-search@5.30.0':
dependencies:
'@algolia/client-common': 5.30.0
'@algolia/requester-browser-xhr': 5.30.0
'@algolia/requester-fetch': 5.30.0
'@algolia/requester-node-http': 5.30.0
'@algolia/ingestion@1.24.0':
dependencies:
'@algolia/client-common': 5.24.0
@ -3831,20 +3882,32 @@ snapshots:
dependencies:
'@algolia/client-common': 5.24.0
'@algolia/requester-browser-xhr@5.30.0':
dependencies:
'@algolia/client-common': 5.30.0
'@algolia/requester-fetch@5.24.0':
dependencies:
'@algolia/client-common': 5.24.0
'@algolia/requester-fetch@5.30.0':
dependencies:
'@algolia/client-common': 5.30.0
'@algolia/requester-node-http@5.24.0':
dependencies:
'@algolia/client-common': 5.24.0
'@algolia/requester-node-http@5.30.0':
dependencies:
'@algolia/client-common': 5.30.0
'@ampproject/remapping@2.3.0':
dependencies:
'@jridgewell/gen-mapping': 0.3.8
'@jridgewell/trace-mapping': 0.3.25
'@arthurfiorette/biomejs-config@1.0.9': {}
'@arthurfiorette/biomejs-config@2.0.0': {}
'@asamuzakjp/css-color@3.1.5':
dependencies:
@ -4569,39 +4632,39 @@ snapshots:
'@bcoe/v8-coverage@1.0.2': {}
'@biomejs/biome@1.9.4':
'@biomejs/biome@2.0.6':
optionalDependencies:
'@biomejs/cli-darwin-arm64': 1.9.4
'@biomejs/cli-darwin-x64': 1.9.4
'@biomejs/cli-linux-arm64': 1.9.4
'@biomejs/cli-linux-arm64-musl': 1.9.4
'@biomejs/cli-linux-x64': 1.9.4
'@biomejs/cli-linux-x64-musl': 1.9.4
'@biomejs/cli-win32-arm64': 1.9.4
'@biomejs/cli-win32-x64': 1.9.4
'@biomejs/cli-darwin-arm64': 2.0.6
'@biomejs/cli-darwin-x64': 2.0.6
'@biomejs/cli-linux-arm64': 2.0.6
'@biomejs/cli-linux-arm64-musl': 2.0.6
'@biomejs/cli-linux-x64': 2.0.6
'@biomejs/cli-linux-x64-musl': 2.0.6
'@biomejs/cli-win32-arm64': 2.0.6
'@biomejs/cli-win32-x64': 2.0.6
'@biomejs/cli-darwin-arm64@1.9.4':
'@biomejs/cli-darwin-arm64@2.0.6':
optional: true
'@biomejs/cli-darwin-x64@1.9.4':
'@biomejs/cli-darwin-x64@2.0.6':
optional: true
'@biomejs/cli-linux-arm64-musl@1.9.4':
'@biomejs/cli-linux-arm64-musl@2.0.6':
optional: true
'@biomejs/cli-linux-arm64@1.9.4':
'@biomejs/cli-linux-arm64@2.0.6':
optional: true
'@biomejs/cli-linux-x64-musl@1.9.4':
'@biomejs/cli-linux-x64-musl@2.0.6':
optional: true
'@biomejs/cli-linux-x64@1.9.4':
'@biomejs/cli-linux-x64@2.0.6':
optional: true
'@biomejs/cli-win32-arm64@1.9.4':
'@biomejs/cli-win32-arm64@2.0.6':
optional: true
'@biomejs/cli-win32-x64@1.9.4':
'@biomejs/cli-win32-x64@2.0.6':
optional: true
'@csstools/color-helpers@5.0.2': {}
@ -4626,9 +4689,9 @@ snapshots:
'@docsearch/css@3.8.2': {}
'@docsearch/js@3.8.2(@algolia/client-search@5.24.0)(search-insights@2.17.3)':
'@docsearch/js@3.8.2(@algolia/client-search@5.30.0)(search-insights@2.17.3)':
dependencies:
'@docsearch/react': 3.8.2(@algolia/client-search@5.24.0)(search-insights@2.17.3)
'@docsearch/react': 3.8.2(@algolia/client-search@5.30.0)(search-insights@2.17.3)
preact: 10.26.5
transitivePeerDependencies:
- '@algolia/client-search'
@ -4637,10 +4700,10 @@ snapshots:
- react-dom
- search-insights
'@docsearch/react@3.8.2(@algolia/client-search@5.24.0)(search-insights@2.17.3)':
'@docsearch/react@3.8.2(@algolia/client-search@5.30.0)(search-insights@2.17.3)':
dependencies:
'@algolia/autocomplete-core': 1.17.7(@algolia/client-search@5.24.0)(algoliasearch@5.24.0)(search-insights@2.17.3)
'@algolia/autocomplete-preset-algolia': 1.17.7(@algolia/client-search@5.24.0)(algoliasearch@5.24.0)
'@algolia/autocomplete-core': 1.17.7(@algolia/client-search@5.30.0)(algoliasearch@5.24.0)(search-insights@2.17.3)
'@algolia/autocomplete-preset-algolia': 1.17.7(@algolia/client-search@5.30.0)(algoliasearch@5.24.0)
'@docsearch/css': 3.8.2
algoliasearch: 5.24.0
optionalDependencies:
@ -4756,6 +4819,12 @@ snapshots:
'@istanbuljs/schema@0.1.3': {}
'@jridgewell/gen-mapping@0.3.12':
dependencies:
'@jridgewell/sourcemap-codec': 1.5.4
'@jridgewell/trace-mapping': 0.3.29
optional: true
'@jridgewell/gen-mapping@0.3.8':
dependencies:
'@jridgewell/set-array': 1.2.1
@ -4766,6 +4835,12 @@ snapshots:
'@jridgewell/set-array@1.2.1': {}
'@jridgewell/source-map@0.3.10':
dependencies:
'@jridgewell/gen-mapping': 0.3.12
'@jridgewell/trace-mapping': 0.3.29
optional: true
'@jridgewell/source-map@0.3.6':
dependencies:
'@jridgewell/gen-mapping': 0.3.8
@ -4773,11 +4848,20 @@ snapshots:
'@jridgewell/sourcemap-codec@1.5.0': {}
'@jridgewell/sourcemap-codec@1.5.4':
optional: true
'@jridgewell/trace-mapping@0.3.25':
dependencies:
'@jridgewell/resolve-uri': 3.1.2
'@jridgewell/sourcemap-codec': 1.5.0
'@jridgewell/trace-mapping@0.3.29':
dependencies:
'@jridgewell/resolve-uri': 3.1.2
'@jridgewell/sourcemap-codec': 1.5.4
optional: true
'@napi-rs/wasm-runtime@0.2.9':
dependencies:
'@emnapi/core': 1.4.3
@ -4988,16 +5072,16 @@ snapshots:
magic-string: 0.25.9
string.prototype.matchall: 4.0.12
'@swc-node/core@1.13.3(@swc/core@1.11.24(@swc/helpers@0.5.17))(@swc/types@0.1.21)':
'@swc-node/core@1.13.3(@swc/core@1.12.9(@swc/helpers@0.5.17))(@swc/types@0.1.23)':
dependencies:
'@swc/core': 1.11.24(@swc/helpers@0.5.17)
'@swc/types': 0.1.21
'@swc/core': 1.12.9(@swc/helpers@0.5.17)
'@swc/types': 0.1.23
'@swc-node/register@1.10.10(@swc/core@1.11.24(@swc/helpers@0.5.17))(@swc/types@0.1.21)(typescript@5.8.3)':
'@swc-node/register@1.10.10(@swc/core@1.12.9(@swc/helpers@0.5.17))(@swc/types@0.1.23)(typescript@5.8.3)':
dependencies:
'@swc-node/core': 1.13.3(@swc/core@1.11.24(@swc/helpers@0.5.17))(@swc/types@0.1.21)
'@swc-node/core': 1.13.3(@swc/core@1.12.9(@swc/helpers@0.5.17))(@swc/types@0.1.23)
'@swc-node/sourcemap-support': 0.5.1
'@swc/core': 1.11.24(@swc/helpers@0.5.17)
'@swc/core': 1.12.9(@swc/helpers@0.5.17)
colorette: 2.0.20
debug: 4.4.0
oxc-resolver: 5.3.0
@ -5013,51 +5097,51 @@ snapshots:
source-map-support: 0.5.21
tslib: 2.8.1
'@swc/core-darwin-arm64@1.11.24':
'@swc/core-darwin-arm64@1.12.9':
optional: true
'@swc/core-darwin-x64@1.11.24':
'@swc/core-darwin-x64@1.12.9':
optional: true
'@swc/core-linux-arm-gnueabihf@1.11.24':
'@swc/core-linux-arm-gnueabihf@1.12.9':
optional: true
'@swc/core-linux-arm64-gnu@1.11.24':
'@swc/core-linux-arm64-gnu@1.12.9':
optional: true
'@swc/core-linux-arm64-musl@1.11.24':
'@swc/core-linux-arm64-musl@1.12.9':
optional: true
'@swc/core-linux-x64-gnu@1.11.24':
'@swc/core-linux-x64-gnu@1.12.9':
optional: true
'@swc/core-linux-x64-musl@1.11.24':
'@swc/core-linux-x64-musl@1.12.9':
optional: true
'@swc/core-win32-arm64-msvc@1.11.24':
'@swc/core-win32-arm64-msvc@1.12.9':
optional: true
'@swc/core-win32-ia32-msvc@1.11.24':
'@swc/core-win32-ia32-msvc@1.12.9':
optional: true
'@swc/core-win32-x64-msvc@1.11.24':
'@swc/core-win32-x64-msvc@1.12.9':
optional: true
'@swc/core@1.11.24(@swc/helpers@0.5.17)':
'@swc/core@1.12.9(@swc/helpers@0.5.17)':
dependencies:
'@swc/counter': 0.1.3
'@swc/types': 0.1.21
'@swc/types': 0.1.23
optionalDependencies:
'@swc/core-darwin-arm64': 1.11.24
'@swc/core-darwin-x64': 1.11.24
'@swc/core-linux-arm-gnueabihf': 1.11.24
'@swc/core-linux-arm64-gnu': 1.11.24
'@swc/core-linux-arm64-musl': 1.11.24
'@swc/core-linux-x64-gnu': 1.11.24
'@swc/core-linux-x64-musl': 1.11.24
'@swc/core-win32-arm64-msvc': 1.11.24
'@swc/core-win32-ia32-msvc': 1.11.24
'@swc/core-win32-x64-msvc': 1.11.24
'@swc/core-darwin-arm64': 1.12.9
'@swc/core-darwin-x64': 1.12.9
'@swc/core-linux-arm-gnueabihf': 1.12.9
'@swc/core-linux-arm64-gnu': 1.12.9
'@swc/core-linux-arm64-musl': 1.12.9
'@swc/core-linux-x64-gnu': 1.12.9
'@swc/core-linux-x64-musl': 1.12.9
'@swc/core-win32-arm64-msvc': 1.12.9
'@swc/core-win32-ia32-msvc': 1.12.9
'@swc/core-win32-x64-msvc': 1.12.9
'@swc/helpers': 0.5.17
'@swc/counter@0.1.3': {}
@ -5066,7 +5150,7 @@ snapshots:
dependencies:
tslib: 2.8.1
'@swc/types@0.1.21':
'@swc/types@0.1.23':
dependencies:
'@swc/counter': 0.1.3
@ -5130,9 +5214,9 @@ snapshots:
'@ungap/structured-clone@1.3.0': {}
'@vitejs/plugin-vue@5.2.3(vite@5.4.19(@types/node@22.15.30)(terser@5.39.0))(vue@3.5.13(typescript@5.8.3))':
'@vitejs/plugin-vue@5.2.3(vite@5.4.19(@types/node@22.15.30)(terser@5.43.1))(vue@3.5.13(typescript@5.8.3))':
dependencies:
vite: 5.4.19(@types/node@22.15.30)(terser@5.39.0)
vite: 5.4.19(@types/node@22.15.30)(terser@5.43.1)
vue: 3.5.13(typescript@5.8.3)
'@vue/compiler-core@3.5.13':
@ -5237,6 +5321,9 @@ snapshots:
acorn@8.14.1: {}
acorn@8.15.0:
optional: true
agent-base@7.1.3: {}
algoliasearch@5.24.0:
@ -7524,6 +7611,14 @@ snapshots:
commander: 2.20.3
source-map-support: 0.5.21
terser@5.43.1:
dependencies:
'@jridgewell/source-map': 0.3.10
acorn: 8.15.0
commander: 2.20.3
source-map-support: 0.5.21
optional: true
test-exclude@7.0.1:
dependencies:
'@istanbuljs/schema': 0.1.3
@ -7686,7 +7781,7 @@ snapshots:
'@types/unist': 3.0.3
vfile-message: 4.0.2
vite@5.4.19(@types/node@22.15.30)(terser@5.39.0):
vite@5.4.19(@types/node@22.15.30)(terser@5.43.1):
dependencies:
esbuild: 0.21.5
postcss: 8.5.3
@ -7694,7 +7789,7 @@ snapshots:
optionalDependencies:
'@types/node': 22.15.30
fsevents: 2.3.3
terser: 5.39.0
terser: 5.43.1
vitepress-plugin-llms@1.6.0:
dependencies:
@ -7715,16 +7810,16 @@ snapshots:
- '@75lb/nature'
- supports-color
vitepress@1.6.3(@algolia/client-search@5.24.0)(@types/node@22.15.30)(axios@1.10.0)(postcss@8.5.3)(search-insights@2.17.3)(terser@5.39.0)(typescript@5.8.3):
vitepress@1.6.3(@algolia/client-search@5.30.0)(@types/node@22.15.30)(axios@1.10.0)(postcss@8.5.3)(search-insights@2.17.3)(terser@5.43.1)(typescript@5.8.3):
dependencies:
'@docsearch/css': 3.8.2
'@docsearch/js': 3.8.2(@algolia/client-search@5.24.0)(search-insights@2.17.3)
'@docsearch/js': 3.8.2(@algolia/client-search@5.30.0)(search-insights@2.17.3)
'@iconify-json/simple-icons': 1.2.33
'@shikijs/core': 2.5.0
'@shikijs/transformers': 2.5.0
'@shikijs/types': 2.5.0
'@types/markdown-it': 14.1.2
'@vitejs/plugin-vue': 5.2.3(vite@5.4.19(@types/node@22.15.30)(terser@5.39.0))(vue@3.5.13(typescript@5.8.3))
'@vitejs/plugin-vue': 5.2.3(vite@5.4.19(@types/node@22.15.30)(terser@5.43.1))(vue@3.5.13(typescript@5.8.3))
'@vue/devtools-api': 7.7.6
'@vue/shared': 3.5.13
'@vueuse/core': 12.8.2(typescript@5.8.3)
@ -7733,7 +7828,7 @@ snapshots:
mark.js: 8.11.1
minisearch: 7.1.2
shiki: 2.5.0
vite: 5.4.19(@types/node@22.15.30)(terser@5.39.0)
vite: 5.4.19(@types/node@22.15.30)(terser@5.43.1)
vue: 3.5.13(typescript@5.8.3)
optionalDependencies:
postcss: 8.5.3

View File

@ -45,7 +45,7 @@ export function buildWebStorage(storage: Storage, prefix = 'axios-cache-') {
try {
return save();
} catch (error) {
} catch {
const allValues: [string, StorageValue][] = Object.entries(
storage as Record<string, string>
)

View File

@ -2,7 +2,7 @@ import assert from 'node:assert';
import { describe, it } from 'node:test';
import type { CacheRequestConfig } from '../../src/cache/axios.js';
import { Header } from '../../src/header/headers.js';
import { XMockRandom, mockAxios } from '../mocks/axios.js';
import { mockAxios, XMockRandom } from '../mocks/axios.js';
import { mockDateNow } from '../utils.js';
describe('LastModified handling', () => {

View File

@ -4,7 +4,7 @@ import { setImmediate } from 'node:timers/promises';
import Axios from 'axios';
import { setupCache } from '../../src/cache/create.js';
import { Header } from '../../src/header/headers.js';
import { XMockRandom, mockAxios } from '../mocks/axios.js';
import { mockAxios, XMockRandom } from '../mocks/axios.js';
describe('Response Interceptor', () => {
it('`storage.get` call without specified methods', async () => {
@ -43,7 +43,7 @@ describe('Response Interceptor', () => {
try {
await axios.get('http://unknown.url.lan:1234');
assert.fail('should have thrown an error');
} catch (error) {
} catch {
assert.equal(spy.mock.callCount(), 0);
}
});
@ -59,7 +59,7 @@ describe('Response Interceptor', () => {
try {
await axios.get('http://unknown.url.lan:1234');
assert.fail('should have thrown an error');
} catch (error) {
} catch (_error) {
assert.ok(spy.mock.callCount() >= 1);
}
});