Skip to content

Commit

Permalink
chore: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenQian committed Nov 7, 2024
1 parent b3746a1 commit f0fd477
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 69 deletions.
126 changes: 64 additions & 62 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,64 +1,66 @@
{
"name": "keystone-airgaped-base",
"publishConfig": {
"access": "public"
},
"packageManager": "[email protected]",
"scripts": {
"clean": "./scripts/clean.sh",
"build": "pnpm -r build",
"bootstrap": "pnpm clean && pnpm install",
"lint": "eslint '*/**/*.ts' --quiet --fix",
"prettier:check": "pnpm run prettier --check",
"prettier:fix": "pnpm run prettier --write",
"prettier": "prettier '*/**/*.{js,jsx,ts,tsx}'",
"test": "pnpm -r test",
"prepack": "pnpm -r build"
},
"jest": {
"modulePathIgnorePatterns": [
"__data__"
],
"testEnvironment": "node"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
"name": "keystone-airgaped-base",
"publishConfig": {
"access": "public"
},
"packageManager": "[email protected]",
"scripts": {
"clean": "./scripts/clean.sh",
"build": "pnpm -r build",
"bootstrap": "pnpm clean && pnpm install",
"lint": "eslint '*/**/*.ts' --quiet --fix",
"prettier:check": "pnpm run prettier --check",
"prettier:fix": "pnpm run prettier --write",
"prettier": "prettier '*/**/*.{js,jsx,ts,tsx}'",
"test": "pnpm -r test",
"prepack": "pnpm -r build"
},
"jest": {
"modulePathIgnorePatterns": [
"__data__"
],
"testEnvironment": "node"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --write",
"eslint "
],
"*.json": [
"prettier --write"
]
},
"pnpm": {
"neverBuiltDependencies": [
"node-hid"
]
},
"devDependencies": {
"@babel/cli": "^7.21.5",
"@babel/core": "^7.22.1",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/preset-env": "^7.16.11",
"@babel/preset-typescript": "^7.16.7",
"@types/jest": "^27.4.1",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"eslint": "^8.10.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"git-commit-msg-linter": "^4.1.2",
"husky": "^7.0.4",
"jest": "^27.5.1",
"lint-staged": "^12.3.5",
"prettier": "^2.5.1",
"tsdx": "^0.14.1",
"typescript": "^4.6.2"
},
"dependencies": {
"uuid": "^8.3.2"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --write",
"eslint "
],
"*.json": [
"prettier --write"
]
},
"pnpm": {
"neverBuiltDependencies": ["node-hid"]
},
"devDependencies": {
"@babel/cli": "^7.21.5",
"@babel/core": "^7.22.1",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/preset-env": "^7.16.11",
"@babel/preset-typescript": "^7.16.7",
"@types/jest": "^27.4.1",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"eslint": "^8.10.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"git-commit-msg-linter": "^4.1.2",
"husky": "^7.0.4",
"jest": "^27.5.1",
"lint-staged": "^12.3.5",
"prettier": "^2.5.1",
"tsdx": "^0.14.1",
"typescript": "^4.6.2"
},
"dependencies": {
"uuid": "^8.3.2"
}
}
}
10 changes: 3 additions & 7 deletions packages/ur-registry-sui/src/SuiSignature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
extend,
DataItem,
RegistryItem,
DataItemMap
DataItemMap,
} from "@keystonehq/bc-ur-registry";
import { ExtendedRegistryTypes } from "./RegistryType";

Expand All @@ -11,7 +11,7 @@ const { RegistryTypes, decodeToDataItem } = extend;
enum Keys {
requestId = 1,
signature,
publicKey
publicKey,
}

export class SuiSignature extends RegistryItem {
Expand All @@ -21,11 +21,7 @@ export class SuiSignature extends RegistryItem {

getRegistryType = () => ExtendedRegistryTypes.SUI_SIGNATURE;

constructor(
signature: Buffer,
requestId?: Buffer,
publicKey?: Buffer
) {
constructor(signature: Buffer, requestId?: Buffer, publicKey?: Buffer) {
super();
this.signature = signature;
this.requestId = requestId;
Expand Down

0 comments on commit f0fd477

Please sign in to comment.