Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency @sindresorhus/tsconfig to v0.9.0 #74

Merged
merged 2 commits into from
Mar 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .pnp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@arkecosystem/core-cli": "^3.0.0-next"
},
"devDependencies": {
"@sindresorhus/tsconfig": "^0.8.0",
"@sindresorhus/tsconfig": "^0.9.0",
"@types/eslint": "^7.2.0",
"@types/eslint-plugin-prettier": "^3.1.0",
"@types/jest": "^26.0.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/guardian-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@arkecosystem/core-test-framework": "^3.0.0-next",
"@arkecosystem/core-transaction-pool": "^3.0.0-next",
"@arkecosystem/core-transactions": "^3.0.0-next",
"@sindresorhus/tsconfig": "^0.8.0",
"@sindresorhus/tsconfig": "^0.9.0",
"@types/eslint": "^7.2.5",
"@types/eslint-plugin-prettier": "^3.1.0",
"@types/hapi__boom": "^7.4.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/guardian-crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"devDependencies": {
"@arkecosystem/core-test-framework": "^3.0.0-next",
"@sindresorhus/tsconfig": "~0.8.0",
"@sindresorhus/tsconfig": "~0.9.0",
"@types/jest": "~26.0.15",
"codecov": "^3.8.1",
"cross-env": "^7.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/guardian-transactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@arkecosystem/core-state": "^3.0.0-next",
"@arkecosystem/core-test-framework": "^3.0.0-next",
"@arkecosystem/core-transaction-pool": "^3.0.0-next",
"@sindresorhus/tsconfig": "~0.8.0",
"@sindresorhus/tsconfig": "~0.9.0",
"@types/eslint": "^7.2.5",
"@types/eslint-plugin-prettier": "^3.1.0",
"@types/hapi__joi": "17.1.6",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Container, Contracts, Utils as AppUtils } from "@arkecosystem/core-kernel";
import { Handlers } from "@arkecosystem/core-transactions";
import { Interfaces, Transactions } from "@arkecosystem/crypto";
import { Interfaces as GuardianInterfaces } from "@protokol/guardian-crypto";
import { Transactions as GuardianTransactions } from "@protokol/guardian-crypto";
import { Interfaces as GuardianInterfaces, Transactions as GuardianTransactions } from "@protokol/guardian-crypto";

import { GuardianApplicationEvents } from "../events";
import { IGroupPermissions } from "../interfaces";
Expand All @@ -29,7 +28,7 @@ export class GuardianGroupPermissionsHandler extends GuardianTransactionHandler
);

const setGroupPermissions = transaction.asset.setGroupPermissions;
this.groupsPermissionsCache.put(
await this.groupsPermissionsCache.put(
setGroupPermissions.name,
this.buildGroupPermissions(setGroupPermissions),
-1,
Expand All @@ -38,7 +37,7 @@ export class GuardianGroupPermissionsHandler extends GuardianTransactionHandler
}

public emitEvents(transaction: Interfaces.ITransaction, emitter: Contracts.Kernel.EventDispatcher): void {
emitter.dispatch(GuardianApplicationEvents.SetGroupPermissions, transaction.data);
void emitter.dispatch(GuardianApplicationEvents.SetGroupPermissions, transaction.data);
}

public async throwIfCannotBeApplied(
Expand Down Expand Up @@ -80,7 +79,11 @@ export class GuardianGroupPermissionsHandler extends GuardianTransactionHandler
// transaction.data.asset?.setGroupPermissions,
// );
const setGroupPermissions = transaction.data.asset!.setGroupPermissions;
this.groupsPermissionsCache.put(setGroupPermissions.name, this.buildGroupPermissions(setGroupPermissions), -1);
await this.groupsPermissionsCache.put(
setGroupPermissions.name,
this.buildGroupPermissions(setGroupPermissions),
-1,
);
}

public async revert(transaction: Interfaces.ITransaction): Promise<void> {
Expand All @@ -96,9 +99,9 @@ export class GuardianGroupPermissionsHandler extends GuardianTransactionHandler
});

if (!lastGroupPermissionsTx) {
this.groupsPermissionsCache.forget(setGroupPermissionsAsset.name);
await this.groupsPermissionsCache.forget(setGroupPermissionsAsset.name);
} else {
this.groupsPermissionsCache.put(
await this.groupsPermissionsCache.put(
setGroupPermissionsAsset.name,
this.buildGroupPermissions(lastGroupPermissionsTx.asset!.setGroupPermissions),
-1,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Container, Contracts, Utils as AppUtils } from "@arkecosystem/core-kernel";
import { Handlers } from "@arkecosystem/core-transactions";
import { Interfaces, Transactions } from "@arkecosystem/crypto";
import { Interfaces as GuardianInterfaces } from "@protokol/guardian-crypto";
import { Transactions as GuardianTransactions } from "@protokol/guardian-crypto";
import { Interfaces as GuardianInterfaces, Transactions as GuardianTransactions } from "@protokol/guardian-crypto";

import { GroupDoesntExistError, UserInToManyGroupsError } from "../errors";
import { GuardianApplicationEvents } from "../events";
Expand Down Expand Up @@ -41,7 +40,7 @@ export class GuardianUserPermissionsHandler extends GuardianTransactionHandler {
}

public emitEvents(transaction: Interfaces.ITransaction, emitter: Contracts.Kernel.EventDispatcher): void {
emitter.dispatch(GuardianApplicationEvents.SetUserPermissions, transaction.data);
void emitter.dispatch(GuardianApplicationEvents.SetUserPermissions, transaction.data);
}

public async throwIfCannotBeApplied(
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"sourceMap": true,
"strict": true,
"stripInternal": true,
"target": "es2019"
"target": "es2019",
"noPropertyAccessFromIndexSignature": false
},
"exclude": ["dist", "**/*.spec.ts", "**/*.test.ts"]
}
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2265,7 +2265,7 @@ __metadata:
"@hapi/hapi": ^20.0.2
"@protokol/guardian-crypto": "workspace:packages/guardian-crypto"
"@protokol/guardian-transactions": "workspace:packages/guardian-transactions"
"@sindresorhus/tsconfig": ^0.8.0
"@sindresorhus/tsconfig": ^0.9.0
"@types/eslint": ^7.2.5
"@types/eslint-plugin-prettier": ^3.1.0
"@types/hapi__boom": ^7.4.1
Expand Down Expand Up @@ -2300,7 +2300,7 @@ __metadata:
"@arkecosystem/core-test-framework": ^3.0.0-next
"@arkecosystem/crypto": ^3.0.0-next
"@protokol/utils": ^1.0.0-beta.38
"@sindresorhus/tsconfig": ~0.8.0
"@sindresorhus/tsconfig": ~0.9.0
"@types/jest": ~26.0.15
bytebuffer: ^5.0.1
codecov: ^3.8.1
Expand All @@ -2327,7 +2327,7 @@ __metadata:
"@arkecosystem/core-transactions": ^3.0.0-next
"@arkecosystem/crypto": ^3.0.0-next
"@protokol/guardian-crypto": "workspace:packages/guardian-crypto"
"@sindresorhus/tsconfig": ~0.8.0
"@sindresorhus/tsconfig": ~0.9.0
"@types/eslint": ^7.2.5
"@types/eslint-plugin-prettier": ^3.1.0
"@types/hapi__joi": 17.1.6
Expand All @@ -2353,7 +2353,7 @@ __metadata:
dependencies:
"@arkecosystem/core": ^3.0.0-next
"@arkecosystem/core-cli": ^3.0.0-next
"@sindresorhus/tsconfig": ^0.8.0
"@sindresorhus/tsconfig": ^0.9.0
"@types/eslint": ^7.2.0
"@types/eslint-plugin-prettier": ^3.1.0
"@types/jest": ^26.0.10
Expand Down Expand Up @@ -2468,10 +2468,10 @@ __metadata:
languageName: node
linkType: hard

"@sindresorhus/tsconfig@npm:^0.8.0, @sindresorhus/tsconfig@npm:~0.8.0":
version: 0.8.0
resolution: "@sindresorhus/tsconfig@npm:0.8.0"
checksum: 5131f97d6be9517cbafcc2ffc29450b7ba23c343637410c38a88d4bf2fabc5b9ce7a72b9371cc090c210ed81b61b5bf10610c86d4d39e444d6f306b6a896ec29
"@sindresorhus/tsconfig@npm:^0.9.0, @sindresorhus/tsconfig@npm:~0.9.0":
version: 0.9.0
resolution: "@sindresorhus/tsconfig@npm:0.9.0"
checksum: 07e516e712aef328f01226118f3e4953f86d631e5f263b3398852b185dac1d3991943fccda00de7122ef2de52d1c18a1c2bf7327860b101999f20505e1c7a4fb
languageName: node
linkType: hard

Expand Down