diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..3f430af --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v18 diff --git a/package.json b/package.json index 16e4968..84960b8 100644 --- a/package.json +++ b/package.json @@ -13,10 +13,10 @@ "pub": "npm version patch && npm run build && cp package.json README.md dist && cd dist && npm publish --registry https://registry.npmjs.org/" }, "dependencies": { - "typescript": "^4.5.2" + "typescript": "^5.2.2" }, "devDependencies": { - "prettier": "^2.8.4" + "prettier": "^3.0.3" }, "repository": { "type": "git", diff --git a/src/bl-api-error/bl-api-permission-denied-error.ts b/src/bl-api-error/bl-api-permission-denied-error.ts index d9c404f..deb2581 100644 --- a/src/bl-api-error/bl-api-permission-denied-error.ts +++ b/src/bl-api-error/bl-api-permission-denied-error.ts @@ -10,7 +10,7 @@ export class BlApiPermissionDeniedError extends BlApiError { msg?: string, code?: number, permission?: UserPermission, - permissionRequired?: UserPermission + permissionRequired?: UserPermission, ) { super(msg, code); diff --git a/src/bl-api-error/bl-api-user-already-exists-error.ts b/src/bl-api-error/bl-api-user-already-exists-error.ts index 5365eb8..c30b3d5 100644 --- a/src/bl-api-error/bl-api-user-already-exists-error.ts +++ b/src/bl-api-error/bl-api-user-already-exists-error.ts @@ -10,7 +10,7 @@ export class BlApiUserAlreadyExistsError extends BlApiError { msg?: string, code?: number, permission?: UserPermission, - permissionRequired?: UserPermission + permissionRequired?: UserPermission, ) { super(msg, code); diff --git a/src/bl-api-error/bl-api-username-and-password-error.ts b/src/bl-api-error/bl-api-username-and-password-error.ts index 5c85053..edc0f60 100644 --- a/src/bl-api-error/bl-api-username-and-password-error.ts +++ b/src/bl-api-error/bl-api-username-and-password-error.ts @@ -10,7 +10,7 @@ export class BlApiUsernameAndPasswordError extends BlApiError { msg?: string, code?: number, permission?: UserPermission, - permissionRequired?: UserPermission + permissionRequired?: UserPermission, ) { super(msg, code); diff --git a/src/branch/branch-payment-info.ts b/src/branch/branch-payment-info.ts index b713986..89c76cb 100644 --- a/src/branch/branch-payment-info.ts +++ b/src/branch/branch-payment-info.ts @@ -14,7 +14,7 @@ export class BranchPaymentInfo { percentageBuyoutUsed: number; // same as percentageBuyout but for when the item is used percentageUpFront: number; // item.price * this desides what the customer needs to pay upfront percentageUpFrontUsed: number; // same as percentageUpFront but for when teh item is used - } + }, ]; loanPeriods?: { type: Period; @@ -29,7 +29,7 @@ export class BranchPaymentInfo { date: Date; maxNumberOfPeriods: number; // max number of periods of this type one item can be rented percentage: number; //the percentage of the item.price the rent price is - } + }, ]; extendPeriods: [ { @@ -38,7 +38,7 @@ export class BranchPaymentInfo { maxNumberOfPeriods: number; // the max number of periods this item can be extended price: number; // the price of the extend period percentage?: number; //if set then use percentage of item - } + }, ]; buyout?: { // buyout needs only to be described when rent is possible diff --git a/src/branch/branch.ts b/src/branch/branch.ts index 13a2012..ce3e4e6 100644 --- a/src/branch/branch.ts +++ b/src/branch/branch.ts @@ -43,7 +43,7 @@ export class Branch extends BlDocument { // the item categories name: string; // the name of the category items: string[]; // the items this category have - } + }, ]; location?: { region: string; diff --git a/src/match/match.ts b/src/match/match.ts index 56449ea..cf2d63a 100644 --- a/src/match/match.ts +++ b/src/match/match.ts @@ -34,7 +34,7 @@ export class UserMatch extends MatchBase { public receiver: string, // items which are expected to be handed over from sender to receiver public expectedItems: string[], - meetingInfo: MatchBase["meetingInfo"] + meetingInfo: MatchBase["meetingInfo"], ) { super(meetingInfo); } @@ -53,7 +53,7 @@ export class StandMatch extends MatchBase { public expectedHandoffItems: string[], // items which are expected to be picked up from stand public expectedPickupItems: string[], - meetingInfo: MatchBase["meetingInfo"] + meetingInfo: MatchBase["meetingInfo"], ) { super(meetingInfo); } diff --git a/yarn.lock b/yarn.lock index 3749048..7281c6c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,12 +2,12 @@ # yarn lockfile v1 -prettier@^2.8.4: - version "2.8.4" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.4.tgz#34dd2595629bfbb79d344ac4a91ff948694463c3" - integrity sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw== +prettier@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643" + integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg== -typescript@^4.5.2: - version "4.5.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.2.tgz#8ac1fba9f52256fdb06fb89e4122fa6a346c2998" - integrity sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw== +typescript@^5.2.2: + version "5.2.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78" + integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==