chore: remove axios dependency from CLI (#6888)

This commit is contained in:
Ben McCann 2024-02-05 11:29:00 -08:00 committed by GitHub
parent c29976cd6f
commit 6ed33da2a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
218 changed files with 22789 additions and 237 deletions

11
web/package-lock.json generated
View file

@ -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": {

View file

@ -25,7 +25,7 @@ import {
base,
common,
configuration,
} from '@immich/sdk';
} from '@immich/sdk/axios';
import type { ApiParams as ApiParameters } from './types';
class ImmichApi {

View file

@ -1,3 +1,3 @@
export * from './api';
export * from '@immich/sdk';
export * from '@immich/sdk/axios';
export * from './utils';

View file

@ -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>;

View file

@ -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 }>;