From 4311723b41256cc8a5fa4e77cf591826ceac284c Mon Sep 17 00:00:00 2001 From: CDeltakai Date: Fri, 16 May 2025 15:07:41 +1000 Subject: [PATCH 1/2] fix: update AnyFn type definition to use Array syntax --- src/AsyncMonitor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AsyncMonitor.ts b/src/AsyncMonitor.ts index 486bc9f..dd01176 100644 --- a/src/AsyncMonitor.ts +++ b/src/AsyncMonitor.ts @@ -57,7 +57,7 @@ function lock(...requests: Array) { kind = 'set'; } - type AnyFn = (...args: unknown[]) => unknown; + type AnyFn = (...args: Array) => unknown; const f = descriptor[kind] as AnyFn; if (typeof f !== 'function') { From e2553ce769efc92aee91adb475ad64914d628fa8 Mon Sep 17 00:00:00 2001 From: CDeltakai Date: Thu, 29 May 2025 15:06:09 +1000 Subject: [PATCH 2/2] chore: update js-lint to 0.2.11 and delete .prettierrc since its no longer needed --- .prettierrc | 7 ------- README.md | 3 ++- package-lock.json | 14 +++++++------- package.json | 2 +- 4 files changed, 10 insertions(+), 16 deletions(-) delete mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index fa9699b..0000000 --- a/.prettierrc +++ /dev/null @@ -1,7 +0,0 @@ -{ - "semi": true, - "trailingComma": "all", - "singleQuote": true, - "printWidth": 80, - "tabWidth": 2 -} diff --git a/README.md b/README.md index e74873e..afa39a0 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ Asynchronous monitor. -Because decorators are experimental, you must enable: `"experimentalDecorators": true` in your `tsconfig.json` to use this library. +Because decorators are experimental, you must enable: +`"experimentalDecorators": true` in your `tsconfig.json` to use this library. ## Installation diff --git a/package-lock.json b/package-lock.json index c488d24..4b3f922 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@matrixai/async-locks": "^3.2.0" }, "devDependencies": { - "@matrixai/lint": "^0.2.6", + "@matrixai/lint": "^0.2.11", "@swc/core": "^1.3.62", "@swc/jest": "^0.2.26", "@types/jest": "^28.1.3", @@ -1441,9 +1441,9 @@ } }, "node_modules/@matrixai/lint": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/@matrixai/lint/-/lint-0.2.6.tgz", - "integrity": "sha512-Cbx6SCTAqSt7lTKkaXL7wB+KbkiXYpQ0LdV5fPcnzEfG0sCuG8dbJcwzgHT5Qn7ubG71BBLUVFjHY1EGADzT8g==", + "version": "0.2.11", + "resolved": "https://registry.npmjs.org/@matrixai/lint/-/lint-0.2.11.tgz", + "integrity": "sha512-Q/atLaVExgQbd7b/sXCvTAIus0M+egxr6fjHFNzpUZGY3Gu+UkYQrel/440JnvZ+fK8fq9GTHewpa14H08AcRw==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -9956,9 +9956,9 @@ } }, "@matrixai/lint": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/@matrixai/lint/-/lint-0.2.6.tgz", - "integrity": "sha512-Cbx6SCTAqSt7lTKkaXL7wB+KbkiXYpQ0LdV5fPcnzEfG0sCuG8dbJcwzgHT5Qn7ubG71BBLUVFjHY1EGADzT8g==", + "version": "0.2.11", + "resolved": "https://registry.npmjs.org/@matrixai/lint/-/lint-0.2.11.tgz", + "integrity": "sha512-Q/atLaVExgQbd7b/sXCvTAIus0M+egxr6fjHFNzpUZGY3Gu+UkYQrel/440JnvZ+fK8fq9GTHewpa14H08AcRw==", "dev": true, "requires": { "@eslint/compat": "^1.2.5", diff --git a/package.json b/package.json index ec44871..1488837 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "@matrixai/async-locks": "^3.2.0" }, "devDependencies": { - "@matrixai/lint": "^0.2.6", + "@matrixai/lint": "^0.2.11", "@swc/core": "^1.3.62", "@swc/jest": "^0.2.26", "@types/jest": "^28.1.3",