Skip to content

Commit

Permalink
v1.2.6 dependencies updated
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRefactoring committed Jul 19, 2023
1 parent 6e098b5 commit 6e8c491
Show file tree
Hide file tree
Showing 18 changed files with 1,417 additions and 4,981 deletions.
11 changes: 8 additions & 3 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"plugins": [
"prettier-plugin-jsdoc"
]
"arrowParens": "avoid",
"endOfLine": "lf",
"plugins": ["prettier-plugin-jsdoc"],
"printWidth": 120,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
}
5,837 changes: 1,131 additions & 4,706 deletions package-lock.json

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "trello.js",
"version": "1.2.5",
"version": "1.2.6",
"description": "Simple Trello API Client",
"author": "Vladislav Tupikin <[email protected]>",
"license": "MIT",
Expand All @@ -9,7 +9,7 @@
"scripts": {
"build": "tsc",
"prepublishOnly": "npm run build && npm run test && npm run lint",
"prettier": "prettier --write src/**/*.ts",
"prettier": "prettier --write src",
"doc": "typedoc --name \"Trello.js - API library\" --out docs ./src/index.ts --plugin typedoc-plugin-extras --footerDate --footerTime --footerTypedocVersion --favicon https://svgshare.com/i/bQb.svg",
"lint": "eslint src tests --ext .ts",
"lint:fix": "npm run lint -- --fix",
Expand All @@ -35,26 +35,26 @@
"api"
],
"devDependencies": {
"@types/node": "^18.11.18",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"ava": "^5.1.0",
"dotenv": "^16.0.3",
"eslint": "^8.31.0",
"@types/node": "^20.4.2",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"ava": "^5.3.1",
"dotenv": "^16.3.1",
"eslint": "^8.45.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-import-resolver-typescript": "^3.5.2",
"eslint-plugin-import": "^2.26.0",
"prettier": "^2.8.1",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"prettier": "^3.0.0",
"prettier-plugin-jsdoc": "^0.4.2",
"ts-node": "^10.9.1",
"typedoc": "^0.23.23",
"typedoc-plugin-extras": "^2.3.1",
"typescript": "^4.9.4"
"typedoc": "^0.24.8",
"typedoc-plugin-extras": "^2.3.3",
"typescript": "^5.1.6"
},
"dependencies": {
"axios": "^0.27.2",
"axios": "^1.4.0",
"form-data": "^4.0.0",
"tslib": "^2.4.1"
"tslib": "^2.6.0"
}
}
23 changes: 10 additions & 13 deletions src/api/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ export class Actions {
}

/** Get the List for an Action */
async getActionList<T = Models.List>(
parameters: Parameters.GetActionList,
callback: Callback<T>
): Promise<void>;
async getActionList<T = Models.List>(parameters: Parameters.GetActionList, callback: Callback<T>): Promise<void>;
/** Get the List for an Action */
async getActionList<T = Models.List>(parameters: Parameters.GetActionList, callback?: never): Promise<T>;
async getActionList<T = Models.List>(
Expand All @@ -136,7 +133,7 @@ export class Actions {
/** Gets the member of an action (not the creator) */
async getActionMember<T = Models.Member>(
parameters: Parameters.GetActionMember,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/** Gets the member of an action (not the creator) */
async getActionMember<T = Models.Member>(parameters: Parameters.GetActionMember, callback?: never): Promise<T>;
Expand All @@ -158,12 +155,12 @@ export class Actions {
/** Get the Member who created the Action */
async getActionMemberCreator<T = Models.Member>(
parameters: Parameters.GetActionMemberCreator,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/** Get the Member who created the Action */
async getActionMemberCreator<T = Models.Member>(
parameters: Parameters.GetActionMemberCreator,
callback?: never
callback?: never,
): Promise<T>;
async getActionMemberCreator<T = Models.Member>(
parameters: Parameters.GetActionMemberCreator,
Expand All @@ -183,12 +180,12 @@ export class Actions {
/** Get the Organization of an Action */
async getActionOrganization<T = Models.Organization>(
parameters: Parameters.GetActionOrganization,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/** Get the Organization of an Action */
async getActionOrganization<T = Models.Organization>(
parameters: Parameters.GetActionOrganization,
callback?: never
callback?: never,
): Promise<T>;
async getActionOrganization<T = Models.Organization>(
parameters: Parameters.GetActionOrganization,
Expand Down Expand Up @@ -227,7 +224,7 @@ export class Actions {
/** List reactions for an action */
async getActionReactions<T = unknown>(
parameters: Parameters.GetActionReactions,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/** List reactions for an action */
async getActionReactions<T = unknown>(parameters: Parameters.GetActionReactions, callback?: never): Promise<T>;
Expand Down Expand Up @@ -292,7 +289,7 @@ export class Actions {
/** Deletes a reaction */
async deleteActionReaction<T = unknown>(
parameters: Parameters.DeleteActionReaction,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/** Deletes a reaction */
async deleteActionReaction<T = unknown>(parameters: Parameters.DeleteActionReaction, callback?: never): Promise<T>;
Expand All @@ -311,12 +308,12 @@ export class Actions {
/** List a summary of all reactions for an action */
async getActionReactionSummary<T = unknown>(
parameters: Parameters.GetActionReactionSummary,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/** List a summary of all reactions for an action */
async getActionReactionSummary<T = unknown>(
parameters: Parameters.GetActionReactionSummary,
callback?: never
callback?: never,
): Promise<T>;
async getActionReactionSummary<T = unknown>(
parameters: Parameters.GetActionReactionSummary,
Expand Down
4 changes: 2 additions & 2 deletions src/api/applications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export class Applications {

async applicationsKeyCompliance<T = unknown>(
parameters: Parameters.ApplicationsKeyCompliance,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
async applicationsKeyCompliance<T = unknown>(
parameters: Parameters.ApplicationsKeyCompliance,
callback?: never
callback?: never,
): Promise<T>;
async applicationsKeyCompliance<T = unknown>(
parameters: Parameters.ApplicationsKeyCompliance,
Expand Down
42 changes: 21 additions & 21 deletions src/api/boards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ export class Boards {
/** Get information about the memberships users have to the board. */
async getBoardMemberships<T = Models.Memberships>(
parameters: Parameters.GetBoardMemberships,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/** Get information about the memberships users have to the board. */
async getBoardMemberships<T = Models.Memberships>(
parameters: Parameters.GetBoardMemberships,
callback?: never
callback?: never,
): Promise<T>;
async getBoardMemberships<T = Models.Memberships>(
parameters: Parameters.GetBoardMemberships,
Expand Down Expand Up @@ -169,7 +169,7 @@ export class Boards {
/** Get a Stars on a Board. */
async getBoardStars<T = Array<Models.BoardStars>>(
parameters: Parameters.GetBoardStars,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/** Get a Stars on a Board. */
async getBoardStars<T = Array<Models.BoardStars>>(parameters: Parameters.GetBoardStars, callback?: never): Promise<T>;
Expand All @@ -188,7 +188,7 @@ export class Boards {
/** Get all of the checklists on a Board. */
async getBoardChecklists<T = unknown>(
parameters: Parameters.GetBoardChecklists,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/** Get all of the checklists on a Board. */
async getBoardChecklists<T = unknown>(parameters: Parameters.GetBoardChecklists, callback?: never): Promise<T>;
Expand All @@ -207,7 +207,7 @@ export class Boards {
/** Create a new checklist on a board. */
async createBoardChecklist<T = unknown>(
parameters: Parameters.CreateBoardChecklist,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/** Create a new checklist on a board. */
async createBoardChecklist<T = unknown>(parameters: Parameters.CreateBoardChecklist, callback?: never): Promise<T>;
Expand Down Expand Up @@ -242,7 +242,7 @@ export class Boards {
/** Get the Cards on a Board that match a given filter. */
async getBoardCardsFilter<T = unknown>(
parameters: Parameters.GetBoardCardsFilter,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/** Get the Cards on a Board that match a given filter. */
async getBoardCardsFilter<T = unknown>(parameters: Parameters.GetBoardCardsFilter, callback?: never): Promise<T>;
Expand All @@ -261,12 +261,12 @@ export class Boards {
/** Get the Custom Field Definitions that exist on a board. */
async getBoardCustomFields<T = Models.CustomField[]>(
parameters: Parameters.GetBoardCustomFields,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/** Get the Custom Field Definitions that exist on a board. */
async getBoardCustomFields<T = Models.CustomField[]>(
parameters: Parameters.GetBoardCustomFields,
callback?: never
callback?: never,
): Promise<T>;
async getBoardCustomFields<T = Models.CustomField[]>(
parameters: Parameters.GetBoardCustomFields,
Expand Down Expand Up @@ -361,7 +361,7 @@ export class Boards {

async getBoardListsFilter<T = unknown>(
parameters: Parameters.GetBoardListsFilter,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
async getBoardListsFilter<T = unknown>(parameters: Parameters.GetBoardListsFilter, callback?: never): Promise<T>;
async getBoardListsFilter<T = unknown>(
Expand Down Expand Up @@ -434,7 +434,7 @@ export class Boards {

async removeMemberFromBoard<T = unknown>(
parameters: Parameters.RemoveMemberFromBoard,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
async removeMemberFromBoard<T = unknown>(parameters: Parameters.RemoveMemberFromBoard, callback?: never): Promise<T>;
async removeMemberFromBoard<T = unknown>(
Expand All @@ -452,7 +452,7 @@ export class Boards {
/** Update an existing board by id */
async updateMemberOnBoard<T = unknown>(
parameters: Parameters.UpdateMemberOnBoard,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/** Update an existing board by id */
async updateMemberOnBoard<T = unknown>(parameters: Parameters.UpdateMemberOnBoard, callback?: never): Promise<T>;
Expand All @@ -475,7 +475,7 @@ export class Boards {
/** Update emailPosition Pref on a Board */
async updateEmailPosition<T = unknown>(
parameters: Parameters.UpdateEmailPosition,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/** Update emailPosition Pref on a Board */
async updateEmailPosition<T = unknown>(parameters: Parameters.UpdateEmailPosition, callback?: never): Promise<T>;
Expand Down Expand Up @@ -515,7 +515,7 @@ export class Boards {

async updateShowListGuide<T = unknown>(
parameters: Parameters.UpdateShowListGuide,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
async updateShowListGuide<T = unknown>(parameters: Parameters.UpdateShowListGuide, callback?: never): Promise<T>;
async updateShowListGuide<T = unknown>(
Expand Down Expand Up @@ -552,11 +552,11 @@ export class Boards {

async updateShowSidebarActivity<T = unknown>(
parameters: Parameters.UpdateShowSidebarActivity,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
async updateShowSidebarActivity<T = unknown>(
parameters: Parameters.UpdateShowSidebarActivity,
callback?: never
callback?: never,
): Promise<T>;
async updateShowSidebarActivity<T = unknown>(
parameters: Parameters.UpdateShowSidebarActivity,
Expand All @@ -575,11 +575,11 @@ export class Boards {

async updateShowSidebarBoardActions<T = unknown>(
parameters: Parameters.UpdateShowSidebarBoardActions,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
async updateShowSidebarBoardActions<T = unknown>(
parameters: Parameters.UpdateShowSidebarBoardActions,
callback?: never
callback?: never,
): Promise<T>;
async updateShowSidebarBoardActions<T = unknown>(
parameters: Parameters.UpdateShowSidebarBoardActions,
Expand All @@ -598,11 +598,11 @@ export class Boards {

async updateShowSidebarMembers<T = unknown>(
parameters: Parameters.UpdateShowSidebarMembers,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
async updateShowSidebarMembers<T = unknown>(
parameters: Parameters.UpdateShowSidebarMembers,
callback?: never
callback?: never,
): Promise<T>;
async updateShowSidebarMembers<T = unknown>(
parameters: Parameters.UpdateShowSidebarMembers,
Expand Down Expand Up @@ -738,7 +738,7 @@ export class Boards {
*/
async getEnabledPowerUps<T = Models.Plugin[]>(
parameters: Parameters.GetEnabledPowerUps,
callback: Callback<T>
callback: Callback<T>,
): Promise<void>;
/**
* @deprecated Will be removed from API
Expand All @@ -747,7 +747,7 @@ export class Boards {
*/
async getEnabledPowerUps<T = Models.Plugin[]>(
parameters: Parameters.GetEnabledPowerUps,
callback?: never
callback?: never,
): Promise<T>;
async getEnabledPowerUps<T = Models.Plugin[]>(
parameters: Parameters.GetEnabledPowerUps,
Expand Down
Loading

0 comments on commit 6e8c491

Please sign in to comment.