Skip to content

Commit

Permalink
chore(extension/web): update copyright
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Shatford <[email protected]>
  • Loading branch information
jordanshatford committed Aug 8, 2024
1 parent a8e3e7d commit fc0f743
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Jordan Shatford
Copyright (c) 2024 Jordan Shatford

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const config = {
github: 'https://github.com/jordanshatford/youtube-downloader',
copyright: {
owner: 'Jordan Shatford',
year: 2022
year: new Date().getFullYear()
}
};

Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const config = {
github: 'https://github.com/jordanshatford/youtube-downloader',
copyright: {
owner: 'Jordan Shatford',
year: 2022
year: new Date().getFullYear()
}
};

Expand Down
16 changes: 8 additions & 8 deletions packages/client/src/generated/core/ApiRequestOptions.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export type ApiRequestOptions<T = unknown> = {
readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
readonly url: string;
readonly path?: Record<string, unknown>;
readonly body?: any;
readonly cookies?: Record<string, unknown>;
readonly errors?: Record<number | string, string>;
readonly formData?: Record<string, unknown> | any[] | Blob | File;
readonly headers?: Record<string, unknown>;
readonly query?: Record<string, unknown>;
readonly formData?: Record<string, unknown>;
readonly body?: any;
readonly mediaType?: string;
readonly method: 'DELETE' | 'GET' | 'HEAD' | 'OPTIONS' | 'PATCH' | 'POST' | 'PUT';
readonly path?: Record<string, unknown>;
readonly query?: Record<string, unknown>;
readonly responseHeader?: string;
readonly responseTransformer?: (data: unknown) => T;
readonly errors?: Record<number | string, string>;
readonly responseTransformer?: (data: unknown) => Promise<T>;
readonly url: string;
};
2 changes: 1 addition & 1 deletion packages/client/src/generated/core/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export const request = <T>(

let transformedBody = responseBody;
if (options.responseTransformer && response.ok) {
transformedBody = options.responseTransformer(responseBody);
transformedBody = await options.responseTransformer(responseBody);
}

const result: ApiResult = {
Expand Down

0 comments on commit fc0f743

Please sign in to comment.