mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
chore: remove axios dependency from CLI (#6888)
This commit is contained in:
parent
c29976cd6f
commit
6ed33da2a4
218 changed files with 22789 additions and 237 deletions
11
web/package-lock.json
generated
11
web/package-lock.json
generated
|
|
@ -65,12 +65,17 @@
|
|||
"name": "@immich/sdk",
|
||||
"version": "1.92.1",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"axios": "^1.6.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.11.0",
|
||||
"typescript": "^5.3.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"axios": "^1.6.7"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"axios": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@aashutoshrathi/word-wrap": {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import {
|
|||
base,
|
||||
common,
|
||||
configuration,
|
||||
} from '@immich/sdk';
|
||||
} from '@immich/sdk/axios';
|
||||
import type { ApiParams as ApiParameters } from './types';
|
||||
|
||||
class ImmichApi {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
export * from './api';
|
||||
export * from '@immich/sdk';
|
||||
export * from '@immich/sdk/axios';
|
||||
export * from './utils';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import type { Configuration } from '@immich/sdk';
|
||||
import type { Configuration } from '@immich/sdk/axios';
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
export type ApiFp = (configuration: Configuration) => Record<any, (...arguments_: any) => any>;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import {
|
|||
} from '../lib/components/shared-components/notification/notification';
|
||||
import { handleError } from '../lib/utils/handle-error';
|
||||
import { api } from './api';
|
||||
import type { UserResponseDto } from '@immich/sdk';
|
||||
import type { UserResponseDto } from '@immich/sdk/axios';
|
||||
|
||||
export type ApiError = AxiosError<{ message: string }>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue